Skip blank cells in a workingdays formula
Hello,
I am currently using this formula to calculate number of working days. On the same sheet, I have two different processes that I track. Some assets on rows do not complete both processes so there are blank cells.
=NETWORKDAYS([MPT Start Date]@row, [MPT Due Date]@row)
How do I tell the formula if the start and end date are blank, insert a 0 in the column.
I will be adding a widget to my dashboard that will average this column and I believe the error messages I currently see will prevent me from asking the column to provide an aver number of working days.
Can you assist me with this please? Thank you!!
Answers
-
Try the below:
=IF(AND([MPT Start Date]@row<>"",[MPT Due Date]@row<>""),NETWORKDAYS([MPT Start Date]@row, [MPT Due Date]@row),"")
This will leave it blank (not a 0) if you are not using the process.
Probably better to do it this way if you plan averaging the column...
-
Thanks so very much!!!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!