Add or Subtract a value from a NETDAYS formula
Here is the formula that I have. It works fine except it is one day off:
=IFERROR(NETDAYS([Completion Date]@row, [Due Date]@row), "")
It calculates correctly but I need to adjust by one day:
- If the returned value is equal to or more than 1, I want to subtract 1 (-1)
- If the returned value is equal to or less than -1, I want to add 1 (+1)
Thanks in advance.
Best Answer
-
Hi Justin
I hope you are doing well,
You can use this formula based on your needs.
=IFERROR(IF(NETDAYS([Completion Date]@row, [Due Date]@row) >= 1, NETDAYS([Completion Date]@row, [Due Date]@row) - 1, IF(NETDAYS([Completion Date]@row, [Due Date]@row) <= -1, NETDAYS([Completion Date]@row, [Due Date]@row) + 1, "")), "")
I hope this is useful to you, Have a Good Day.
Thanks
Shubham Umale, Smartsheet Engineer, Ignatiuz Software
Answers
-
Hi Justin
I hope you are doing well,
You can use this formula based on your needs.
=IFERROR(IF(NETDAYS([Completion Date]@row, [Due Date]@row) >= 1, NETDAYS([Completion Date]@row, [Due Date]@row) - 1, IF(NETDAYS([Completion Date]@row, [Due Date]@row) <= -1, NETDAYS([Completion Date]@row, [Due Date]@row) + 1, "")), "")
I hope this is useful to you, Have a Good Day.
Thanks
Shubham Umale, Smartsheet Engineer, Ignatiuz Software
-
It worked perfectly. Thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 464 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 60 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 40 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!