Forum Discussion
DW1
Jan 10, 2025Copper Contributor
Counting worked hours in a timeslot
Hi All, Looking to calculate how many hours a person has worked within set of parameters to determine how many FTE there are available within three hour timeslots. So if column K and L have the ...
PeterBartholomew1
Jan 13, 2025Silver Contributor
Strange, but it is so much easier working with day shifts. I can't help thinking I must be missing something simple!
=MAPλ(startDayShift, endDayShift,
LAMBDA(s, e,
LET(
slot, DROP(Slot_End,,-1),
end, SORT(HSTACK(e, slot), , , TRUE),
strt, SORT(HSTACK(s, slot), , , TRUE),
end - strt
)
)
)
Patrick2788
Jan 13, 2025Silver Contributor
I can't help thinking there's an elegant solution in there somewhere with FREQUENCY but the PM to AM shifts throws a wrench in that!