EN VI

EXCEL - Listing top 20 items from a range?

2024-03-17 17:30:05
How to 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.

Solution:

Another way as commented above:

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

Answer

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login