legend2009
New Member
- Joined
- Aug 9, 2013
- Messages
- 2
Hello,
I need to count how many unique "operator codes" are active within certain intervals throughout the day. I do not want to use a pivot table. I've failed trying to adapt similar formulas for date ranges. Any ideas? Sample data is below. For example, for time range 7:00 to 8:00 AM, there are 5 rows but only 3 unique "operator codes".
[TABLE="width: 306"]
<tbody>[TR]
[TD]Arrival Time[/TD]
[TD]Operator[/TD]
[/TR]
[TR]
[TD]2:30 PM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]9:47 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]6:45 AM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:34 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]7:47 AM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:50 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]7:32 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]2:27 PM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]2:32 PM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:45 AM[/TD]
[TD]CCC[/TD]
[/TR]
[TR]
[TD]8:45 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]2:37 PM[/TD]
[TD]AAA[/TD]
[/TR]
</tbody>[/TABLE]
I need to count how many unique "operator codes" are active within certain intervals throughout the day. I do not want to use a pivot table. I've failed trying to adapt similar formulas for date ranges. Any ideas? Sample data is below. For example, for time range 7:00 to 8:00 AM, there are 5 rows but only 3 unique "operator codes".
[TABLE="width: 306"]
<tbody>[TR]
[TD]Arrival Time[/TD]
[TD]Operator[/TD]
[/TR]
[TR]
[TD]2:30 PM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]9:47 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]6:45 AM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:34 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]7:47 AM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:50 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]7:32 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]2:27 PM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]2:32 PM[/TD]
[TD]AAA[/TD]
[/TR]
[TR]
[TD]7:45 AM[/TD]
[TD]CCC[/TD]
[/TR]
[TR]
[TD]8:45 AM[/TD]
[TD]BBB[/TD]
[/TR]
[TR]
[TD]2:37 PM[/TD]
[TD]AAA[/TD]
[/TR]
</tbody>[/TABLE]