Subtracting dates - if error than string
Shlomi
✭✭✭
Hi all,
I want to substruct between 2 dates. but if there is a String, I want to write The following: "~"
Help me pls :)
Best Answer
-
If I'm understanding correctly and your formula is working the way you want it to in your other rows. It should be
=iferror([End date]@row-[Start date]@row+"Days","~")
Answers
-
If I'm understanding correctly and your formula is working the way you want it to in your other rows. It should be
=iferror([End date]@row-[Start date]@row+"Days","~")
-
Yes, it is working.
another thing, maybe you can help me
I want to add the following to the function above:
If the string is "Days" then write "Nothing"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 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!