How do I convert date/time stamps to quarters (Q1, Q2, etc...)?
Hi,
How can I convert 08/18/17 04:31PM EDT to quarters (Q1, Q2, etc...)?
Thanks.
Microsoft ExcelMicrosoft Office
Last Comment
Professor J
8/22/2022 - Mon
Professor J
lets say your date is in A1 then put ="Q"&ROUNDUP(MONTH(A1)/3,0)
Bill Prew
If you have a date field in A2 then try these approaches. The first just gives the quarter with a "Q", the other includes the year in a slightly different format. Adjust as needed.
=CONCATENATE("Q",ROUNDUP(MONTH(A2)/3,0))
=CONCATENATE(ROUNDUP(MONTH(A2)/3,0),"Q",YEAR(A2))
»bp
Jason Kyles
ASKER
Thank you. Both solutions suggested work well when I remove the time zone. Unfortunately the javascript export is in this format and I would like a one step conversion solution, but I'm fine with 2 steps if the first one removes the timezone (EDT).