Formula Help Calculate # of Days with 2 date fields, unless date field is blank use todays date.
I need a formula for column "Days to Build" I want the number of days it has taken to build using Build End Date - Build Start Date = Days to Build, but if there is no Build end date I want it to be today - build start date = days to build.
Best Answer
-
Hi Danielle Maroon,
You can try the below formula-
=IF(AND(NOT(ISBLANK([Build Start Date]@row)), NOT(ISBLANK([Build End Date]@row))), [Build End Date]@row - [Build Start Date]@row, IF(ISBLANK([Build End Date]@row), TODAY() - [Build Start Date]@row, ""))
As I tested it is working fine for me, Hope it will work for you too!
Thank You !
Anjanesh Vaidya
Thanks,
Anjanesh Vaidya
Smartsheet Development, Ignatiuz Software
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️
Answers
-
Hi Danielle Maroon,
You can try the below formula-
=IF(AND(NOT(ISBLANK([Build Start Date]@row)), NOT(ISBLANK([Build End Date]@row))), [Build End Date]@row - [Build Start Date]@row, IF(ISBLANK([Build End Date]@row), TODAY() - [Build Start Date]@row, ""))
As I tested it is working fine for me, Hope it will work for you too!
Thank You !
Anjanesh Vaidya
Thanks,
Anjanesh Vaidya
Smartsheet Development, Ignatiuz Software
Did this answer help you? Show some love by marking this answer as "Insightful💡" or "Awesome❤️" and "Vote Up⬆️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!