Reputation: 37
How to convert this quarter-year format into MM/DD/YYYY in Excel where quarter will convert to first day of quarter. For example, Q1-2014 to 1/1/2014, Q2-2015 to 4/1/2015, Q3-2016 to 7/1/2016, Q4-2017 to 10/1/2017
Upvotes: 3
Views: 15770
Reputation: 35915
Try
=DATE(RIGHT(A1,4),(MID(A1,2,1)*3)-2,1)
That will return a date. Format to display in whatever date format you want.
Upvotes: 10
Reputation: 1240
Here is a formula you could use
=DATE(MID(A1,4,4),IF(MID(A1,1,2)= "Q1", 1, IF(MID(A1, 1, 2) = "Q2", 4, IF(MID(A1,1,2)="Q3", 7, 10))), 1)
Assumptions The format is Q[1/2/3/4]-YYYY
Formula Take the last 4 digits as Year Take Month as 1 if Q1 else 3 if month is Q3,... Take Date as 1
Upvotes: 1