need to compute networkdays but include individual's vacations, as well as federal holiday

icestationzbra

New Member
Joined
Jun 17, 2012
Messages
6
hi,

for computing availability of a team member during an Agile Sprint, i have this situation:

sprint1 starts 15-JUN-23, ends 28-JUN-23. 19th June is US Federal Holiday.

sprint2 starts 29-JUN-23, ends 12-JUL-23. 4th July is US Federal Holiday.

1686013917280.png



J Doe is on vacation between 25-JUN-23 and 4-JUL-23 (inclusive).
J Doe's availability during the sprint is 6 days for either sprint, i would like the formula to tell me.

as you can imagine, there are several team members, with different vacation schedules, and there are many more holidays during subsequent sprints (e.g., 4th of July for the next sprint). so a formula that would be dynamic enough to handle all that is desired.



thanks in advance.



posted need to compute networkdays but include individual's vacations, as well as federal holiday also
 

Attachments

  • Screenshot 2023-06-05 211133.jpg
    Screenshot 2023-06-05 211133.jpg
    32.9 KB · Views: 19

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
what version of excel are you using?
 
Upvote 0
try this:
Book1
ABCDEFGHIJKLMN
1SpringStartEndNetworkdaysHolidaysVacationFromToSprint1 AvailabilitySprint2 Availability
2Sprint12023-06-152023-06-2862023-06-192023-06-252023-07-04
3Sprint22023-06-292023-07-1262023-07-042023-06-252023-07-04
Sheet1
Cell Formulas
RangeFormula
D2:D3D2=NETWORKDAYS.INTL(B2,C2,1,H2:H3)-IF(OR(C2>K2,B2>L2),NETWORKDAYS.INTL(MAX(B2,K2),MIN(C2,L2),1,$H$2:$H$3))
 
Upvote 1
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
try this:
Book1
ABCDEFGHIJKLMN
1SpringStartEndNetworkdaysHolidaysVacationFromToSprint1 AvailabilitySprint2 Availability
2Sprint12023-06-152023-06-2862023-06-192023-06-252023-07-04
3Sprint22023-06-292023-07-1262023-07-042023-06-252023-07-04
Sheet1
Cell Formulas
RangeFormula
D2:D3D2=NETWORKDAYS.INTL(B2,C2,1,H2:H3)-IF(OR(C2>K2,B2>L2),NETWORKDAYS.INTL(MAX(B2,K2),MIN(C2,L2),1,$H$2:$H$3))
thank you, i will give this a shot and let you know.
 
Upvote 0
try this:
Book1
ABCDEFGHIJKLMN
1SpringStartEndNetworkdaysHolidaysVacationFromToSprint1 AvailabilitySprint2 Availability
2Sprint12023-06-152023-06-2862023-06-192023-06-252023-07-04
3Sprint22023-06-292023-07-1262023-07-042023-06-252023-07-04
Sheet1
Cell Formulas
RangeFormula
D2:D3D2=NETWORKDAYS.INTL(B2,C2,1,H2:H3)-IF(OR(C2>K2,B2>L2),NETWORKDAYS.INTL(MAX(B2,K2),MIN(C2,L2),1,$H$2:$H$3))
thank you sir, this formula is working out for me. i am attempting to mould it to the work spreadsheet's layout now.

my sincere thanks to you.
 
Upvote 0
thank you sir, this formula is working out for me. i am attempting to mould it to the work spreadsheet's layout now.

my sincere thanks to you.
You are welcome. I am pleased you found an answer.
But, I think the one I gave you is wrong. I am revisiting it.
 
Upvote 0
Here is an excel mini workbook with a more comprehensive formula:

Mr excel questions 40.xlsm
ABCDEFGHIJKLMN
1SpringStartEndNetworkdaysHolidaysVacationFromToSprint1 AvailabilitySprint2 Availability
2Sprint12023-06-152023-06-286FALSETRUETRUE2023-06-192023-06-252023-07-04
3Sprint22023-06-292023-07-126TRUEFALSETRUE2023-07-042023-06-252023-07-04
42019-01-012023-08-011191TRUEFALSETRUE2019-01-012019-01-07
52023-01-012023-08-01152FALSEFALSEFALSE2019-01-012019-01-07
icestationszbra
Cell Formulas
RangeFormula
D2:D5D2=NETWORKDAYS.INTL(B2,C2,1,H2:H3)-IF(OR(AND(B2>=K2,B2<=L2),AND(C2>=K2,C2<=L2)),NETWORKDAYS.INTL(MAX(B2,K2),MIN(C2,L2),1,$H$2:$H$3),0)
E2:E5E2=AND(B2>=K2,B2<=L2)
F2:F5F2=AND(C2>=K2,C2<=L2)
G2:G5G2=OR(AND(B2>=K2,B2<=L2),AND(C2>=K2,C2<=L2))
 
Upvote 1
Solution

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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