Finding the Most Occuring Name

eggsell22

New Member
Joined
Jul 14, 2011
Messages
8
Example....

A B C
Mike Beth Chris
Chris Sam John
Fred Jacob Sam
Sam Josh Beth

I am trying to figure out how to use excel to look through the table above and find the most occuring name or in math terms (the mode) and list them in order of most occurence to least.

So the result will look like the following.
Sam
Beth
Chris
.
.
.

Any help will be appreciated.
Thanks in advance!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I'm currently on a machine with 2003 excel... so I'm useless, as I don't understand it's horrible layout. Googlin' might do you good.
 
Upvote 0
Unless you have a large number of names in the three columns, this pivot table solution may be more work than it is worth.
1. To create a single column with all the names, type NAMES in Cell D1, then the following formula in Cell D2:

Code:
=INDEX($A$1:$C$10,ROUNDUP(ROW(A1)/3,0),ROW(A1)-(3*(ROUNDUP(ROW(A1)/3,0)-1)))

2. Copy the formula down for as many names as you have. The data I used has ten rows, so I copied it down from D2 through D31. If you have more data, also adjust the $c$10 in the formula to reflect how many rows of data you have.

3. Select Cells D1:D31, click Insert, Pivot Table. I put mine in Cell E1 of the same spreadsheet.

4. From the Pivot Table Field List, drag NAMES down to both the Row Labels and Values boxes. The pivot table will show each name and how many occurrences there are of each name.

5. Right click any of the occurrence values and select Sort, and sub option Sort Largest to Smallest. The namees are now sorted with the most frequent name first.

There may be a more elegant VBA solution, but this one will do the job.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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