Forum Discussion
Long IF formula to addon if more than 24 months, then TRUE is "Aged"
I'm sorry to jump in, but why DATEDIF(TODAY(), E4,"Y"), not DATEDIF( E4,TODAY(),"Y") ? Earlier date shall be first here.
- SergeiBaklanSep 06, 2023Diamond Contributor
So, actually we don't care about Renewal Date, we check how many months today since Approval Date and return notification depends on that. If so that could be
=IF( TODAY() <= EDATE(D4, 8), "Yes", IF( TODAY() <= EDATE(D4, 12), "At Risk", IF( TODAY() < EDATE(D4, 24), "No", "Aged" ) ) )or, in SharePoint notation which doesn't support EDATE
=IF( TODAY() <= DATE(YEAR(D4),MONTH(D4)+8,DAY(D4)), "Yes", IF( TODAY() <= DATE(YEAR(D4),MONTH(D4)+12,DAY(D4)), "At Risk", IF( TODAY() < DATE(YEAR(D4),MONTH(D4)+24,DAY(D4)), "No", "Aged" ) ) )With that logic I didn't catch initial sample with At Risk on next date after Approval Date.
Or we have to ignore Approval Date and calculate only how many months are from today to Renewal Date or after that. IMHO, when it looks like the logic shall be different. If today we are at 2 months after Renewal Date, is that "Aged" or what? Or it could be one more logic if the take into account all three - Approval Date, Renewal Date and TODAY. Have no idea which one.