Using IF, AND, and ISDATE together question
So I'm trying to get the answers of "Late" or "On Time" based on if column [Late] says "Yes" in it, and the Column [Actual Date] is a date (any date will do, just as long as its a date). My formula below is just always giving me the response "On Time" regardless if either criteria I'm trying to check is correct.
=IF(AND([Late?]@row = "Yes", ISDATE([Actual Date]@row)), "Late", "On Time")
Also having an issue with this
=IFERROR(IF(AND([Target Date]@row < TODAY(), ISDATE[Actual Date]@row)), "Yes", "No"), "")
Getting an error on this one, so I think I am just using something incorrectly, but cant find it...
Best Answer
-
The date I was looking at, wasn't listed as a date field, so I think that was confusing everything. I changed that and now it is working....I think!
Answers
-
Give this a try on the first one:
=IF(AND([Late?]@row = "Yes", ISDATE([Actual Date]@row) = true), "Late", "On Time")
ISDATE returns true or false - just had to add that in there.
Here's the second one:
=IFERROR(IF(AND([Target Date]@row < TODAY(), ISDATE([Actual Date]@row) = true), "Yes", "No"), "")
Let me know how they work out or if there's any other tweaks needed!
-
Didn't see the part about true or false anywhere, thanks for that.
Unfortunately though I am still having the same result. Everything is "On Time"
The second formula is no longer erroring, but isn't giving me the expected results. I may have to work on my logic on that one, not sure.
-
Even if you're putting "Yes" in the [Late?] column?
That's odd.
Do you have any more non-sensitive information or screen shots you could share to help?
-
Not sure how helpful this is...
Using this formula
=IF(AND([Late?]@row = "Yes", ISDATE([PSE Actual Date]@row) = true), "Late", "On Time")
If the late column says yes, and there's not a date in the Actual date field, I want it to say Late. Basically.
-
The date I was looking at, wasn't listed as a date field, so I think that was confusing everything. I changed that and now it is working....I think!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!