Forum Discussion
Hongan1300
May 01, 2023Copper Contributor
How to write date validation formula
I am trying to compare the date inside of Column E to todays date. 1. If today's date is greater than date in Column E then Expired 2. If the date within Column E is within 30 days of Today's date ...
- May 01, 2023
Perhaps
= IF( ISBLANK(E65), "", IF( TODAY() >= E65, "Expired", IF( AND(E65 > TODAY(), E65 <= (TODAY() + 30)), "Expiring", "" ) ) )
Hongan1300
May 01, 2023Copper Contributor
That worked! Still unsure why mine didnt work, was it the spacing?
SergeiBaklan
May 01, 2023Diamond Contributor
You had "" as second option in first IF(). With nested IF() second option is always next IF, except very last one.