I've spent way too long thinking about this so would really appreciate some bigger brains on this.
I've been given a spreadsheet with varying shift patterns. I need to find out how many people are on any given shift. Unfortunately, I can't change the fact the times have been put in rows. Start time is in row 4 for Person A, finish time in row 5. Person B is start in row 8 and finish row 9, etc.
This is where I've got to:
{=SUMPRODUCT((MOD(ROW(B4:B200)-ROW(B4),4)=0)+0,ISNUMBER(SEARCH(D1,B4:B200))+0)}
Column A is the person's name. Column B is the times. Column D is a list of times to match; so for example D1 would be 06:00.
The above works correctly in looking at every 4th row for the time D1(06:00) and returning the correct number of instances between B4:B200.
What I need is to replace "D1" with, ideally, greater than and less than so I can be more precise. Or a way to count every possible combination looking at start times (every 4th row) and finish times (every 5th row).
TIA
Bookmarks