excel formula networking days between dates

President

Board Regular
Joined
Aug 27, 2014
Messages
130
Hi,

i need help from you experts in the following formula.

i know how to calculate the working days between two dates with networkingdays.int

however the problem is that i have a specific dates between two months. i want to calculate the working days of James on the condition if it is within the calendar dates betwen column C start date and Column D end date.

i need revised formula in column F5 to F9 to tell me the networking days of James that for each month on the given data range

thanks,.


Excel 2010
ABCDEFGHIJK
1EmployeeMonthly PayStart DateEnd Dateholidays
2James25009/20/201411/11/2014371/1/2014
32/15/2014
4Calendar monthsMonthStartEnd# of Days in MonthNumber of Days
That employee was
Here this month excluding weekends and holidays
% of MonthPay for Month
5Oct9/20/201410/17/20142828100%2500.00
6Nov10/18/201411/14/2014282589%2232.14
7Jan12/20/20131/16/20142800%0.00
8Feb1/17/20142/13/20142800%0.00
9Mar3/21/20144/17/20142800%0.00
10Total4732.14
11

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F2=NETWORKDAYS.INTL(C2,D2,1,K2:K3)
E5=D5-C5+1
F5=MAX(0,MIN(D5,$D$2)-MAX(C5,$C$2)+1)
G5=F5/E5
H5=+G5*$B$2
E6=D6-C6+1
F6=MAX(0,MIN(D6,$D$2)-MAX(C6,$C$2)+1)
G6=F6/E6
H6=+G6*$B$2
E7=D7-C7+1
F7=MAX(0,MIN(D7,$D$2)-MAX(C7,$C$2)+1)
G7=F7/E7
H7=+G7*$B$2
E8=D8-C8+1
F8=MAX(0,MIN(D8,$D$2)-MAX(C8,$C$2)+1)
G8=F8/E8
H8=+G8*$B$2
E9=D9-C9+1
F9=MAX(0,MIN(D9,$D$2)-MAX(C9,$C$2)+1)
G9=F9/E9
H9=+G9*$B$2
H10=SUM(H5:H9)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
HI
=NETWORKDAYS(D8,EOMONTH(D8,0))
This will find the last day of the month, then the networkdays, will work out the work days
 
Upvote 0
HI
=NETWORKDAYS(D8,EOMONTH(D8,0))
This will find the last day of the month, then the networkdays, will work out the work days

i do not believe you understood my question.
the EOmonth will get the end of the month, but the problem is the customised months end of the month is not the same default calendar end of the month.
your formula does not work.
 
Upvote 0
ok how about this
=IF(NETWORKDAYS(IF(D8<=$D$3,$D$3,D8),IF(E8<=$E$3,E8,$E$3))<1,0,NETWORKDAYS(IF(D8<=$D$3,$D$3,D8),IF(E8<=$E$3,E8,$E$3)))
This will work out the network days , between the dates in start / end date, in the given example
 
Upvote 0
thanks Pup. it works.


ok how about this
=IF(NETWORKDAYS(IF(D8<=$D$3,$D$3,D8),IF(E8<=$E$3,E8,$E$3))<1,0,NETWORKDAYS(IF(D8<=$D$3,$D$3,D8),IF(E8<=$E$3,E8,$E$3)))
This will work out the network days , between the dates in start / end date, in the given example
 
Upvote 0
shorted version of it

=MAX(0,NETWORKDAYS.INTL(MAX(C6,$C$2),MIN(D6,$D$2),1,$L$2:$L$3))
or =MAX(0,SUM(INT((WEEKDAY(MAX($C6,$C$2)-{2,3,4,5,6})+MIN($D6,$D$2)-MAX($C6,$C$2))/7)))
or
=IF(OR($D$2<$C$2,$C$2>$D6),0,ABS(NETWORKDAYS(MIN($D$2,$D6),MAX($C$2,$C6),$L$2:$L$3)))
 
Upvote 0
Thank you very much jamilm


shorted version of it

=MAX(0,NETWORKDAYS.INTL(MAX(C6,$C$2),MIN(D6,$D$2),1,$L$2:$L$3))
or =MAX(0,SUM(INT((WEEKDAY(MAX($C6,$C$2)-{2,3,4,5,6})+MIN($D6,$D$2)-MAX($C6,$C$2))/7)))
or
=IF(OR($D$2<$C$2,$C$2>$D6),0,ABS(NETWORKDAYS(MIN($D$2,$D6),MAX($C$2,$C6),$L$2:$L$3)))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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