Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JJC
 
Posts: n/a
Default rolling year in excel

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.
  #2   Report Post  
George Nicholson
 
Posts: n/a
Default

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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM
how do I set dates every 3 cell for whole year in excel RagDyer Excel Discussion (Misc queries) 1 March 28th 05 10:15 PM
I get a program error when I download an excel template Ladybug Excel Discussion (Misc queries) 3 March 4th 05 12:02 AM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"