Hello people ,
I have some data which I can get into Excel 2000.
Starting in cell A1 on Sheet1:
Post date Reference Value
01/12/2004 dec0400 458.59
30/03/2005 N156236 458.59
30/03/2005 N156236 18255.15
31/07/2005 veh jnl -458.59
31/07/2005 veh jnl2 458.59
09/09/2005 N156184 458.59
09/09/2005 N156184 32070.81
01/10/2005 N156716 21085.62
01/10/2005 N156716 1362.37
01/10/2005 N156716 458.59
04/11/2005 N156785 458.59
04/11/2005 N156785 35175.49
01/12/2005 N156852 458.59
01/12/2005 N156852 18560.52
01/12/2005 N156852 -17789.28
The data will vary in length each time it gets imported.
What I'm after is a macro which will populate the Analysis worksheet.
On sheet Analysis there's a breakdown showing how long items have been
in stock for, along with the Values.
So by looking at Analysis you'll see 2 items with a total of ?55,435.98 under 91 -120 Days
and 1 item with a total of ?18,713.74 under 180+ Days
The text on the Analysis sheet is already set-up. Like a template.
Just the cells in green need to be filled in according to the data above.
I haven't started on any VBA code for this yet as not sure where
the best place to start should be.
I thought a macro to:
Sort by reference, then by date
Delete all rows in Reference column which does NOT start with an 'N'
Add all values with same reference
Count how many unique items there are based on Reference column
Find out how many days between today and Post date.
Then somehow populate the Analysis worksheet
Don't know what the best or easist way to go about this.
Any suggestions?.
I've uploaded a sample workbook.
Thanks In Advanvce for any help on this ,
Marcster.