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", "" ) ) )
SergeiBaklan
May 01, 2023MVP
Perhaps
= IF(
ISBLANK(E65),
"",
IF(
TODAY() >= E65,
"Expired",
IF(
AND(E65 > TODAY(), E65 <= (TODAY() + 30)),
"Expiring",
""
)
)
)
- Hongan1300May 01, 2023Copper ContributorThat worked! Still unsure why mine didnt work, was it the spacing?
- SergeiBaklanMay 01, 2023MVP
You had "" as second option in first IF(). With nested IF() second option is always next IF, except very last one.