What's wrong with this formula?
=IF(Due date,<=Date closed, "yes", "[No]")
the intent is to record yes or no in a helper column dependent. The former if the date closed is on or before the due date. The latter if after the due date.
Thanks in advance
Answers
-
Try this:
=IF([Due date]@row<=[Date closed]@row, "yes", "[No]")
-
Thanks @Paul Newcome that works. A further question, what would I add to the formula so that the cell stays blank until both dates are entered? ATM when I add it to the column it shows 'No' for blank rows (ie not met). Just to keep it tidy.
-
You would need somethign more like this:
=IF(AND([Due Date]@row <> "", [Date Closed]@row <> "", [Due date]@row<=[Date closed]@row), "yes", "[No]")
-
Hi @Paul Newcome . This did not remove a yes or no when other columns are blank. Any further suggestions Tx
-
I hope you're well and safe!
Try something like this.
= IF(OR([Due Date]@row = "", [Date Closed]@row = ""), "", IF(AND([Due Date]@row <> "", [Date Closed]@row <> "", [Due Date]@row <= [Date Closed]@row), "yes", "[No]"))
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
-
That worked! Thanks. One further query, if i want it to be less than or = to by adding < it seems to screw it up. This woudl be helpful as with only the = sign it says its late if both dates are the same when in reality if its closed on the date planed its is on time. Only after that date is it late.
-
Excellent!
Happy to help!
Try removing the = and only keep the <.
=IF(OR([Due Date]@row = "", [Date Closed]@row = ""), "", IF(AND([Due Date]@row <> "", [Date Closed]@row <> "", [Due Date]@row < [Date Closed]@row), "yes", "[No]"))
Did that work?
✅Please support the Community by marking the post(s) that helped or answered your question or solved your problem with the accepted answer/helpful, Insightful/Vote Up/Awesome. It will make it easier for others to find a solution or help to answer!
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!