Holiday Tracker

SamC799

New Member
Joined
Jun 24, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I am trying to prepare a holiday tracker for my team. I have a table with Statuary holidays dates, and run a formula for network days. However our employer has decided to reduce Fridays hours so Friday now becomes a 1/2 day holiday. Is there anyway I can alter my formula to make a Friday be half a day.

This is the formula I am using =NETWORKDAYS(B5,C5,$G$9:$G$15)
B5 = Start Date of Holiday
C5= End Date of Holiday
G9-G15 is the table of dates for statuary holidays

TIA
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi SamC799,

So we want to take your elapsed days excluding weekends (assuming they are Saturday and Sunday) but treat Fridays as half a day.

If I use NETWORKDAYS.INTL I can use a bit pattern to specify which are non-working days starting with Monday so "0000111" specifies Friday, Saturday and Sunday as non-working days. If I then subtract your calculation from that new number I'll get a negative number of how many Fridays are between those dates (which are not also Holiday dates). So if I multiply that by 0.5 for the half day Friday then I can add that to your calculation to reduce the elapsed by the half days.

SamC799.xlsx
ABCDEFG
1StartEndOld ResultNew Result
205-Feb-2108-Feb-2121.5
302-Feb-2105-Feb-2143.5
402-Feb-2104-Feb-2133
502-Feb-2108-Feb-2154.5
605-Feb-2112-Feb-2165
701-Jan-2131-Dec-21259233
801-Jul-2107-Jul-2143.5Holidays
901-Jan-2103-Jan-210001-Jan-21
1001-Jan-2104-Jan-211105-Jul-21
1101-Jan-2107-Jan-2144
1201-Jan-2108-Jan-2154.5
Sheet1
Cell Formulas
RangeFormula
D2:D12D2=NETWORKDAYS(B2,C2,$G$9:$G$15)
E2:E12E2=NETWORKDAYS(B2,C2,$G$9:$G$15)+((NETWORKDAYS.INTL(B2,C2,"0000111",$G$9:$G$15)-NETWORKDAYS(B2,C2,$G$9:$G$15))*0.5)
 
Upvote 0
Thank you so much. That has worked perfectly
Hi SamC799,

So we want to take your elapsed days excluding weekends (assuming they are Saturday and Sunday) but treat Fridays as half a day.

If I use NETWORKDAYS.INTL I can use a bit pattern to specify which are non-working days starting with Monday so "0000111" specifies Friday, Saturday and Sunday as non-working days. If I then subtract your calculation from that new number I'll get a negative number of how many Fridays are between those dates (which are not also Holiday dates). So if I multiply that by 0.5 for the half day Friday then I can add that to your calculation to reduce the elapsed by the half days.

SamC799.xlsx
ABCDEFG
1StartEndOld ResultNew Result
205-Feb-2108-Feb-2121.5
302-Feb-2105-Feb-2143.5
402-Feb-2104-Feb-2133
502-Feb-2108-Feb-2154.5
605-Feb-2112-Feb-2165
701-Jan-2131-Dec-21259233
801-Jul-2107-Jul-2143.5Holidays
901-Jan-2103-Jan-210001-Jan-21
1001-Jan-2104-Jan-211105-Jul-21
1101-Jan-2107-Jan-2144
1201-Jan-2108-Jan-2154.5
Sheet1
Cell Formulas
RangeFormula
D2:D12D2=NETWORKDAYS(B2,C2,$G$9:$G$15)
E2:E12E2=NETWORKDAYS(B2,C2,$G$9:$G$15)+((NETWORKDAYS.INTL(B2,C2,"0000111",$G$9:$G$15)-NETWORKDAYS(B2,C2,$G$9:$G$15))*0.5)
Thank you so much. That has worked perfectly
 
Upvote 0
Here is how Toadstool's formula can be shortened:
Excel Formula:
=SUM(NETWORKDAYS.INTL(B2,C2,{"0000011","0000111"},$G$9:$G$15))/2
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,649
Members
448,975
Latest member
sweeberry

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