Count Specific day of the week between two dates

andrewvanmarle

New Member
Joined
Aug 11, 2015
Messages
40
Im currently using this lovely formula to count the week days between the dates listed in the two cells:

Excel Formula:
= -NETTO.WERKDAGEN(A6;B6)*F6
Werkdagen is the dutch version of Weekdays


Now I'd like to make something like this for someone else but count different days of the week (since their weekend is sunday monday)/
I though of a list with the days to be counted and then refer to that in a formula, but I honestly dont know where to start.

Would anyone like to help?

Thank you!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Have a look at Networkdays.Intl, that allows you to specify weekends.
Excel Formula:
=NETWERKDAGEN.INTL(A2;B2;2)
 
Upvote 0
Thanks fluff!

It works! well, where I fill in dates, but where I dont I get 1 as a result (not 0)

something i should add?

And I had a look at the microsoft support page. it states I make a list of other dates (holidays) that it shouldnt count either, but it doesnt say how of course....


so close
 
Upvote 0
To specify holidays, just put them in a range somewhere (for instance H2:H10) & use
Excel Formula:
=IF(OR(A2="",B2=""),"",NETWORKDAYS.INTL(A2,B2,2,$H$2:$H$10))
 
Upvote 0
Solution
Excel Formula:
 =ALS(OF(A5="",B5=""),"",NETWERKDAGEN.INTL(A5,B5,2,$I$5:$I$12))


The range of holidays is in I5 to I12

I get an error message when pasting this? It says it's not a formula.... really wierd....

(i wish excell hadnt translated all it's formulas)
 
Upvote 0
You will need to use semi-colons, not commas.

If you ever need help translating a formula have a look here
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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