Business days in time period by months

nenandi

New Member
Joined
Dec 17, 2020
Messages
36
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. Mobile
  3. Web
How do I recalculate how many days belong in a month if it has a start date and an end date in the column for each month, do I need to create auxiliary columns for EOMONTH so that I can only calculate them on a business day?
 

Attachments

  • BD.JPG
    BD.JPG
    35.1 KB · Views: 7

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, here's one option you can try.

Book3
ABCDEFGHIJKLMN
1StartEndJanFebMarAprMayJunJulAugSepOctNovDec
219/07/202105/08/20210000001040000
307/06/202125/06/20210000015000000
430/09/202108/10/2021000000001600
529/10/202101/12/20210000000001221
Sheet1
Cell Formulas
RangeFormula
C2:N5C2=MAX(NETWORKDAYS(MAX($A2,DATE(2021,MONTH(1&C$1),1)),MIN($B2,DATE(2021,MONTH(1&C$1)+1,0))),0)
 
Upvote 0
This will do it, custom format the dates in row 1 as mmm or otherwise desired to show month names instead of dates.
Book1
ABCDEFGHIJKLMN
101/01/202101/02/202101/03/202101/04/202101/05/202101/06/202101/07/202101/08/202101/09/202101/10/202101/11/202101/12/2021
219/07/202105/08/2021      104    
Sheet1
Cell Formulas
RangeFormula
C2:N2C2=IFERROR(--TEXT(NETWORKDAYS(MAX($A2,C$1),MIN($B2,EOMONTH(C$1,0))),"0;;"),"")
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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