Monthly workdays in a given month

jazzista

Board Regular
Joined
Sep 15, 2014
Messages
86
Hello: I am trying to create a weekday number by month excluding weekends and holidays. I created a table with a helper column with weekdays, weekends and holidays. Please take a look at column H of the attached file so you can see the logic: Example 1/1/2018 = Holiday 1/2/2018 WD 1 Jan 2018 1/3/2018 WD 2 Jan 2018 and so on. I started to hardcode each workday and I wonder if this can be done automatically. Thanks in advance



https://www.dropbox.com/s/vn2bjuhjpkuwzq4/workday.xlsx?dl=0
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I can't tell from what you posted what you're trying to achieve.
 
Upvote 0
I think its something like:

=IF(F2="Holiday","Holiday","WD "&NETWORKDAYS(DATE(YEAR(A2),MONTH(A2),1),A2,$N$19:$N$28)&TEXT(A2," mmm yyyy"))
 
Upvote 0
Steve the fish. Thanks for the formula! It worked. Thanks a million! Very elegant solution. Straight to the point. Just a quick question: Is there a way to turn off the weekends? Right now if you look at Friday ( 1/5/2018) ,Saturday ( 1/6/2018) and Sunday ( 1/7/2018) picks ups the same workday ( Wd4) for all 3 days. I guess it is technically the weekends are the same workdays as Fridays. Thanks again!
 
Upvote 0
Sure. In much the same way as we did for holiday use another if for weekend and the dash.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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