I need to figure out how many people in my raw data is within a certain average handling time range. There is no issue finding out the average handling time for the specific criteria, but when I add the factor of asking "how many unique individuals are there?" I'm totally blocked..
I do not want to use helper tables, as I would need about 30 tables, and since they are dynamic both vertically and horizontally, 30 worksheets.
Example of raw data:
| Date | Person | Total handling time in seconds | Total interactions |
|---|---|---|---|
| 2021-07-11 | Person A | 22453 | 46 |
| 2021-07-11 | Person B | 22249 | 36 |
| 2021-07-12 | Person A | 17970 | 34 |
| 2021-07-12 | Person B | 5367 | 9 |
So now, if I take this:
=(SUMIFS(table1[Total handling time],table1[Date],"2021-07-11")/86400)
/
(SUMIFS(table1[Total interactions],table1[Date],">2021-07-11")
Then I get 0.00630966 which formats as 9 minutes and 5 seconds.
I now know that that is less than 10 minutes, so I can wrap an IF condition around it and get to know that this person is within the time frame. But how do I instead get the result to be "1" instead, as in "One person met this criteria"?
I would like to achieve this without helper columns etc. and if possible do it in one formula. I also cannot use a sumproduct formula, as the date criteria is a spilled range, and in my experience, a sumproduct formula will not spill using a reference like "A1#" for example.
EDIT: Removed image of table as table is now fixed. Also, for clarification I want to do something like this (but it is not possible, as the AND criteria here is a criteria, and not a range:
=COUNTIFS(
Person,"*",
Date,"2021-07-11",
AND(
((SUMIFS(Total handling time in seconds,Date,"2021-07-11")/86400)/SUMIFS(Total interactions,Date,$I$18))>0.00462962962962963,
((SUMIFS(Total handling time in seconds,Date,"2021-07-11")/86400)/SUMIFS(Total interactions,Date,$I$18))<0.00543981481481481
),TRUE
)