work days split between month/ week

RSnap3232

New Member
Joined
Nov 20, 2020
Messages
43
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hello All,

trying to calculate how long something is on hire for which is then split between month (Ideally looking for weeks but happy to do month if it can't be done) without including weekends. I have the below where it calculates between a start date and end date (If no end date it uses TODAY() as a running cost) but when I try to get the split it still includes the weekends and I have no idea how to change it to network days.

1621594747150.png
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about
+Fluff 1.xlsm
ABCDEFGHIJKL
1
2
3
4
501/01/202101/02/202101/03/202101/04/202101/05/202101/06/202101/07/2021
6
701/05/202115    15  
801/02/202112/05/202173 2023228  
Main
Cell Formulas
RangeFormula
F7:L8F7=IF(OR($A7>EOMONTH(F$5,0),IF($B7="",TODAY(),$B7)<F$5),"",NETWORKDAYS(MAX($A7,F$5),MIN(IF($B7="",TODAY(),$B7),EOMONTH(F$5,0))))
C7:C8C7=NETWORKDAYS(A7,IF(B7="",TODAY(),B7))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

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