Calculating which name occurs most in a column

kreases

Board Regular
Joined
Oct 26, 2005
Messages
114
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have catalogued my record collection and wondered if there is any way to find out which Artist's name occurs most in the Artists column, I don't require a count as such I just want to put the name that occurs most in another cell for stats purposes, any ideas?
 
Alan, sorry I couldn't get yours to work.

Barry, yours worked but like Alan's original link it only returns the first Artist if there are more than one tied.

Thanks for trying but I don't want to waste too much time on this it would have just been a nice stat to display.
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Alan, sorry I couldn't get yours to work.

Barry, yours worked but like Alan's original link it only returns the first Artist if there are more than one tied.

Thanks for trying but I don't want to waste too much time on this it would have just been a nice stat to display.

you have entered with Ctrl+Shift+Enter, haven't you?
 
Upvote 0
Barry, yours worked but like Alan's original link it only returns the first Artist if there are more than one tied.

That's not the result that I get, it should show artists in descending order of appearance, so for your example it will show both Bee Gees and Al Green, followed by any artists with 7 appearances, then 6 etc....etc
 
Upvote 0
Well perhaps someone can tell me what I am getting wrong in the transformation as because of other columns I am having to insert this formula in Column S starting at S3 and the Column which has the Artists names in is Column A (the Artists run from A3 to A614.

=INDEX($A$3:$A$614,MATCH(LARGE(FREQUENCY(MATCH($A$3:$A$614,$A$3:$A$614,0),ROW($A$3:$A$614)-ROW($A$3)+1)+ROW($A$3:$A$614)/10000,ROWS(S3:S$614)),FREQUENCY(MATCH($A$3:$A$614,$A$3:$A$614,0),ROW($A$3:$A$614)-ROW($A$3)+1)+ROW($A$3:$A$614)/10000,0))

When I ctrl shift and enter I am just getting #N/A
 
Upvote 0
This method seems to require two more columns when I simply want to know the artist that is occurring most and if there is a tie to name all of those tied and the name(s) to be put in a cell(s) of my choosing.

I would have liked this automated but it seems it would be easier just to count them and put the names in the cells manually.

Thanks to everyone who has posted towards this, sorry I wasted your time.
 
Upvote 0
Here is another option, it lists just the ties starting in C3 and down - commit with control+shift+enter and copy down as many rows as there may be possible ties.


Excel 2013/2016
ABC
3The BeatlesThe Beatles
4The SmithsThe Smiths
5The Beatles
6The Smiths
7The Doors
8The Beatles
9The Doors
10The Cranberries
11The Smiths
12The Cranberries
Sheet1
Cell Formulas
RangeFormula
C3{=IFERROR(INDEX($A$3:$A$614,INDEX(MODE.MULT(IF($A$3:$A$614<>"",MATCH($A$3:$A$614,$A$3:$A$614,0))),ROWS(C$3:C3))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Again, when I copy down this formula I get the same answer in each cell, the Bee Gees which is the first max count, it doesn't seem to pick up the tie (Al Green), I have even copied just the artist into a blank worksheet and applied the formula but again when I copy the formula down it just repeats the first answer.
 
Upvote 0
Again, when I copy down this formula I get the same answer in each cell, the Bee Gees which is the first max count, it doesn't seem to pick up the tie (Al Green), I have even copied just the artist into a blank worksheet and applied the formula but again when I copy the formula down it just repeats the first answer.

I'd suggest that there is somthing wonky with your data then. Maybe some of the "Bee Gees" have trailing spaces or other hidden characters and are tied with each other

If you do something like =COUNTIF($A$3:$A$614,"Bee Gees") - do you get the count you expect?

If you can't figure it out then maybe you could remove all the data except for A3:A614 and your attempted formulas and put the workbook on a file sharing site (like dropbox) and share the link here so someone can take a look.
 
Upvote 0

Forum statistics

Threads
1,216,403
Messages
6,130,364
Members
449,576
Latest member
DrSKA

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