Using MODE to determine most popular values

pioniere

New Member
Joined
Feb 22, 2011
Messages
6
Hello,

I have a large spreadsheet containing all numbers, and would like to determine the top 4 most frequent values on the spreadsheet. I know how to use MODE to determine the most frequent value in a range. How can I use it to determine the 2nd most frequent value, 3rd most frequent value, etc.

Thanks in advance!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
If you have numbers in A2:A100 then try this to get a list of the most frequent numbers

In C1 put some text like "modelist" then in C2 use this formula

=MODE(IF(COUNTIF(C$1:C1,A$2:A$100)=0,A$2:A$100))

confirmed with CTRL+SHIFT+ENTER and copied down as far as required

in the adjacent column in D2 you could use a COUNTIF formula to count the occurrences too, i.e. in D2 copied down

=COUNTIF(A$2:A$100,C2)
 
Upvote 0
Mr. Houdini,

I just wanted to thank you for this post. I have spent the last two days looking around the internet trying to find the solution you provided. Thank you very much for your post!

- Brian
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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