Counting locations per name

Spreadsheetz

New Member
Joined
Jun 12, 2016
Messages
22
Hello!

Hopefully this is an easy one.. I have a spreadsheet with a number of names in one column, and locations in another column. I'm hoping to find a formula that can tell me how many times the location shows up per person.

For example:
locationname
CalforniaJeff
MaineMary
CaliforniaJeff
MichiganMary
MichiganMary
WyomingJeff

<tbody>
</tbody>

Is there a function to use that could quickly spit out something like this:
locationnamecount
californiajeff2 california, 1 wyoming
mainemary2 michigan, 1 maine
californiajeff2 california, 1 wyoming
MichiganMary2 michigan, 1 maine
Michiganmary2 michigan, 1 maine
WyomingJeff2 california, 1 wyoming

<tbody>
</tbody>

Just a count of how many times the value in the location column occurs per name.

Thanks in advance!!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
A
B
C
D
E
F
G
H
I
1
locationnamenamelocationCaliforniaMichiganWyomingMaine
2
CaliforniaJeffJeff
2​
0​
1​
0​
3
MaineMaryMary
0​
1​
0​
2​
4
CaliforniaJeff
5
MaineMary
6
MichiganMary
7
WyomingJeff

<tbody>
</tbody>

f2=COUNTIFS($B$2:$B$7,$D2,$A$2:$A$7,F$1) copy across and down
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,287
Members
449,218
Latest member
Excel Master

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