Feb 15 2018
11:45 PM
- last edited on
Jul 25 2018
11:05 AM
by
TechCommunityAP
Feb 15 2018
11:45 PM
- last edited on
Jul 25 2018
11:05 AM
by
TechCommunityAP
The problem I am trying to solve is... Over a single day i have two data columns, one is a staff start time and the other is staff end time.
What I want to do is ascertain how many staff are present at a specific 15 minute time segment of the day, starting at 7:00:00 up to 22:00:00.
So looking at the times an individual was present, were they there at 7.15, 7.30, 7.45 etc. I am looking to use this for trended attendance stats
I was trying the COUNTIF function, but i'm failing to get the right formula, any advice anyone
Thank you
Feb 16 2018 02:51 AM
Hi Peter,
For data structured like this
the formula could be
=SUMPRODUCT(($C$3:$C$6<=F3)*($D$3:$D$6>=(F3+1/24/4)))
Feb 16 2018 04:18 AM
Feb 16 2018 04:20 AM
Feb 16 2018 05:47 AM
No problem, I copied back into the Excel. So, for time interval in yellow we shall calculate people in green, correct?
Feb 16 2018 07:49 AM
Peter, perhaps I misunderstood something, but formula gives correct result. I applied it to your table
=SUMPRODUCT(($D$2:$D$15<=$G2)*($E$2:$E$15>=($G2+1/24/4)))
it gives
For me not clear why, for example for interval from 09:00 to 09:15, it Shall be 5 person in, I counted 6 (in orange). Please clarify.
Feb 16 2018 08:00 AM
Feb 16 2018 08:04 AM
Peter, please be sure you correctly changed addresses keeping logic of absolute and relative references. Another point is < instead of <=, etc. Have no idea what else could be.
Feb 16 2018 08:12 AM