Less Than Date Comparisons with Blank Cells
I have a column "Deliverable Past Due" that should return a Yes if any dates in the stated columns are less than today. The issue arises when many of the date columns are blank. The formula recognizes blank cells as being in the past and always returns a "Yes". I tried adding ISDATE to the statement, but then it always returns "No" even when a date is in the past. I pasted the formula below.
=IF(ISDATE(OR([Comp1 Art Due Date]@row < TODAY(), [Comp2 Art Due Date]@row < TODAY(), [Comp3 Art Due Date]@row < TODAY(), [Comp4 Art Due Date]@row < TODAY(), [Comp5 Art Due Date]@row < TODAY(), [Comp6 Art Due Date]@row < TODAY(), [Comp7 Art Due Date]@row < TODAY(), [Comp8 Art Due Date]@row < TODAY(), [Comp9 Art Due Date]@row < TODAY(), [Comp10 Art Due Date]@row < TODAY(), [White Papers Due]@row < TODAY(), [Deck Due Date]@row < TODAY(), [Rendering Due Date]@row < TODAY(), [Client Quote Due]@row < TODAY())), "Yes", "No")
Comments
-
What was your original formula?
-
Hi Davey,
I'd recommend using a combination of IF AND and maybe OR to check if it's a date and if it's in the past.
Would that work?
I hope that helps!
Have a fantastic day!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
I would suggest a slightly different approach. COLLECT all of the dates across a range consisting of those columns. Pull the earliest date. If that is less than today, flag "Yes", otherwise flag "No".
=IF(MIN(COLLECT([Comp1 Art Due Date]@row:[Client Quote Due]@row, [Comp1 Art Due Date]@row:[Client Quote Due]@row, ISDATE(@cell))) < TODAY(), "Yes", "No")
-
Yes, this did the trick. Thank you!
-
Excellent! Happy to help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!