Counting workdays in a range

paulopt21

New Member
Joined
Sep 2, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a list that has employee names on column A, days of the month on column B and then either their lunch time or "dayoff" on column C.
I then have a list with employee names and date ranges relating to sick leaves. I need to be able to count on the first list how many workdays were missed due to the sick leaves on list 2.
I've attached an example.
Any help would be greatly appreciated, I'm not quite sure how to even start here.
 

Attachments

  • example.JPG
    example.JPG
    214.1 KB · Views: 16

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I would calculate in column J and for each row the number of missed days using the formula =NETWORKDAYS(G3,H3)
Then I would create a PivotTable report that sum up for each Name the missed days

If you don't like the PivotTable, after calculating col J as above:
-Create in L3 the list of names using =UNIQUE(G3:G20)
-then in M3 calculate the missed days using =SUMIF($G$3:$G$20,L3#,$J$3:$J$20)
 
Upvote 0

Forum statistics

Threads
1,215,400
Messages
6,124,702
Members
449,180
Latest member
craigus51286

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