Need help with countif/vlookup or countif/index/match

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]
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]
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Copy F2:H2 down.

Excel Workbook
ABCDEFGH
1NameRoleAttainment*Role50 - 75%>75%
2BobRep50%*Rep132
3JoeEngineer50%*Engineer132
4MaryRep95%*****
5TomEngineer95%*****
6SueRep30%*****
7JackEngineer30%*****
8SimonRep65%*****
9JessicaEngineer65%*****
10LynnRep120%*****
11SarahEngineer120%*****
12BradRep60%*****
13YvonneEngineer60%*****
Sheet5
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,613
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top