Convert Quarters to Date
I have a list of dates that are Quarter/year (in a format like Q4 2031, Q1 2038, etc.) and would like to use a formula to show the last date in the quarter.
So:
Q1 2031 = 03/31/2031
Q2 2027 = 06/30/2027
Q3 2033 = 09/30/2033
Q4 2035 = 12/31/2035
I would appreciate help creating the appropriate statement!
Best Answer
-
Hello @MelissaYE
Try this:
=IF(LEFT([Quarter / Year]@row, 2) = "Q1", "03" + "/" + "31" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q2", "06" + "/" + "30" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q3", "09" + "/" + "30" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q4", "12" + "/" + "31" + "/" + RIGHT([Quarter / Year]@row, 4)))))
Change [Quarter / Year]@row to your Qtr/Yr column on the sheet.
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Answers
-
Hello @MelissaYE
Try this:
=IF(LEFT([Quarter / Year]@row, 2) = "Q1", "03" + "/" + "31" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q2", "06" + "/" + "30" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q3", "09" + "/" + "30" + "/" + RIGHT([Quarter / Year]@row, 4), IF(LEFT([Quarter / Year]@row, 2) = "Q4", "12" + "/" + "31" + "/" + RIGHT([Quarter / Year]@row, 4)))))
Change [Quarter / Year]@row to your Qtr/Yr column on the sheet.
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined -
This works perfectly, thanks so much!!!
-
Happy to help! 😊
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!