Putting dates into quarters for quarterly report.

bjf44

New Member
Joined
Mar 18, 2013
Messages
9
How do I seperate multiple dates into quarters?

In EXCEL 2007 I have > 33000 rows of dated data.
The dates are unsorted & run from 1/1/2012 to 12/31/2012.

I have used the month() formula to seperate these in monthly categories of 1 - 12 & then put the data to a pivot tbl and pivot chart.

I would like to view the data in 4 quartiles to give me more user freindly pivot charts.

How do I change a date to a quartile using a formula?

I am a COBOL programmer and while I would use a nested if or a case statement I am without VB macro skills.

Any instruction is appreciated.

Thanks.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
If you are using calendar quarters and have a date in A2 then in B2:
Code:
=IF(AND(MONTH(A2)>=1,MONTH(A2)<=3),1,IF(AND(MONTH(A2)>=4,MONTH(A2)<=6),2,IF(AND(MONTH(A2)>=7,MONTH(A2)<=9),3,4)))
Returns the quarter number for that date.
 
Upvote 0
Joe,

I see how you have combined the logical fx's to get a very useful nested IF.

It works great in my spread sheet.

I appreciate the quote also.

Thanks,

Bruce :nya:
 
Upvote 0
Joe,

I see how you have combined the logical fx's to get a very useful nested IF.

It works great in my spread sheet.

I appreciate the quote also.

Thanks,

Bruce :nya:
Bruce,
Glad to help. Thanks for the feedback.
 
Upvote 0
found this in an Excel book - should also work:

assuming that your date is in A2:

=Roundup(Month(A2)/3,0)
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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