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
Answers
-
Try this:
=IF([End Date]@row <> "", [End Date]@row, TODAY()) - [Start Date]@row
-
@Paul Newcome TYSM!!! This is exactly what I needed. I can't thank you enough!!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!