Count days between start date and today
I want to count the days between the start date and today if the end date is blank.
Best Answer
-
If you want to count from start to end if there is an end but use today if there is no end, then it would look something like this...
=IF(ISDATE([End Date]@row), [End Date]@row, TODAY()) - [Start Date]@row
If you want to leave blank when an end date is present and only count when end date is blank...
=IF([End Date]@row = "", TODAY() - [Start Date]@row)
Answers
-
If you want to count from start to end if there is an end but use today if there is no end, then it would look something like this...
=IF(ISDATE([End Date]@row), [End Date]@row, TODAY()) - [Start Date]@row
If you want to leave blank when an end date is present and only count when end date is blank...
=IF([End Date]@row = "", TODAY() - [Start Date]@row)
-
I thought I tried the second one but I must have typed it wrong. Thanks, it worked.
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!