Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JJC
 
Posts: n/a
Default Rolling Year in Excel

I have a similiar situation, however, I would also like a rolling 6 months
and 18 months, any idea how you would do that?



"Frank Kabel" wrote:

Hi
first the SUMIF formula syntax:
=SUMIF(range_to_check,condition,range_to_sum)

So of course the first range is A1:A100 (your dates) and the last range
is column B 8your values. Now the condition part:
"=" & DATE(YEAR(TODAY())-1,MONTH(TODAY()),1)

The DATE formula part uses the current day and creates a date that is
equivalent to the first day of the month 12 months ago. e.g.
TODAY()=13-Jul-2004
This Date formula create the date
1-Jul-2003

Now this is just combined with "=" to get all values which have a date
greater or equal than this calculated date


--
Regards
Frank Kabel
Frankfurt, Germany


Jay S. wrote:
Thank you so much for a quick response!!! Solved my problem exactly,
I am wondering if you might be abel to tell me what the formula does
exactly, I know it does it but what are the specific parts of the
formula doing?

Thanks,
Jay

"Frank Kabel" wrote:

Hi Jay
if column A really consists of date values which are just formated

as
MMMM-YY (but are entered like MM-01-YYYY) then try the following
formula
=SUMIF(A1:A100,"=" &

DATE(YEAR(TODAY())-1,MONTH(TODAY()),1),B1:B100)

--
Regards
Frank Kabel
Frankfurt, Germany


Jay S. wrote:
I am wondering iif I can get Excel to give me the sum of just the
last twelve months in a tabel that contains multiple years.

Example
he Month/Year Days Used
January-02 2
February-02 15
March-02 0
April-02 0
May-02 0
June-02 5
July-02 6
August-02 4
September-02 0
October-02 0
November-02 0
December-02 0
January-03 0
February-03 0
March-03 0
April-03 4
May-03 5
June-03 2
July-03 0
August-03 20
September-03 10
October-03 3
November-03 5
December-03 0
January-04 0
February-04 0
March-04 0
April-04 10
May-04 0
June-04 0
July-04 0



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
rolling year in excel JJC Excel Worksheet Functions 1 June 8th 05 12:36 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


All times are GMT +1. The time now is 08:01 PM.

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"