18.4 C
London
Wednesday, June 4, 2025
HomeSoftware TutorialsExcelHow to Rank Items by Multiple Criteria in Excel

How to Rank Items by Multiple Criteria in Excel

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use a combination of the RANK.EQ() function and the COUNTIFS() function in Excel to rank items by multiple criteria.

The following example shows how to use these functions to rank items in a list by multiple criteria in Excel.

Example: Rank by Multiple Criteria in Excel

Suppose we have the following dataset in Excel that shows the total points and assists for eight different basketball players.

Now suppose we’d like to rank each player using the following criteria:

  • First, rank each player based on points.
  • Then, rank each player based on assists.

We can use the following formula to perform this multiple criteria ranking:

=RANK.EQ($B2, $B$2:$B$9) + COUNTIFS($B$2:$B$9, $B2, $C$2:$C$9, ">" &$C2)

We can type this formula into cell D2 of our spreadsheet, then copy and paste the formula down to every other cell in column D:

From the output we can see that Andy receives a rank of 1 because he is tied for the most points with Bernard. However, Andy has more assists than Bernard, so he receives a rank of 1 while Bernard receives a rank of 2.

Each player is ranked in a similar manner, first based on their total points and then based on their total assists.

If we instead would like to perform multiple criteria ranking in reverse order (the “best” player gets the highest ranking) then we can use the following formula:

=RANK.EQ($B2, $B$2:$B$9, 1) + COUNTIFS($B$2:$B$9, $B2, $C$2:$C$9, "$C2)

We can type this formula into cell D2, then copy and paste the formula down to every other cell in column D:

Notice that the rankings are completely reversed from the previous example. The player with the most points and assists (Andy) now has a ranking of 8.

Similarly, Bernard now has a ranking of 7. And so on.

Additional Resources

The following tutorials explain how to perform other common functions in Excel:

How to Sort by Multiple Columns in Excel
How to Calculate the 90th Percentile in Excel
How to Select a Random Sample in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories