Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

EXCEL – Listing top 20 items from a range

I have a list of several hundred product codes (alphanumeric) and I’m trying to get a list of the top 20 i.e. the 20 items which occur the most.

I’m only able to make a formula that gets the single most popular item. I’m struggling to figure out how to extend it to include the second and third most popular etc…..

=INDEX(A2:A368,MODE(MATCH(A2:A368,A2:A368,0)))

Any help would be greatly appreciated.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Another way as commented above:

=LET(α, A2:A368, TAKE(UNIQUE(SORTBY(α,COUNTIF(α,α),-1)),20)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading