Determine Working Days between two dates and if it's valid

treeleaf20

Board Regular
Joined
Mar 17, 2009
Messages
159
Office Version
  1. 365
Platform
  1. Windows
I have a column for a start date (E2) and a finish date (F2). I also have a date at the top of every column that is the week starting on Monday (O1).

I'm trying to write a formula to determine if the date in O1 is in between the start and finish dates and if it is, how many working days are between the two dates until the week that ends on the top date.

A working example is this.

Start Date: 12/18/2017 (E2)
Finish Date: 12/27/2017 (F2)

Column heading date (O1) is 12/18/2017, I would expect O2 to give me 5. Column heading date (12/25/2017) P1, I would expect P2 to have a value of 3 because the finish date is the 27th and there is only 3 working days between the 25th and the 27th.

Is this possible to do?

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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