Sum based on date range
Thanks, I was able to get that to work for one sheet then hit another snag...
There is a worksheet for each month of the year and I am trying to sum on a
13th sheet. I am having trouble creating ranges in the formula that span the
12 monthly worksheets. BTW, the assumption below is correct but it is on
sheet 13. Should I or could I used named ranges to accomplish the
multi-sheet dilemma?
"Toppers" wrote:
Assuming Sheet2 has Category1, Category2 etc in column A, then in column B put:
=SUMPRODUCT(--(Sheet1!$B$1:$W$1=DATE(2006,3,3)),--(Sheet1!$B$1:$W$1<=DATE(2006,3,20)),--(Sheet1!B2:W2))
for period 3rd to 20th march 2006 inclusive
<b1:w1 contain dates
<b2:w2 contain amounts (for category 1)
Copy down as required
HTH
"Michael" wrote:
Columns represent days of the month (E2 is day 1, F2 is day 2, etc), rows
represent dollar amounts (E3 is $ amt for day one, F3 is $ amt fo day 2, etc.)
How can I sum the rows based on a begin and end date?
Example: Begin date is March 10, end date is March 15, I need row 3 summed
for the range of columns that are within the from and to date range.
3/1 3/2 3/3 3/4 etc.
category 1 50.00 5.00 2.00 3.50
category 2 1.00 10.00 .75 .25
I need the formula result to show on another sheet in one column for each
row, I suppose I could just copy the formula down the column.
Thanks!
|