Hi,
I need a formula that will return one of F2019, F2018 or F2017 depending on the columns of year and month. Our year end is March so F2019 will run from April, 2018 to March, 2019; F2018 was April, 2017 to March, 2018; and F2017 was from April, 2016 to March 2017. I was trying to use nested IF/AND/OR as follows
=IF(AND([@Year]=2017,OR([@Month]="April",[@Month]="May",[@Month]="June",[@Month]="July",[@Month]="August",[@Month]="September",[@Month]="October",[@Month]="November",[@Month]="December")),"F2018", IF(AND([@Year]=2018,OR([@Month]="January",[@Month]="February",[@Month]="March",)),"F2018"),IF(AND([@Year]=2018,OR([@Month]="April",[@Month]="May",[@Month]="June",[@Month]="July",[@Month]="August",[@Month]="September",[@Month]="October",[@Month]="November",[@Month]="December")),"F2019", IF(AND([@Year]=2019,OR([@Month]="January",[@Month]="February",[@Month]="March",)),"F2019")))
it works for one fiscal but, once I try to do two or more it says too many arguments. I know there is an easier way to do the formula I believe with VLookup but, I am not well versed in that yet.
Thanks
Jen
I need a formula that will return one of F2019, F2018 or F2017 depending on the columns of year and month. Our year end is March so F2019 will run from April, 2018 to March, 2019; F2018 was April, 2017 to March, 2018; and F2017 was from April, 2016 to March 2017. I was trying to use nested IF/AND/OR as follows
=IF(AND([@Year]=2017,OR([@Month]="April",[@Month]="May",[@Month]="June",[@Month]="July",[@Month]="August",[@Month]="September",[@Month]="October",[@Month]="November",[@Month]="December")),"F2018", IF(AND([@Year]=2018,OR([@Month]="January",[@Month]="February",[@Month]="March",)),"F2018"),IF(AND([@Year]=2018,OR([@Month]="April",[@Month]="May",[@Month]="June",[@Month]="July",[@Month]="August",[@Month]="September",[@Month]="October",[@Month]="November",[@Month]="December")),"F2019", IF(AND([@Year]=2019,OR([@Month]="January",[@Month]="February",[@Month]="March",)),"F2019")))
it works for one fiscal but, once I try to do two or more it says too many arguments. I know there is an easier way to do the formula I believe with VLookup but, I am not well versed in that yet.
Thanks
Jen