How to return a MAX Value of "0" if Remaining # of Weeks is < 0
Hello Amazing Community,
I'm trying to create a formula to Remaining Number of Weeks on a project.
Start Date = 5/30/23
End Date = 6/15/23
Formula for Remaining # of Weeks (from today) =NETDAYS(TODAY(), [End Date]@row) / 7 = -2.9
**Problem is when End Date is in the past, and TODAY keeps changing, in which case, Remaining # of Weeks becomes a bigger negative number. How do I edit this formula where the MAX returned value is =0 since technically you can't have a remaining # of weeks to be a negative number?
Hope that makes sense. Thank you
Best Answer
-
You could use the MAX function.
=MAX(current formula, 0)
=MAX(NETDAYS(TODAY(), [End Date]@row) / 7, 0)
Answers
-
=IF([End Date]@row > TODAY(), NETDAYS(TODAY(), [End Date]@row) / 7, 0)
-
You could use the MAX function.
=MAX(current formula, 0)
=MAX(NETDAYS(TODAY(), [End Date]@row) / 7, 0)
-
@Paul Newcome @Carson Penticuff Thank you both. This worked.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!