Forum Discussion
Space250
Feb 16, 2023Copper Contributor
Assistance with Date Formula
Hi there, After spending the last 45 minutes researching and trying to troubleshoot this myself, I have given up and am now seeking support. I am trying to create the following statement (w...
- Feb 16, 2023
Yes, that is a different situation. An empty cell is treated as "less than" any date. So:
=IF(AND(D2<>"", D2<=TODAY()), "YES", "")
Space250
Feb 16, 2023Copper Contributor
Hi HansVogelaar thanks so much for your fast response
This seems so obvious and makes sense, but there is one situation where it doesn't seem to work:
If D2 is entirely blank (there's no text/date/etc. entered) it results with "YES" with the formula: =IF(D2 <=TODAY(),"YES",""). Any way to avoid this?
(quick note, I reversed then >= to <= as I had it backwards in my original post)
HansVogelaar
Feb 16, 2023MVP
Yes, that is a different situation. An empty cell is treated as "less than" any date. So:
=IF(AND(D2<>"", D2<=TODAY()), "YES", "")
- Space250Feb 16, 2023Copper ContributorThank you so much, that did the trick!