One text for particular period

K

kashish

If A1 = Any date, I need a formula for A2 with conditions like

If A1 between 01 Jan 2009 to 31 Mar 2009 then A2 = Q1
If A1 between 01 Apr 2009 to 30 Jun 2009 then A2 = Q2
If A1 between 01 Jul 2009 to 30 Sep 2009 then A2 = Q3
If A1 between 01 Oct 2009 to 31 Dec 2009 then A2 = Q4
 
G

Glenn

kashish said:
If A1 = Any date, I need a formula for A2 with conditions like

If A1 between 01 Jan 2009 to 31 Mar 2009 then A2 = Q1
If A1 between 01 Apr 2009 to 30 Jun 2009 then A2 = Q2
If A1 between 01 Jul 2009 to 30 Sep 2009 then A2 = Q3
If A1 between 01 Oct 2009 to 31 Dec 2009 then A2 = Q4


="Q"&INT(MONTH(A1)/4)+1
 
D

Dave Peterson

I like this formula in general--if the fiscal year starts on the first of month
number #:
="FY"&YEAR(A1)-(MONTH(A1)<#)&"-Q"&INT(1+MOD(MONTH(A1)-#,12)/3)

So if the fiscal year starts on April 1st, then I'd use:
="FY"&YEAR(A1)-(MONTH(A1)<4)&"-Q"&INT(1+MOD(MONTH(A1)-4,12)/3)

I also like this style of result:
FY2009-Q1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

If statements?? 2
to lookup data for 'today()' 2
Date lists 3
Add monthly totals of months forward 0
Formula based on variable range 3
Formula IF 1
How to getting text labels to show up in scatter chart. 0
Date 2

Top