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?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi,

Put this formula to any cell.

=COUNTIF(C2:C1000,"ARTISTNAME")

Considering, C-column as 'Artist's Name' and C1 as heading. Adjust the range and put the Artist's name in place of "ARTISTNAME"

Regards,
PritishS
 
Upvote 0
Hi,

That formula is only going to count how many times a 'named' artist appears in the column what I need is to be told which Artist appears the most in the Artists column, there are a lot of different artists names in that column, I don't want to have to count each one I want a formula that will return the name of the Artist that appears most, does that make sense?
 
Upvote 0
You could use this formula,

=INDEX(A2:A9,MATCH(LARGE(B2:B9,1),$B$2:$B$9,0),1)

Artists names in column A, you would need a count function column, Column B for this formula.
 
Upvote 0
Upvote 0
This works, the only issue I have is if there are more than one Artist appearing the same amount of times it only highlights the first that occurs.

I have two Artists with 8 singles (Bee Gees and Al Green) the formula came up with Bee Gees only

try this in C1 and copy down, it will ranked them from top1, 2 etc


Excel 2013/2016
ABC
1FFFRRR
2RRRUUU
3BBBVVV
4HHH
5WWW
6RRR
7OOO
8RRR
9MMM
10KKK
11RRR
12ZZZ
13UUU
14BBB
15ZZZ
16UUU
17RRR
18VVV
19VVV
20UUU
Sheet2
Cell Formulas
RangeFormula
C1{=INDEX($A$1:$A$20,MATCH(LARGE(FREQUENCY(MATCH($A$1:$A$20,$A$1:$A$20,0),ROW($A$1:$A$20)-ROW($A$1)+1)+ROW($A$1:$A$21)/10000,ROWS(C$1:C1)),FREQUENCY(MATCH($A$1:$A$20,$A$1:$A$20,0),ROW($A$1:$A$20)-ROW($A$1)+1)+ROW($A$1:$A$21)/10000,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Here's another possibility.....

With data in A1:A20 and a blank or header in D1 use this array formula in D2

=INDEX(A$1:A$20,MODE(IF(COUNTIF(D$1:D1,A$1:A$20)=0,{1,1}*MATCH(A$1:A$20,A$1:A$20,0))))

confirm with CTRL+SHIFT+ENTER and copy down
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,956
Members
449,200
Latest member
indiansth

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