Not sure if our circumstances are equal.. but I had a similar problem a while ago. On a datasheet with monthly columns (months on row 1) ranging from Jan/2004 to Dec/2010 I needed a function that would calculate a cumulative number of a year, up to the point of reference.
So if cell X1 = Oct/07
and on row 16 I'd have monthly salaries paid
then in cell X17 I'd want to calculate the total amount of salaries paid in 2007 up to and including October 2007.
I looked, but didn't find an Excel function that met my needs. (If there is, I'd like to know though!)
Solved this by the following VBA function:
And then Cell X17 would hold the formula =Cumulative(X16)
Note that this formula expects a row with dates on row 1.
Bookmarks