I need help completing an If statement to calculate networkdays when a condition is met
I have the need to calculate the amount of days a record was open or is currently open. I keep getting errors in the formula. I have the below screen shot for reference.
So, when Progress tracking = complete I need the networkdays from Created to Completed and when Progress tracking <> complete I need the networkdays from Created to Today's date. Any assistance you have is greatly appreciated. :)
Best Answer
-
So you know you want NETWORKDAYS and you want to start from the Created date...
=NETWORKDAYS(DATEONLY(Created@row), stopping point?)
The stopping point for the above you want to read as IF [Progress tracking] is "Complete" then use the [Completed Date], otherwise you want to use TODAY().
=IF([Progress tracking]@row = "Complete", [Completed Date]@row, TODAY())
Now that we have our stopping point established, we can go ahead and drop it into our first bit, and you should be up and running...
=NETWORKDAYS(DATEONLY(Created@row), IF([Progress tracking]@row = "Complete", [Completed Date]@row, TODAY()))
Answers
-
So you know you want NETWORKDAYS and you want to start from the Created date...
=NETWORKDAYS(DATEONLY(Created@row), stopping point?)
The stopping point for the above you want to read as IF [Progress tracking] is "Complete" then use the [Completed Date], otherwise you want to use TODAY().
=IF([Progress tracking]@row = "Complete", [Completed Date]@row, TODAY())
Now that we have our stopping point established, we can go ahead and drop it into our first bit, and you should be up and running...
=NETWORKDAYS(DATEONLY(Created@row), IF([Progress tracking]@row = "Complete", [Completed Date]@row, TODAY()))
-
Thank you!!!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!