Weekends are a problem for me….

Jayme580

New Member
Joined
Jun 28, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am working on a formula for days it took to complete a task.
Date task entered is column N
Date task finalized is column O

My current formula is =networkdays(N2,O2,List!$H$3:$H$26)-1

The list is our holidays observed. Normal work week is Monday through Friday.

The problem I am having is if someone works on a weekend and the date entered and date finalized are on that same day (weekend) it is producing a negative number vs zero.

Example.
Entered on 01/15/2023
Finalized on 01/15/2023
Is producing a -1 and I need it to be zero.


How do I update this formula to account for if weekends are worked?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about
Excel Formula:
=MAX(0,NETWORKDAYS(N2,O2)-1,List!$H$3:$H$26)
 
Upvote 1
A simple solution:
Excel Formula:
=MAX(NETWORKDAYS(N2,O2,List!$H$3:$H$26)-1,0)
 
Upvote 1
Solution
Glad we could help & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,215,097
Messages
6,123,077
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top