Sum between two dates but left blank if there is no date in one of the columns
Hi there,
I am looking for the formula to find the number of days it took between two dates only if there is a date added in Column A.
I have used and this worked great to get the days but if there are any blanks in Column A it comes back as a 0 and I am looking for it to be blank instead.
What do I need to add to make it blank if there is no date in column A?
=SUM([Column A]@row - [Column B]@row)
Thank you
Tags:
Best Answer
-
Try this:
=IF([Column A]@row <> "", [Column A]@row - [Column B]@row)
Answers
-
Try this:
=IF([Column A]@row <> "", [Column A]@row - [Column B]@row)
-
Thank you Paul! This did the trick.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 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!