Assuming your 1st quarter runs from January 1st to March 31st, 2nd quarter
from April 1st to June 30th, etc., you can use these formulas to get your
quarterly totals...
1st Q: =SUMPRODUCT((1=1+FLOOR((MONTH(B2:B25)-1)/3,1))*C2:C25)
2nd Q: =SUMPRODUCT((2=1+FLOOR((MONTH(B2:B25)-1)/3,1))*C2:C25)
3rd Q: =SUMPRODUCT((3=1+FLOOR((MONTH(B2:B25)-1)/3,1))*C2:C25)
4th Q: =SUMPRODUCT((4=1+FLOOR((MONTH(B2:B25)-1)/3,1))*C2:C25)
Notice the **only** difference between them is the number in front of the
equal sign (1 for first quarter, 2 for second quarter, etc.). Using these
will allow you look at all quarters at once. If, on the other hand, you only
need to look at one quarter at a time, then you can make do with this single
formula...
=SUMPRODUCT((A1=1+FLOOR((MONTH(B6:B1000)-1)/3,1))*C6:C1000)
where the quarter number is assumed to be placed in cell A1.
Rick
island hopper said:
Thanks Sandy from Scotland.
I can put the year in the date. Is there any way to use a "hard" date,
e.g.
3/31/07
rather than point to a cell with that date in it?
Thanks, Gary (from Colorado).