Help with a NETDAYS formula
I have a formula in my sheet that is counting the days of an assignment since it was assigned. I would like it to stop counting once the row is marked complete or a date of completion is added. For example, in the screenshot below, the 37 in row 4 should be a 36 since the "Date Completed" column is filled in and/or the "Completed" column is checked.
This is the formula I am currently using:
=NETDAYS([Date Received]@row, TODAY())
And a screenshot of the sheet:
Answers
-
Hi Bruno,
You're formula needs to account for the Date Completed column so it "stops" the count. You'll want to use something like this:
=IF(ISDATE([Date Completed]@row), NETDAYS([Date Completed]@row, TODAY()), NETDAYS([Date Assigned]@row, TODAY()))
Essentially, if there is a date in Date Completed, then calculate the net days between that date and today. If not, then calculate the net days between Date Assigned and Today.
Hope this helps!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!