Seeking Formula help to count consecutive weekday absences

dms11463

New Member
Joined
May 1, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
test worksheet.xlsx
ABCDEFGHIJK
1Employee IDWorkerTypeTime Off DateApproved Hoursneed to count consecutive WEEKDAYS absent at each change in Employee ID - using the absence dates in Column H and using the Saturday/Sunday weekendsExpected ResponseNote - actual worksheet will have over 50,000 rows
2100339AaliaVacation4/20/202381
3100339AaliaDay of Service4/21/202382
4100339AaliaVacation4/24/202383
5100339AaliaSick4/27/202321
6100339AaliaVacation4/28/202382
710136AbbiSick1/27/202381
810136AbbiSick2/17/20236.071
910136AbbiSick2/22/202331
1010136AbbiSick2/23/202332
1110136AbbiSick3/1/20231.921
1210136AbbiSick3/10/202381
1310136AbbiVacation3/15/202381
1410136AbbiVacation3/24/202381
1510136AbbiVacation3/27/202382
1610136AbbiSick3/29/202321
1710136AbbiSick4/5/202361
1810136AbbiSick4/21/20231.51
1911767AbbyVacation1/6/20233.481
2011767AbbyVacation3/13/20237.731
2111767AbbyVacation3/13/20230.021
2213215AbbySick1/4/20232.51
2313215AbbySick1/5/202382
2413215AbbySick1/6/20237.253
2513215AbbySick1/25/202371
2613215AbbyVacation2/3/202341
2713215AbbySick2/10/20237.471
2813215AbbySick3/1/20231.71
2913215AbbySick3/13/202381
3013215AbbySick3/16/202311
3113215AbbySick3/17/20230.892
3213215AbbySick3/27/20237.191
3313215AbbySick4/3/202381
3413215AbbySick4/18/202311
3513215AbbySick4/19/202382
3613215AbbyVacation4/20/202383
3713215AbbyVacation4/21/202384
3813215AbbySick4/28/202311
3914064AbigailVacation1/3/202381
4014064AbigailVacation1/31/202381
4114064AbigailVacation2/1/202382
4214064AbigailVacation2/2/20234.53
4314064AbigailVacation2/23/202341
4414064AbigailVacation2/24/202382
4514064AbigailVacation3/13/202381
4614064AbigailVacation3/14/202382
4714064AbigailVacation3/15/202383
4814064AbigailVacation3/16/202384
4914064AbigailVacation3/17/202385
5014187AddieDay of Service2/17/202381
5114187AddieVacation3/27/202381
5214187AddieVacation3/28/202382
5314187AddieVacation3/29/202383
5414187AddieVacation3/30/202384
5514187AddieVacation3/31/202385
5613457AdrianVacation2/17/202381
5713457AdrianSick2/22/202351
5813457AdrianVacation4/3/202381
5913457AdrianVacation4/4/202382
6013457AdrianVacation4/5/202383
6113457AdrianVacation4/6/202384
6213457AdrianVacation4/7/202385
6312908AdrianaSick1/16/20236.11
6412908AdrianaSick1/17/202382
6512908AdrianaSick2/1/202371
6612908AdrianaSick4/7/202371
67100356AdrianaVacation2/17/202381
68100356AdrianaVacation2/21/20232.266671
69100356AdrianaVacation3/22/202371
70100356AdrianaVacation4/18/202381
71100356AdrianaSick4/21/202371
7212290AggiVacation1/3/202381
7312290AggiSick2/2/202381
7412290AggiDay of Service2/3/202382
7512290AggiSick2/28/20230.61
7612290AggiVacation3/13/202381
7712290AggiVacation3/14/202382
7812290AggiVacation3/15/202383
7912290AggiVacation3/16/202384
8012290AggiVacation3/17/202385
8110137AileenVacation1/3/202381
8210137AileenVacation1/4/202382
8310137AileenVacation1/5/202383
8410137AileenVacation1/6/202384
8510137AileenVacation1/9/202385
8610137AileenSick1/12/20231.7166661
8710137AileenDay of Service1/30/202381
8810137AileenVacation2/2/202381
8910137AileenVacation2/3/20235.6833332
9010137AileenSick2/14/20231.4999991
9110137AileenVacation2/15/20236.3166672
9210137AileenSick2/24/20233.1666661
9310137AileenSick2/28/20232.9333341
9410137AileenVacation4/7/202381
9510137AileenSick4/11/20233.5499991
96100362AimeeVacation2/13/202381
97100362AimeeVacation2/14/202382
98100362AimeeSick2/21/202311
99100362AimeeSick3/21/20231.31
100100362AimeeVacation4/4/20231.551
101100362AimeeSick4/17/202381
10212970AJSick1/25/202311
10312970AJDay of Service1/26/202382
10412970AJSick1/31/202321
10512970AJSick2/7/202311
10612970AJVacation3/8/202381
10712970AJVacation3/9/202382
10812970AJSick3/22/202311
10912970AJSick3/31/202321
11012970AJSick4/4/202311
11112970AJVacation4/5/202382
11212970AJVacation4/6/202383
Sheet1
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hello - I need assistance with a formula to count the consecutive number of weekdays an employee is absent, even when it crosses calendar weeks. Example, if an employee is out Thursday/Friday of one week, then Monday/Tuesday of the next, the count would need to be 4.

My full file will have over 50,000 lines of data, so manually counting this is too cumbersome.
 
Upvote 0
1683036778447.png

The subtotal will have this format.
 
Upvote 0
View attachment 90773
The subtotal will have this format.
This does not solve the need, or the question asked. I need by employee ID in Column A, the count of Consecutive Weekdays Absent for that specific worker using the dates in Column D. I have my sample data loaded, and the expected totals. SO I need a complex formula that will determine if the dates in Column D are consecutive WEEKDAYS (including dates that are from separate work weeks)
 
Upvote 0
So it have to create another table and sum with sumif (in portuguese, somase)View attachment 90774
Arthurthemaster - this is still not the formula I am seeking and too many steps. Please allow others to respond to this issue. Again - I need to determine if the DATES are Consecutive Weekdays even if they cross calendar weeks.
 
Upvote 0
Its realy complex, have a lot of details, and Excel can´t do that. Maybe with programming in VBA, i am a begginer in that and I can´t help u, but I tried
 
Upvote 0
1683038322155.png


I tried this type of formula - but it appears I either did something incorrectly, or the formula is missing a component. This is the type of formula I am seeking help with - this would have the employee ID in 2 columns - both in Column A and in Column D, and the DATES of the absence in Column B in this formula example.
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,914
Members
449,132
Latest member
Rosie14

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