Duration Formula, if End Date is Blank, use Today's Date, if not, use End Date @ row
I'm struggling to update an existing formula in our Smartsheets. Currently, we calculate the duration of a task by using this formula:
=([End Date]@row - [Start Date]@row)
The issue is, if the end date is blank because the task is not complete, the duration is blank. I'd like to update it to use the existing formula AND if the end date is blank, use today's date.
I've hit a dead end every way I can think of to google this. Any help is appreciated.
Thanks!
Best Answer
-
Try this:
=IF([End Date]@row <> "", [End Date]@row, TODAY()) - [Start Date]@row
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try this:
=IF([End Date]@row <> "", [End Date]@row, TODAY()) - [Start Date]@row
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome TYSM!!! This is exactly what I needed. I can't thank you enough!!!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
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!