• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula to find trailing 4 qtrs

ysherriff

Member
I need a formula that will provide me the trailing 4 quarters based on current quarter. So if we are in Q3-2016, then i need formula that will spit out Q4-2016, Q1-2017, Q2-2017 and Q3-2017.


Thanks for your help.
 
Hi ,

Try this :

="Q" & IF(MID(C3,2,1)+0 < 4, MID(C3,2,1)+1, 1) & "-" & IF(MID(C3,2,1)+0 < 4, RIGHT(C3,4), RIGHT(C3,4)+1)

where C3 has the string Q?-???? e.g. Q2-2017

Narayan
 
Back
Top