NETWORKDAYS formula

Silverscreen

New Member
Joined
May 9, 2014
Messages
22
I have been trying to get NETWORKDAYS formula to work but for some reason it just won't do it. I have resorted to using the below formula but it just doesn't seem to want to take into account the holidays.

so the formula is: IF(WEEKDAY(A3,2)>5,"",NETWORKDAYS(A$2,A3,$R$3:$R$10))

A3 is the actual date, A2 is the first date, R3 to R10 are the holidays. you can see from the results below (06 May is supposed to be a bank holiday, included in R3:R10) but it is still bringing back a result.

DATEDAYWD
01-MayWednesday1
02-MayThursday2
03-MayFriday3
04-MaySaturday
05-MaySunday
06-MayMonday3
<colgroup><col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;" span="2"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <tbody> </tbody>

When I use just NETWORKDAYS(A$2,A2), it brings back numbers for weekends:

DATEDAYWD
01-MayWednesday1
02-MayThursday2
03-MayFriday3
04-MaySaturday3
05-MaySunday3
06-MayMonday3
<colgroup><col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;" span="2"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <tbody> </tbody>
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
What do you want the results to be, and why ?
If 6th May IS a holiday, then the results look OK to me.
Am I missing something ?
 

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
Is this what you need?

=IF(A3=WORKDAY(A3-1,1,$R$3:$R$10),NETWORKDAYS(A$2,A3,$R$3:$R$10),"")
 

Watch MrExcel Video

Forum statistics

Threads
1,122,230
Messages
5,594,952
Members
413,954
Latest member
mrsandy

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
Top