C
Carmen
I have the following data
1/1/06 50
2/1/06 40
3/1/06 30
4/1/06 20
In January, I want to sum all four rows (50 through 20). In February, I only want to sum the last three rows (40 through 20). In March, 30 through 20 and in April 20 through 20. I want to tell the sum function which month to start by referring to a cell with the month (i.e. 2/1/06 for the 40 through 20 sum).
I currently use a "sum" function with an "offset" function embedded in it (with the offset from 50 depending on which month I am in) but would like to use some kind of "lookup" to the cell with the month in it to tell the "sum" where to start.
Any ideas?
1/1/06 50
2/1/06 40
3/1/06 30
4/1/06 20
In January, I want to sum all four rows (50 through 20). In February, I only want to sum the last three rows (40 through 20). In March, 30 through 20 and in April 20 through 20. I want to tell the sum function which month to start by referring to a cell with the month (i.e. 2/1/06 for the 40 through 20 sum).
I currently use a "sum" function with an "offset" function embedded in it (with the offset from 50 depending on which month I am in) but would like to use some kind of "lookup" to the cell with the month in it to tell the "sum" where to start.
Any ideas?