NETWORKDAYS function with holidays and vacation days list

Beneindias

Board Regular
Joined
Jun 21, 2022
Messages
97
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi guys,

Already tried search, but could not find an answer to my question.

Is there a way to have the function NETWORKDAYS to use two list, one of holidays and another one of vacation days?

I could not find an answer to this question, so, I think I will have to use only one list of "holidays + vacation days", but it would be much better to have those dates in two separated lists, for easy of use.

So, my question, is:
Can I use something to use two lists of dates as the last argument of the networkdays function?

Thanks in advance to all of you
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Ok, found the solution.

I used the new function VSTACK, to combine Holidays and Vacation Days as last argument to NETWORKDAYS function.

It worked realy well for what I needed.
 
Upvote 0
Solution
You could use something like
Excel Formula:
=NETWORKDAYS(A2,A3,VSTACK(H2:H10,J2:J10))
 
Upvote 1
You could use something like
Excel Formula:
=NETWORKDAYS(A2,A3,VSTACK(H2:H10,J2:J10))
@Fluff, thats exactly what I used.

Didn't knew that function before, and only found about it when I started looking for a way to combine arrays.

Thank you for your help
 
Upvote 0
Yup, noticed you had sorted it after I posted. Glad you found your own solution. :)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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