MrSamExcel

Board Regular
Joined
Apr 6, 2016
Messages
50
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I'd like a formula that returns the latest calendar quarter end Month and Year in the format "MMYY", based on today's date w/out referencing any other cell.
ex) If I open the spreadsheet on 11/17/17, the formula result would be 0917
On 1/5/18, result would be 1217
On 4/17/18, result would be 0318
On 6/29/18, result would be 0318
On 7/1/18, result would be 0618

If it helps, I currently use the following formula to return the last calendar quarter date in format "M/DD/YYYY":
=DATE(YEAR(TODAY()),FLOOR(MONTH(TODAY())-1,3)+1,0)
as of 11/17/17, result is 9/30/2017 [note the formula does not require any cell references]

Thanks.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Just wrap your current formula in the TEXT function, i.e.
Code:
=[COLOR=#ff0000]TEXT([/COLOR]DATE(YEAR(TODAY()),FLOOR(MONTH(TODAY())-1,3)+1,0)[COLOR=#ff0000],"mmyy")[/COLOR]
 
Upvote 0
Perfect, thanks!
I thought that was exactly what I unsuccessfully tried first but apparently I made a mistake.
 
Upvote 0

Forum statistics

Threads
1,215,377
Messages
6,124,598
Members
449,174
Latest member
chandan4057

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