Problem with NETWORKDAY.INTL Function

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
147
I have used the formula below several times in my worksheet. I am using Excel 2016 so not facing any problem. But some other users are getting errors who are using Excel 2007/2010.
Code:
=IF($K$7="","",IF(NETWORKDAYS.INTL($K$7,$E$8,7,$T$35:$V$67)<1,"-",NETWORKDAYS.INTL($K$7,$E$8,7,$T$35:$V$67)))
When I delete the ".INTL" portion of the formula in Excel 2010, I get the result 1 day more probably because of the default holidays.

Is there any way around to be able to get the same result as NETWORKDAYS.INTL compatible for Excel versions as old as 2007? Weekly holidays are meant to be FRI and SAT for my case.

Thanks
 
Last edited:

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
6,908
Office Version
2019
Platform
Windows
Array confirmed with Ctrl Shift Enter

=IF($K$7="","",IF(NETWORKDAYS($K$7+1,$E$8+1,$T$35:$V$67+1)<1,"-",NETWORKDAYS($K$7+1,$E$8+1,$T$35:$V$67+1)))

If you have blanks in the holidays range then it will need a slight change.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
6,908
Office Version
2019
Platform
Windows
Can you modify the layout slightly?

I have just noticed that your holidays are spread over 2 columns, so the change will not work. I'm going to try a couple of other methods, but I think that it would need to be a single column to work.

edit:-

To clarify, it would need to be a single column with no intermediate blanks. i.e. dates at the top, blanks at the bottom.
 
Last edited:

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
147
Absolutely!

I can get them in a single column. You guessed right, Dates at the top and blanks at the bottom.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
6,908
Office Version
2019
Platform
Windows
Ignore that, I had overlooked the most simple fix

Array confirmed as before.

=IF($K$7="","",IF(NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,))<1,"-",NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,))))

Or a shorter version, to be used with a custom cell format of #0;-;-;@

=IF($K$7="","",NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,)))
 

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
147
Worked beautifully!

Thanks a lot!! :)
 

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
147
Ignore that, I had overlooked the most simple fix

Array confirmed as before.

=IF($K$7="","",IF(NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,))<1,"-",NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,))))

Or a shorter version, to be used with a custom cell format of #0;-;-;@

=IF($K$7="","",NETWORKDAYS($K$7+1,$E$8+1,IF($T$35:$V$67<>"",$T$35:$V$67+1,)))
Hi again,

Need a little more advice. I have one more formula. It is a WORKDAY function, not NETWORKDAYS. Formula is like:

=WORKDAY.INTL($E$8,$F$19/$B$23,7,$D$16:$D$48)

$E$8 is the start date. $F$19/$B$23 is number of days. Weekly holidays are FRI and SAT. $D$16:$D$48 is the list of public holidays other than weekends.

Since it is not compatible with Excel 2007, as you have guided before, I have tried to fix it like:

=WORKDAY($E$8+1,$F$19/$B$23+1,IF($D$16:$D$48<>"",$D$16:$D$48+1,))

Problem is, the result I am getting is 1/2 days off when I compare with the original (WORKDAY.INTL) formula. Where did I do the mistake?

Thanks!
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
6,908
Office Version
2019
Platform
Windows
Perhaps

=WORKDAY($E$8+1,$F$19/($B$23+1),IF($D$16:$D$48<>"",$D$16:$D$48+1,))

Or

=WORKDAY($E$8+1,($F$19+1)/($B$23+1),IF($D$16:$D$48<>"",$D$16:$D$48+1,))

Without knowing what is expected, or what F19 and B23 refer to, this is just a guess.
 

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
147
My bad! I did not explain well.

F19 refers to total no of tasks left to do. It is a number like 453.0
B23 refers to the existing rate of task/day. Say it is 3.18

Both of these cells are product of other calculations and they are dynamic.

I am trying to predict the completion date by that formula.
 

Forum statistics

Threads
1,077,855
Messages
5,336,780
Members
399,102
Latest member
chudson1

Some videos you may like

This Week's Hot Topics

Top