Forum Discussion
Swe_Mack
Feb 11, 2024Copper Contributor
How to count number of employees days on work between 2 dates (countif etc)
Hi, I'm trying to figure out how to make excel check 2 dates on each row and see if if that person is active on work.
For example.
Employee 1 works 16 feb to 3 march
Employee 2 works on 17 feb to 4 march
I wanna count each day and show how many work on each day on shift.
In this simple example on 16th I have 1 employee working, and on 17th I have 2 etc.
Any tips on moving on? I have been playing around with countif but no success yet 🙂
I basically wanna fil out the Persons on shift for each day from the "calendar" above that's 2 dates in each column.
Let's say the start dates are in B3:B10 and the finish dates in C3:C10.
The lit of dates below starts in A15.
In B15:
=COUNTIFS($B$3:$B$10, "<="&A15, $C$3:$C$10, ">=&A15)
Fill down.
- Swe_MackCopper ContributorThanks for helping out! I made a simple excel and put the boxes in. But I can't get it to work..
https://1drv.ms/x/s!AgVMgapiFJvPgZAwNWKDix56QnnYSw?e=sDzfak
Ideas?I forgot one quote, but the formula has to be different since the start and finish values have a time component.
I have updated your workbook.