OzGrid

How to count weekdays in a month excluding holidays

< Back to Search results

 Category: [Excel]  Demo Available 

How to count weekdays in a month excluding holidays

 

Requirement:  A formula that will generate a count of the workdays (Monday - Friday) without holidays for any given month of any year.

 

Solution:

 
=NETWORKDAYS(AD2,AE2,Holidays)



This generates my count of working days for the month, "holidays" references a list user created of Holidays scheduled closed in the office.

Once user generated a count of days in each month user was able to vlookup this for my number to divide by.

Full formula below:

 
=SUMIFS('Sheet1'!$H:$H,'Sheet1'!$C:$C,Sheet2!$A2,'Sheet1'!$U:$U,Sheet2!$J$1)/VLOOKUP($V$1,$AF:$AG,2,FALSE)

 


Vlookup references the results from the first formula.

 

Obtained from the OzGrid Help Forum.

Solution provided by Johnnyv015.

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

How to COUNTIF using input cell as range depth
How to use COUNT
How to use SUMPRODUCT and COUNT question for unique associations
How to use COUNTIF to see if a customer is a repeat customer
How to work with COUNTIF with multiple criteria
How to use Index/Countif based on multiple factors including range
How to count the frequency of a specific number on a specific day
How to count non blanks 5 years from the last non blank date

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.


Gallery



stars (0 Reviews)