rolling year in excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top