Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default date into current and previous quarters

I have a date field that I want my formula(s) to look at and give me the
current quarter the date falls in, and also give me the previous 3 quarters
(showing a total of 4 quarters).

I want the formulas to adjust the quarters as I adjust the date.

So, if the date is 2/30/2009, I want my formulas to show the following:

2ND QTR 2008 3RD QTR 2008 4TH QTR 2008 2ND QTR 2009

And if I change the date to 6/30/2009, I want the formulas to show:

3RD QTR 2008 4TH QTR 2008 1ST QTR 2009 2ND QTR 2009

I want the quarters to show in this format: 2ND QTR 2009

I have tried this formula, but do not know how to adjust it to show the
previous 3 quarters:

=INT((MONTH($M$484)+2)/3)&"ND QTR "&YEAR($M$484)

Thanks - your help is always appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default date into current and previous quarters

Is your first example date meant to be 4/30/2009, i.e. 30th April
2009 ?

And why does June 30th fall into the 3rd quarter? When do your
quarters start and end?

Pete

On Sep 10, 8:37*pm, lawandgrace
wrote:
I have a date field that I want my formula(s) to look at and give me the
current quarter the date falls in, and also give me the previous 3 quarters
(showing a total of 4 quarters).

I want the formulas to adjust the quarters as I adjust the date.

So, if the date is 2/30/2009, I want my formulas to show the following:

2ND QTR 2008 * * * * *3RD QTR 2008 * * * * *4TH QTR 2008 * * * * *2ND QTR 2009

And if I change the date to 6/30/2009, I want the formulas to show:

3RD QTR 2008 * * * * *4TH QTR 2008 * * * * 1ST QTR 2009 * * * * *2ND QTR 2009

I want the quarters to show in this format: *2ND QTR 2009

I have tried this formula, but do not know how to adjust it to show the
previous 3 quarters:

=INT((MONTH($M$484)+2)/3)&"ND QTR "&YEAR($M$484)

Thanks - your help is always appreciated!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default date into current and previous quarters

My apologies - I corrected the first example below (2ND QTR 2009 should have
been 1ST QTR 2009). Arrrghh......I tried so hard to be accurate! :-)

In the first example, 1ST QTR 2009 reflects the quarter that 2/30/2009 falls
within, and then the quarters in front of that should reflect the 3 preceding
quarters.

Same with the second example: 2ND QTR 2009 reflects the quarter that
6/30/2009 falls within.

Does this help?

"Pete_UK" wrote:

Is your first example date meant to be 4/30/2009, i.e. 30th April
2009 ?

And why does June 30th fall into the 3rd quarter? When do your
quarters start and end?

Pete

On Sep 10, 8:37 pm, lawandgrace
wrote:
I have a date field that I want my formula(s) to look at and give me the
current quarter the date falls in, and also give me the previous 3 quarters
(showing a total of 4 quarters).

I want the formulas to adjust the quarters as I adjust the date.

So, if the date is 2/30/2009, I want my formulas to show the following:

2ND QTR 2008 3RD QTR 2008 4TH QTR 2008 1ST QTR 2009

And if I change the date to 6/30/2009, I want the formulas to show:

3RD QTR 2008 4TH QTR 2008 1ST QTR 2009 2ND QTR 2009

I want the quarters to show in this format: 2ND QTR 2009

I have tried this formula, but do not know how to adjust it to show the
previous 3 quarters:

=INT((MONTH($M$484)+2)/3)&"ND QTR "&YEAR($M$484)

Thanks - your help is always appreciated!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default date into current and previous quarters

I was wondering what date 2/30/2009 represented - 30th February
2009 ??

Anyway, suppose your date is in A1. I've assumed there are 91 days in
a quarter, so put the following formulae in the cells stated:

A3: ="QTR-"&INT((MONTH(A1-273)-1)/3)+1&" "&YEAR(A1-273)

B3: ="QTR-"&INT((MONTH(A1-182)-1)/3)+1&" "&YEAR(A1-182)

C3: ="QTR-"&INT((MONTH(A1-91)-1)/3)+1&" "&YEAR(A1-91)

D3: ="QTR-"&INT((MONTH(A1)-1)/3)+1&" "&YEAR(A1)

It will give you this output with 28th Feb 2009 in A1:

QTR-2 2008 QTR-3 2008 QTR-4 2008 QTR-1 2009

Not exactly the same as you wanted, but close enough.

Hope this helps.

Pete

On Sep 10, 9:10*pm, lawandgrace
wrote:
My apologies - I corrected the first example below (2ND QTR 2009 should have
been 1ST QTR 2009). *Arrrghh......I tried so hard to be accurate! * :-)

In the first example, 1ST QTR 2009 reflects the quarter that 2/30/2009 falls
within, and then the quarters in front of that should reflect the 3 preceding
quarters.

Same with the second example: 2ND QTR 2009 reflects the quarter that
6/30/2009 falls within.

Does this help?



"Pete_UK" wrote:
Is your first example date meant to be 4/30/2009, i.e. 30th April
2009 ?


And why does June 30th fall into the 3rd quarter? When do your
quarters start and end?


Pete


On Sep 10, 8:37 pm, lawandgrace
wrote:
I have a date field that I want my formula(s) to look at and give me the
current quarter the date falls in, and also give me the previous 3 quarters
(showing a total of 4 quarters).


I want the formulas to adjust the quarters as I adjust the date.


So, if the date is 2/30/2009, I want my formulas to show the following:


2ND QTR 2008 * * * * *3RD QTR 2008 * * * * *4TH QTR 2008 * * * * *1ST QTR 2009


And if I change the date to 6/30/2009, I want the formulas to show:


3RD QTR 2008 * * * * *4TH QTR 2008 * * * * 1ST QTR 2009 * * * * *2ND QTR 2009


I want the quarters to show in this format: *2ND QTR 2009


I have tried this formula, but do not know how to adjust it to show the
previous 3 quarters:


=INT((MONTH($M$484)+2)/3)&"ND QTR "&YEAR($M$484)


Thanks - your help is always appreciated!- Hide quoted text -


- Show quoted text -


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
Conditional formatting on Current or previous Quarter entries Loadmaster Excel Discussion (Misc queries) 3 December 4th 08 02:41 AM
16-jul-07 date format to sum at quarters see example Lanette Excel Worksheet Functions 2 October 18th 07 04:55 PM
Date To Quarter, Plus Next 3 Quarters Bob Excel Worksheet Functions 1 November 3rd 06 12:25 PM
Calculating monthly totals for current and previous year Pieman New Users to Excel 1 February 26th 06 12:43 PM
Calculate % variance on previous quarters. Quarter %, etc. pivot DaveC Excel Discussion (Misc queries) 1 August 8th 05 06:45 PM


All times are GMT +1. The time now is 05:40 PM.

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

About Us

"It's about Microsoft Excel"