I am trying to modify a formula field that we currently use that looks at a date (Date_Booked__c) and based on the MONTH and YEAR returns a text string along the lines of Q1-2017, Q2-2017, etc.
We are going to a custom fiscal year starting in January that will start in February but for the first year Q1 will start in January and run for 4 months (pretty standard.) But I need to be able to keep previously years on the old quarter breakdown. I can't seem to get past the error: "Incorrect parameter type for operator '<'. Expected Date, received Text"
I have tried inserting the VALUE function, DATEVALUE, TEXT, etc. and no matter what still receive the error.
Would be grateful if someone could look at this and let me know what I'm doing wrong.
IF(YEAR(Date_Booked__c < 2018
CASE(MONTH( Date_Booked__c ),
1,"Q1",
2,"Q1",
3,"Q1",
4,"Q2",
5,"Q2",
6,"Q2",
7,"Q3",
8,"Q3",
9,"Q3",
10,"Q4",
11,"Q4",
12,"Q4","None") &"-"&TEXT(YEAR(Date_Booked__c )),
CASE(MONTH( Date_Booked__c ),
1,"Q4",
2,"Q1",
3,"Q1",
4,"Q1",
5,"Q2",
6,"Q2",
7,"Q2",
8,"Q3",
9,"Q3",
10,"Q3",
11,"Q4",
12,"Q4","None") &"-"&TEXT(YEAR(Date_Booked__c )),"None"