Need to add ISBLANK to a formula
Good morning,
To determine the status of a row, I have the following formula (in the Status) column:
=IF(Complete1 = "Yes", "COMPLETED", IF(Complete1 = "Cancelled", "CANCELLED", (IF(TODAY() >= [Due Date]1, "PAST DUE", IF(TODAY(1) = [Due Date]1, "Due Tomorrow", "In Progress")))))
I need to add to this formula to leave the cells in the status column blank if the 'Due Date' field is blank. I've tried several variations of the following, but get an error each time.
=IF(Complete1 = "Yes", "COMPLETED", IF(Complete1 = "Cancelled", "CANCELLED", (IF(TODAY() >= [Due Date]1, "PAST DUE", IF(TODAY(1) = [Due Date]1, "Due Tomorrow", "In Progress", IF(ISBLANK([Due Date]1), " "))))))
What am I missing?
Thank you!
Best Answers
-
It is just the order in which your IF's are nested. Smartsheet works from left to right and will stop at the first true value.
=IF(ISBLANK([Due Date]@row), "", IF(Complete1 = "Yes", "COMPLETED", IF(Complete1 = "Cancelled", "CANCELLED", (IF(TODAY() >= [Due Date]1, "PAST DUE", IF(TODAY(1) = [Due Date]1, "Due Tomorrow", "In Progress"))))))
-
Hi Paul,
Thanks so your help and insight on how Smartsheet works (from left to right). Now it makes sense and is working! Thanks again!
Answers
-
It is just the order in which your IF's are nested. Smartsheet works from left to right and will stop at the first true value.
=IF(ISBLANK([Due Date]@row), "", IF(Complete1 = "Yes", "COMPLETED", IF(Complete1 = "Cancelled", "CANCELLED", (IF(TODAY() >= [Due Date]1, "PAST DUE", IF(TODAY(1) = [Due Date]1, "Due Tomorrow", "In Progress"))))))
-
Hi Paul,
Thanks so your help and insight on how Smartsheet works (from left to right). Now it makes sense and is working! Thanks again!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!