Splitting data in yearly quarters

juleshsol

New Member
Joined
Jul 24, 2013
Messages
15
Hi,

I have a large data set which include a date on each line. This ranges back to 2009. I need a formula which can identify which quarter each line fits into ie: date is 1/12/2011 - should read 'Q4 2011'

I have come up with a long winded formula of:

=YEAR(K173)&IF(MONTH(K173)<=3,"Q1",IF(AND(MONTH(K173)>3,MONTH(K173)<=6),"Q2",IF(AND(MONTH(K173)>6,MONTH(K173)<=9),"Q3","Q4")))

But is there a more efficient formula I could use?

Thank you
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Excel 2010
AB
101/01/142014 Q1
201/02/142014 Q1
301/03/142014 Q1
401/04/142014 Q2
501/05/142014 Q2
601/06/142014 Q2
701/07/142014 Q3
801/08/142014 Q3
901/09/142014 Q3
1001/10/142014 Q4
1101/11/142014 Q4
1201/12/142014 Q4

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B1=YEAR(A1)&" Q"&ROUNDUP(MONTH(A1)/3,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Misread your question, updated:


Excel 2010
AB
101/01/14Q1 2014
201/02/14Q1 2014
301/03/14Q1 2014
401/04/14Q2 2014
501/05/14Q2 2014
601/06/14Q2 2014
701/07/14Q3 2014
801/08/14Q3 2014
901/09/14Q3 2014
1001/10/14Q4 2014
1101/11/14Q4 2014
1201/12/14Q4 2014
Sheet1
Cell Formulas
RangeFormula
B1="Q"&ROUNDUP(MONTH(A1)/3,0)&" "&YEAR(A1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top