Help need to calculate number of working days(Saturday - Thursday) between two dates month wise while considering holidays list

Saiket007

New Member
Joined
Apr 9, 2022
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
I have data as below:
Start DateEnd DateJanuary-10February-10March-10April-10May-10June-10July-10August-10September-10October-10November-10December-10Holidays
8/1/202210/1/2022
30​
30​
30​
Tuesday, March 1, 2022​
5/3/20227/1/2022
28​
30​
30​
Sunday, February 6, 2022​
Wednesday, March 9, 2022​
Tuesday, May 3, 2022​
Sunday, July 3, 2022​

I need results as below (example showing number of working days in each month based on start and end date) (please also consider working days is Saturday to Thursday)
1649480999577.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
The dates and expected results in your data don't appear to match (2010 dates in row 1? number of days entered does not match the working days per month based on the start and end dates as described).

Hopefully this is what you need? Note that all of the dates used must be in a valid format for this, or any similar formula to work. Although I can not say this with 100% certainty, I am confident that the holiday dates shown are not entered in a valid format.

Book1
ABCDEFGHIJKLMNO
1Start DateEnd DateJanuary-22February-22March-22April-22May-22June-22July-22August-22September-22October-22November-22December-22Holidays
208/01/202210/01/2022       27251  03/01/2022
305/03/202207/01/2022    24260     02/06/2022
403/09/2022
505/03/2022
607/03/2022
Sheet1
Cell Formulas
RangeFormula
C2:N3C2=IF(AND(C$1<=$B2,EOMONTH(C$1,0)>=$A2),NETWORKDAYS.INTL(MEDIAN($A2,C$1,EOMONTH(C$1,0)),MEDIAN($B2,C$1,EOMONTH(C$1,0)),16,$O$2:$O$6),"")
 
Upvote 0
Hello Jason, First of all thanks for your support on solving the issue.

But further I need see the month wise days split based on my start date and end date.

I need below type result when i will input start date and end date

Production Start DateProduction End DateJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
22-Dec-21​
6-Mar-22​
931286
22-Dec-21​
8-Aug-22​
9312831303130318
 
Upvote 0
But further I need see the month wise days split based on my start date and end date.
That is what I've done. As I already said, your examples don't match what you have asked for. If the answer provided is not what you want then it is your question that is wrong, not the answer.

You're asking for the number of working days in the specified date range but the expected results that you have shown include all days, not just the working days specified.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
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