Formula that will deduct 8 days in the total days for each month that occurs between 2 dates

tonilrt

New Member
Joined
Sep 22, 2020
Messages
7
Office Version
  1. 2010
Platform
  1. Windows
I need formula that will deduct 8 days in the total days for each month that occurs between the start date and end date

Start Date​
End Date​
Total Days​
22/01/2020​
15/10/2020​
267​
 
As the OP just wants to exclude weekends, you can just use networkdays, or networkdays.intl as I did.
+Fluff New.xlsm
EFGH
1StartEndDays
222/01/202015/10/2020192191
320/01/202011/10/2020190189
Main
Cell Formulas
RangeFormula
G2:G3G2=NETWORKDAYS.INTL(E2,F2,1)
H2:H3H2=(F2-E2)-(DAYS(F2,E2)+1-NETWORKDAYS(E2,F2))
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Wh
As the OP just wants to exclude weekends, you can just use networkdays, or networkdays.intl as I did.
+Fluff New.xlsm
EFGH
1StartEndDays
222/01/202015/10/2020192191
320/01/202011/10/2020190189
Main
Cell Formulas
RangeFormula
G2:G3G2=NETWORKDAYS.INTL(E2,F2,1)
H2:H3H2=(F2-E2)-(DAYS(F2,E2)+1-NETWORKDAYS(E2,F2))
What’s the difference
As the OP just wants to exclude weekends, you can just use networkdays, or networkdays.intl as I did.
+Fluff New.xlsm
EFGH
1StartEndDays
222/01/202015/10/2020192191
320/01/202011/10/2020190189
Main
Cell Formulas
RangeFormula
G2:G3G2=NETWORKDAYS.INTL(E2,F2,1)
H2:H3H2=(F2-E2)-(DAYS(F2,E2)+1-NETWORKDAYS(E2,F2))
Hi. For the second formula, How come it’s showing up as “#NAME?”?
 
Upvote 0
When you say the second formula do you mean the one in H2?
 
Upvote 0

Forum statistics

Threads
1,215,724
Messages
6,126,493
Members
449,316
Latest member
sravya

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