I am trying to use an IF statement to assign losses to a certain year; however since the policy years differ from client to client it is not like trying to assign based on a fiscal year. So I have my "Effective Date" in cell N6 and in column A I am using the following formula:
=IF(ISBLANK(C2),"",IF(C2<DATE(YEAR($N$6),MONTH($N$6),DAY($N$6)),YEAR(C2)-1&"/"&RIGHT(YEAR(C2),4),YEAR(C2)&"/"&RIGHT(YEAR($N$6)+1,4)))
It appears to be working, until I get to row 16, 17 & 18 (on attached) where my date of loss is late December (the term in column A should be 2023/2024 but instead it is showing 2022/2023). My ask of someone with more brain power than I have is the following:
1. What am I doing wrong in my formula (If my Effective Date in N6 was 12/08/2023 the terms in column A would be correct)
2. How do I make it where column A shows the years as YY/YY instead of YYYY/YYYY - My OCD can't handle it.
=IF(ISBLANK(C2),"",IF(C2<DATE(YEAR($N$6),MONTH($N$6),DAY($N$6)),YEAR(C2)-1&"/"&RIGHT(YEAR(C2),4),YEAR(C2)&"/"&RIGHT(YEAR($N$6)+1,4)))
It appears to be working, until I get to row 16, 17 & 18 (on attached) where my date of loss is late December (the term in column A should be 2023/2024 but instead it is showing 2022/2023). My ask of someone with more brain power than I have is the following:
1. What am I doing wrong in my formula (If my Effective Date in N6 was 12/08/2023 the terms in column A would be correct)
2. How do I make it where column A shows the years as YY/YY instead of YYYY/YYYY - My OCD can't handle it.