Hi All,
I have a simple dataset, see columns A to D in attached file. This is sorted into Item No. and Date order ascending. I want to create a macro that adds a new column (E) called Forecast and then does the following...
1. For the first row for each change in Item No. is just copies the Inventory value (D) from that row to the new column
2. For each subsequent row for each Item No. it does the following calculation based on values from the previous row (column E - column C)
In the example file the result of cell E3 is E2-C2 and result of E4 is E3-C3 and so on and so on.
Any help would be very much appreciated.
Thanks in advance
Tim
Bookmarks