Count instances in one column based on data in another column

pacerfan07

New Member
Joined
Jun 2, 2017
Messages
20
Based on the table below, I would like to create another table that looks at the names in the left column and counts how many instances the number is greater than 5 in the right column. So the new table would say John Smith's count is 2; Kevin Nance's count is 1, etc. All help is appreciated. Thanks!

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Kevin Nance[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Sharon Burros[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Stanley Kirk[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Sharon Burros[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]John Smith[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Stanley Kirk[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Kevin Nance[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Assuming your sample data is in columns A:B, try the following formula next to it in column C:

Code:
=COUNTIFS($A$2:$A$10,A2,$B$2:$B$10,">5")
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]John Smith[/TD]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD]John Smith[/TD]
[TD]
2​
[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]Kevin Nance[/TD]
[TD]
4​
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Kevin Nance[/TD]
[TD]
1​
[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]Sharon Burros[/TD]
[TD]
4​
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Sharon Burros[/TD]
[TD]
1​
[/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]Stanley Kirk[/TD]
[TD]
4​
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Stanley Kirk[/TD]
[TD]
1​
[/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]John Smith[/TD]
[TD]
4​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]Sharon Burros[/TD]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
7
[/TD]
[TD]John Smith[/TD]
[TD]
7​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
8
[/TD]
[TD]Stanley Kirk[/TD]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
9
[/TD]
[TD]Kevin Nance[/TD]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

F1=SUMPRODUCT(($A$1:$A$9=$E1)*($B$1:$B$9>5)) copy down

 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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