Hey all,
I'm trying to write a formula that will return the quarter and fiscal year (FY) of a given date.
Our fiscal year is October - September. So for the first quarter, the FY doesn't match the calendar year (CY).
So far I've been able to execute this for one CY, but if I try and add a second CY, I get back a blank cell.
The formula I've been using is below:
=IF(YEAR([Date]1) = 2017, IF(MONTH([Date]1) = 1, "Q2 2017", IF(MONTH([Date]1) = 2, "Q2 2017", IF(MONTH([Date]1) = 3, "Q2 2017", IF(MONTH([Date]1) = 4, "Q3 2017", IF(MONTH([Date]1) = 5, "Q3 2017", IF(MONTH([Date]1) = 6, "Q3 2017", IF(MONTH([Date]1) = 7, "Q4 2017", IF(MONTH([Date]1) = 8, "Q4 2017", IF(MONTH([Date]1) = 9, "Q4 2017", IF(MONTH([Date]1) = 10, "Q1 2018", IF(MONTH([Date]1) = 11, "Q1 2018", IF(MONTH([Date]1) = 12, "Q1 2018", "TBD")))))))))))))
That part works great.
But if, instead of TBD, I insert the formula again but with "IF(YEAR([Date]1)=2018", I just get back a blank cell.
Any suggestions? Is there a simpler way to do this?