kchung6541
New Member
- Joined
- Jun 14, 2017
- Messages
- 2
I am trying to find a formulaic way to count individuals by role, who have attainment within a range. I've made a sample data set below. I need a formula to populate the values in the yellow cells. Obviously my data set is 1000's of rows, so I would prefer not to filter and count. Is there a way to do this with a vlookup or index/match along with count? I tried the formula in the screenshot, but it doesn't work. THANKS!!
Excel 2010 64 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH][/TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[TH]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Name[/TD]
[TD]Role[/TD]
[TD]Attainment[/TD]
[TD][/TD]
[TD]Role[/TD]
[TD]<50%[/TD]
[TD]50 - 75%[/TD]
[TD]>75%[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Bob[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD]Rep[/TD]
[TD="bgcolor: #FFFF00"]
[TD="bgcolor: #FFFF00"]
[TD="bgcolor: #FFFF00"]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Joe[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD]Engineer[/TD]
[TD="bgcolor: #FFFF00"]
[TD="bgcolor: #FFFF00"]
[TD="bgcolor: #FFFF00"]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Mary[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Tom[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Sue[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD]=COUNTIF(B:B,VLOOKUP(E2,B:C,2,FALSE)>".5")[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Jack[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Simon[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Jessica[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Lynn[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Sarah[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Brad[/TD]
[TD]Rep[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
[TD]Yvonne[/TD]
[TD]Engineer[/TD]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]
Excel 2010 64 bit
[TABLE="class: head"]
<tbody>[TR="bgcolor: #888888"]
[TH][/TH]
[TH]
A
[/TH][TH]
B
[/TH][TH]
C
[/TH][TH]
D
[/TH][TH]
E
[/TH][TH]
F
[/TH][TH]
G
[/TH][TH]
H
[/TH][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
1
[/TD][TD]Name[/TD]
[TD]Role[/TD]
[TD]Attainment[/TD]
[TD][/TD]
[TD]Role[/TD]
[TD]<50%[/TD]
[TD]50 - 75%[/TD]
[TD]>75%[/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
2
[/TD][TD]Bob[/TD]
[TD]Rep[/TD]
[TD]
50%
[/TD][TD][/TD]
[TD]Rep[/TD]
[TD="bgcolor: #FFFF00"]
1
[/TD][TD="bgcolor: #FFFF00"]
3
[/TD][TD="bgcolor: #FFFF00"]
2
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
3
[/TD][TD]Joe[/TD]
[TD]Engineer[/TD]
[TD]
50%
[/TD][TD][/TD]
[TD]Engineer[/TD]
[TD="bgcolor: #FFFF00"]
1
[/TD][TD="bgcolor: #FFFF00"]
3
[/TD][TD="bgcolor: #FFFF00"]
2
[/TD][/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
4
[/TD][TD]Mary[/TD]
[TD]Rep[/TD]
[TD]
95%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
5
[/TD][TD]Tom[/TD]
[TD]Engineer[/TD]
[TD]
95%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
6
[/TD][TD]Sue[/TD]
[TD]Rep[/TD]
[TD]
30%
[/TD][TD][/TD]
[TD]=COUNTIF(B:B,VLOOKUP(E2,B:C,2,FALSE)>".5")[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
7
[/TD][TD]Jack[/TD]
[TD]Engineer[/TD]
[TD]
30%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
8
[/TD][TD]Simon[/TD]
[TD]Rep[/TD]
[TD]
65%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
9
[/TD][TD]Jessica[/TD]
[TD]Engineer[/TD]
[TD]
65%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
10
[/TD][TD]Lynn[/TD]
[TD]Rep[/TD]
[TD]
120%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
11
[/TD][TD]Sarah[/TD]
[TD]Engineer[/TD]
[TD]
120%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
12
[/TD][TD]Brad[/TD]
[TD]Rep[/TD]
[TD]
60%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD="bgcolor: #888888"]
13
[/TD][TD]Yvonne[/TD]
[TD]Engineer[/TD]
[TD]
60%
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid"]
<tbody>[TR]
[TD]Sheet: Sheet2[/TD]
[/TR]
</tbody>[/TABLE]