Beginner excel formula question

Marcell1992

Well-Known Member
Joined
Aug 7, 2018
Messages
289
Reaction score
59
Good day,

I have an excel sheet with user data in it. It consumes quite a bit of time to manually count it, so I'm looking for a formula to do it quickly.

Each data entry, lets say column A, has a user assigned to it, lets say column B. Pretty sure column A is not needed for this.
I would like to identify the top 5 users most common in column B and their total. Eg.:
Bob - 5
Joe - 4
Anna - 4
Sally - 3
Bella - 2

Is this possible in excel? Pretty sure anything is possible in Excel with the right formulas.
 
Hmmm, not sure how different excel is from google sheets, but in sheets one way to do it is to re-order the data like this...

In cell D3 the following:
=SORT(A2:B100, A2:A100, FALSE, 2, FALSE)

FILTER.png
 
You can just sort the sheet by column B. Seems the simplest to me. Or is there something more complex you need to do? Does each name have only one line? Or could the name appear more than once?
 
I have 250 names, doesn't seem like a solid solution to repeat the formula 250 times. For 10 people, yea sure.

If you have all the names in a row, use the same formula but change "bob" to the cell adjacent that contains the name, then just extend the formula all the way down the list, you can do this with your mouse.
 
If you have all the names in a row, use the same formula but change "bob" to the cell adjacent that contains the name, then just extend the formula all the way down the list, you can do this with your mouse.
For this solution I'd recommend locking the cell selection range, eg. =COUNTIF($A$1:$A$250;A1) - Not the best as you'll have duplicate values for each name that is mentioned more than once.
 
You can just sort the sheet by column B. Seems the simplest to me. Or is there something more complex you need to do? Does each name have only one line? Or could the name appear more than once?

I can sort by name, but not the result I'm looking for.

Here's an extremely small example of data:
A - Bob
B - Bob
C - Sally
D - Bob
E - Derp

Return result after formula:
Bob x3
Sally x1
Derp x1
4th most
5th most
 
Top
Sign up to the MyBroadband newsletter
X