Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RGB
 
Posts: n/a
Default Setting quarter dates in excel

Hi,

I have the following (complex!!) formula to work out quarters from dates;

=IF(ROUNDUP(MONTH(G2)/3,0)=1,"1st Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=2,"2nd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=3,"3rd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=4,"4th Quarter "&YEAR(G2)))))

My question is - how can I change it so that Q1 begins on the 1 November
(the begining of my corps financial year), and not the begining of the
calender year (jan 01)?

Many thanks

RB
  #2   Report Post  
Posted to microsoft.public.excel.misc
hans bal(nl)
 
Posts: n/a
Default Setting quarter dates in excel

Why don't you use a lookup table to identify the Quarter.
Insert a sheet in your workbook with the folowing data

11 Q1
12 Q1
1 Q1
2 Q2
etc.

Then use a formula like =vlookup(month(G2),<<put your table array here ,2)

This should retur the quarter and it makes your formula a bit simpler.

Hans


"RGB" wrote:

Hi,

I have the following (complex!!) formula to work out quarters from dates;

=IF(ROUNDUP(MONTH(G2)/3,0)=1,"1st Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=2,"2nd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=3,"3rd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=4,"4th Quarter "&YEAR(G2)))))

My question is - how can I change it so that Q1 begins on the 1 November
(the begining of my corps financial year), and not the begining of the
calender year (jan 01)?

Many thanks

RB

  #4   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default Setting quarter dates in excel

I may have overcomplicated it, but I think this works as expected:
=ROUNDUP(MONTH(DATE(2000,MONTH(A1)+1,1))/3,0) &
CHOOSE(ROUNDUP(MONTH(DATE(2000,MONTH(A1)+1,1))/3,0),"st","nd","rd","th") & "
Quarter " & YEAR(A1) + INT(MONTH(A1)/12)
If you don't want the number suffix the formula is a little less complex. I
have also added the final part to put december in the right year.

Hope this helps,
Miguel.

"RGB" wrote:

Hi,

I have the following (complex!!) formula to work out quarters from dates;

=IF(ROUNDUP(MONTH(G2)/3,0)=1,"1st Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=2,"2nd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=3,"3rd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=4,"4th Quarter "&YEAR(G2)))))

My question is - how can I change it so that Q1 begins on the 1 November
(the begining of my corps financial year), and not the begining of the
calender year (jan 01)?

Many thanks

RB

  #5   Report Post  
Posted to microsoft.public.excel.misc
RGB
 
Posts: n/a
Default Setting quarter dates in excel

Thanks that works great - one problem though. November & December of each
calender year are actually in the next Finacial year. E.g. The calender date
November 1st 2007 is actually in Q1 2008.

How can I ammend the formula to reflect this?

Many Thanks

RB

"Miguel Zapico" wrote:

I may have overcomplicated it, but I think this works as expected:
=ROUNDUP(MONTH(DATE(2000,MONTH(A1)+1,1))/3,0) &
CHOOSE(ROUNDUP(MONTH(DATE(2000,MONTH(A1)+1,1))/3,0),"st","nd","rd","th") & "
Quarter " & YEAR(A1) + INT(MONTH(A1)/12)
If you don't want the number suffix the formula is a little less complex. I
have also added the final part to put december in the right year.

Hope this helps,
Miguel.

"RGB" wrote:

Hi,

I have the following (complex!!) formula to work out quarters from dates;

=IF(ROUNDUP(MONTH(G2)/3,0)=1,"1st Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=2,"2nd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=3,"3rd Quarter
"&YEAR(G2),IF(ROUNDUP(MONTH(G2)/3,0)=4,"4th Quarter "&YEAR(G2)))))

My question is - how can I change it so that Q1 begins on the 1 November
(the begining of my corps financial year), and not the begining of the
calender year (jan 01)?

Many thanks

RB



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
How do I sort dates in Excel Lorene Schertzl Excel Discussion (Misc queries) 3 March 30th 06 01:52 AM
I know Excel can help me with keeping track of due dates pamiam3333 Excel Discussion (Misc queries) 1 March 7th 06 05:17 AM
Excel Sheet default setting. vishu Excel Discussion (Misc queries) 2 September 29th 05 04:36 PM
Excel 2003 Trashes Imported Dates KymY Excel Discussion (Misc queries) 3 April 27th 05 02:34 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM


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