Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Forward & Backwards Quarters from an Entered Date

I need column names for quarters 4 quarters forward and 3 quarters backwards
along with the present from the an entered date as shown below:

3Qtr06 4Qtr06 1Qtr07 2Qtr07 3Qtr07 4Qtr07 1Qtr08 2Qtr08 3Qtr08

I believe the issue I am running into is leap years . Depending on the month
(which ends up being a first quarter or last quarter month that causes
issues), the most future quarter or the oldest quarter end up with the wrong
year. I ended up having the user enter the month & the year from two drop
downs. The reason I went to drop downs is that so I could set the actual day
of the month for both the year and the month to try to avoid the issue, with
no luck. I run out to 2012.

I ended up having the user enter the month & the year from two drop downs.

Here are some of the calculations that I am am using:

ROUNDUP(MONTH($F$3)/3,0)&"Qtr"&RIGHT((YEAR($F$4)),2) for present qtr
ROUNDUP(MONTH($F$3+91)/3,0)&"Qtr"&RIGHT((YEAR($F$4+91)),2) for 2qtr out
ROUNDUP(MONTH($F$3+182)/3,0)&"Qtr"&RIGHT((YEAR($F$4+182)),2) for 3 qtr out

Where $F$3 is the month and $f$4 is the year

Thanks for the help in advance,

Danny



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Forward & Backwards Quarters from an Entered Date

=ROUNDUP($F$3/3,0)&" Qtr"&$F$4


"Danny" wrote:

I need column names for quarters 4 quarters forward and 3 quarters backwards
along with the present from the an entered date as shown below:

3Qtr06 4Qtr06 1Qtr07 2Qtr07 3Qtr07 4Qtr07 1Qtr08 2Qtr08 3Qtr08

I believe the issue I am running into is leap years . Depending on the month
(which ends up being a first quarter or last quarter month that causes
issues), the most future quarter or the oldest quarter end up with the wrong
year. I ended up having the user enter the month & the year from two drop
downs. The reason I went to drop downs is that so I could set the actual day
of the month for both the year and the month to try to avoid the issue, with
no luck. I run out to 2012.

I ended up having the user enter the month & the year from two drop downs.

Here are some of the calculations that I am am using:

ROUNDUP(MONTH($F$3)/3,0)&"Qtr"&RIGHT((YEAR($F$4)),2) for present qtr
ROUNDUP(MONTH($F$3+91)/3,0)&"Qtr"&RIGHT((YEAR($F$4+91)),2) for 2qtr out
ROUNDUP(MONTH($F$3+182)/3,0)&"Qtr"&RIGHT((YEAR($F$4+182)),2) for 3 qtr out

Where $F$3 is the month and $f$4 is the year

Thanks for the help in advance,

Danny



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Forward & Backwards Quarters from an Entered Date

returns the number value vs month

"Teethless mama" wrote:

=ROUNDUP($F$3/3,0)&" Qtr"&$F$4


"Danny" wrote:

I need column names for quarters 4 quarters forward and 3 quarters backwards
along with the present from the an entered date as shown below:

3Qtr06 4Qtr06 1Qtr07 2Qtr07 3Qtr07 4Qtr07 1Qtr08 2Qtr08 3Qtr08

I believe the issue I am running into is leap years . Depending on the month
(which ends up being a first quarter or last quarter month that causes
issues), the most future quarter or the oldest quarter end up with the wrong
year. I ended up having the user enter the month & the year from two drop
downs. The reason I went to drop downs is that so I could set the actual day
of the month for both the year and the month to try to avoid the issue, with
no luck. I run out to 2012.

I ended up having the user enter the month & the year from two drop downs.

Here are some of the calculations that I am am using:

ROUNDUP(MONTH($F$3)/3,0)&"Qtr"&RIGHT((YEAR($F$4)),2) for present qtr
ROUNDUP(MONTH($F$3+91)/3,0)&"Qtr"&RIGHT((YEAR($F$4+91)),2) for 2qtr out
ROUNDUP(MONTH($F$3+182)/3,0)&"Qtr"&RIGHT((YEAR($F$4+182)),2) for 3 qtr out

Where $F$3 is the month and $f$4 is the year

Thanks for the help in advance,

Danny



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
Date going forward Donna Excel Worksheet Functions 2 June 7th 07 11:22 PM
Date To Quarter, Plus Next 3 Quarters Bob Excel Worksheet Functions 1 November 3rd 06 12:25 PM
Auto calculate for date + days forward to yield new date John Sullivan Excel Worksheet Functions 1 April 22nd 06 05:18 PM
Page forward goes backwards apk Excel Discussion (Misc queries) 0 March 23rd 06 03:19 PM
How do I calculate the number of quarters between two date Adam Excel Discussion (Misc queries) 1 September 1st 05 11:02 AM


All times are GMT +1. The time now is 02:23 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"