FWIW, a rolling 12 month can also be stated as:
=SUMIF(B6:B52,"="&DATE(YEAR(TODAY()), MONTH(TODAY()) - 12, 1),E6:E52)
(The Date function evaluates to 6/1/2004)
So 6 months would be:
=SUMIF(B6:B52,"="&DATE(YEAR(TODAY()), MONTH(TODAY()) - 6, 1),E6:E52)
(The Date function evaluates to 12/1/2004)
HTH,
--
George Nicholson
Remove 'Junk' from return address.
"JJC" wrote in message
...
I have the below statement, which works for a rolling year, how do I adjust
for a rolling 6 month period?
=SUMIF(B6:B52,"="&DATE(YEAR(TODAY())-1,MONTH(TODAY()),1),E6:E52)
Column B6:B52 is my months in MMM-YY format.
Column E6:E52 is $ amounts.
Please help.
|