How to count working days as a processing time

sc77

New Member
Joined
Aug 17, 2011
Messages
7
I am trying to calculate the number of working days between two dates. However, I only want the calculation to perform if there is an entry in date one otherwise the cell should remain blank.

Example; number of working days between G6 and H6. Calculation only performed if G6 has a valid date entry (is populated).

In addition to this, how could I then exclude public holidays from the calculation as I understand there is a holidays table that has to be written but I just get an error response.

Thanks!
 

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.
Try like this where K1:K20 contains a list of holiday dates

=IF(G6="","",NETWORKDAYS(G6,H6,K1:K20))
 
Upvote 0
Thanks VoG; the formula works but I have a question on the calculation..

I assume Excel considers saturday and sunday as non-working days but what about another calendar such as middle east where friday and saturday are holidays?

Thanks!
 
Upvote 0
If you have Excel 2010 you can use NETWORKDAYS.INTL function instead of NETWORKDAYS - that allows you to specify the weekend days

In earlier versions of Excel you can adjust NETWORKDAYS to give you different weekend days as long as the weekend is still 2 consecutive days, e.g. for Fri/Sat weekend change to

=IF(G6="","",NETWORKDAYS(G6+1,H6+1,INDEX(K1:K20+1,0)))

If you want a Thu/Fri weekend then the +1s become +2s etc.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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