Formula for Quarter Year

david_j_redden

New Member
Joined
Mar 18, 2016
Messages
1
In cell A2 of my spreadsheet is an automatic date which populates with the previous month's end date. So for this example: Q12016
I can get that simply enough with ="Q"&INT((MONTH($A$2)+2)/3)&YEAR($A$2)

In cells A4 through A12 I need the results to be

A4 Q12016 ="Q"&INT((MONTH($A$2)+2)/3)&YEAR($A$2)
A5 Q42015
A6 Q32015
A7 Q22015
A8 Q12015
A9 Q42014
A10 Q32014
A11 Q22014
A12 Q12014

Any ideas?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Using your posted scenario, either of these formulas, copied down, return the results you're looking for:

Code:
A5: ="Q"&CHOOSE(MID(A4,2,1),4&(RIGHT(A4,4)-1),1&RIGHT(A4,4),2&RIGHT(A4,4),3&RIGHT(A4,4))
or
A5: ="Q"&INT(((MONTH(EDATE($A$2,-ROWS($5:5)*3))+2)/3))&YEAR(EDATE($A$2,-ROWS($5:5)*3))

Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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