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>
 

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,471
Is this what you need?

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

Forum statistics

Threads
1,082,295
Messages
5,364,359
Members
400,792
Latest member
Dxmiian

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top