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!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.9K Get Help
- 441 Global Discussions
- 153 Industry Talk
- 500 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 78 Community Job Board
- 511 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!