dates between range including start and finish

Afro_Cookie

Board Regular
Joined
Mar 17, 2020
Messages
93
Office Version
  1. 365
Platform
  1. Windows
I've tried using =NETWORKDAYS and it does work, but it excludes the start and finish dates. Is there a method that will count weekdays in a range while including and the start and end in that range?

example:
Start date: July 8th, 2020
End date: July 15th, 2020
NETWORKDAYS: 4
Desired count: 6
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
83,084
Office Version
  1. 365
Platform
  1. Windows
Networkdays returns 6 for me
+Fluff New.xlsm
A
1
208/07/2020
315/07/2020
46
Main
Cell Formulas
RangeFormula
A4A4=NETWORKDAYS(A2,A3)


Have you included anything in the holidays argument?
 
Upvote 0

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
18,067
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
If A1 holds the date 7/8/2020 and A2 the date 7/15/2020, then for me =NETWORDAYS(A1,A2) returns 6.
 
Upvote 0

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
5,737
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
How are you using Networkdays? It should give the correct results.
Please show your formula.

T202007a.xlsm
CDE
1StartEndWorkdays
2Wed 08-Jul-20Wed 15-Jul-206
3
2b
Cell Formulas
RangeFormula
E2E2=NETWORKDAYS(C2,D2)
 
Upvote 0

Afro_Cookie

Board Regular
Joined
Mar 17, 2020
Messages
93
Office Version
  1. 365
Platform
  1. Windows
I fat eyed this and was looking at the wrong column/formula.

NETWORKDAYS works fine, it was the datedif() that was giving me off numbers, I've fixed that one by simply subtracting the dates and adding 1.

Thanks everyone for the support and responses!

How are you using Networkdays? It should give the correct results.
Please show your formula.

T202007a.xlsm
CDE
1StartEndWorkdays
2Wed 08-Jul-20Wed 15-Jul-206
3
2b
Cell Formulas
RangeFormula
E2E2=NETWORKDAYS(C2,D2)
If A1 holds the date 7/8/2020 and A2 the date 7/15/2020, then for me =NETWORDAYS(A1,A2) returns 6.

Networkdays returns 6 for me
+Fluff New.xlsm
A
1
208/07/2020
315/07/2020
46
Main
Cell Formulas
RangeFormula
A4A4=NETWORKDAYS(A2,A3)


Have you included anything in the holidays argument?
 
Upvote 0

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
83,084
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,190,913
Messages
5,983,532
Members
439,848
Latest member
timmyo

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
Top