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
- 66.2K Get Help
- 430 Global Discussions
- 150 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 500 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!