Avatar of Jason Kyles
Jason Kyles
 asked on

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

Avatar of undefined
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).
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Professor J

if you want to remove time from it then first step should be  =TEXT(INT(A1),"MM/DD/YY")  this removes the time
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason Kyles

ASKER
Thank you, but that did not work. Converting time zone
Professor J

please try this ="Q"&ROUNDUP(MONTH(L5)/3,0)&"-"&YEAR(INT(L5))
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Kyles

ASKER
This works. Thanks, Bill! Converting time zone
SOLUTION
Professor J

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Bill Prew

Great.


»bp
Jason Kyles

ASKER
Thanks, Professor JimJam. This works as well. Converting time zone
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Professor J

you are welcome.
Jason Kyles

ASKER
Sorry. Wrong screenshot, Professor JimJam. Here's the correct one. Capture.PNG
Professor J

:)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.