Consecutive Days Off Assistance

ZvK

New Member
Joined
Nov 24, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

For my company, employees are required to take 10 consecutive days off. I can't seem to get the formula to count consecutive days (including weekend & holidays working). For example, Employee 2 should be 7 days, counting 12/25, 12/26, and 12/27. Here's the formula I tried to use: {=SUMPRODUCT(--($A$2:$A$28119=D4),--($B$3:$B$28120*($A$3:$A$28120=D4)<>WORKDAY(N(IF({1},$B$2:$B$28119)),1)))}. Is it possible to also identify the start of the consecutive date and end with a formula? Thank you!!

NAMETIME OFF DATENAME# of Days ConsecutiveStart DateEnd Date
Employee 112/01/2020Employee 12
Employee 112/02/2020Employee 25
Employee 212/14/2020Employee 35
Employee 212/22/2020Employee 41
Employee 212/23/2020Employee 57
Employee 212/24/2020Employee 62
Employee 212/28/2020Employee 74
Employee 312/21/2020Employee 89
Employee 312/22/2020Employee 96
Employee 312/23/2020Employee 106
Employee 312/24/2020Employee 119
Employee 312/28/2020Employee 124
Employee 412/04/2020
Employee 512/02/2020
Employee 512/03/2020
Employee 512/09/2020
Employee 512/14/2020
Employee 512/18/2020
Employee 512/24/2020
Employee 512/31/2020
Employee 612/30/2020
Employee 612/31/2020
Employee 712/28/2020
Employee 712/29/2020
Employee 712/30/2020
Employee 712/31/2020
Employee 812/01/2020
Employee 812/02/2020
Employee 812/03/2020
Employee 812/04/2020
Employee 812/07/2020
Employee 812/08/2020
Employee 812/09/2020
Employee 812/10/2020
Employee 812/11/2020
Employee 912/07/2020
Employee 912/08/2020
Employee 912/09/2020
Employee 912/10/2020
Employee 912/11/2020
Employee 912/24/2020
Employee 1012/23/2020
Employee 1012/24/2020
Employee 1012/28/2020
Employee 1012/29/2020
Employee 1012/30/2020
Employee 1012/31/2020
Employee 1112/18/2020
Employee 1112/21/2020
Employee 1112/22/2020
Employee 1112/23/2020
Employee 1112/24/2020
Employee 1112/28/2020
Employee 1112/29/2020
Employee 1112/30/2020
Employee 1112/31/2020
Employee 1212/21/2020
Employee 1212/22/2020
Employee 1212/23/2020
Employee 1212/24/2020
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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