Ranking data in Excel by percentage is a common task for performance reviews, grades, or comparing scores, but it can be tricky. Simply sorting numbers by percentage doesn’t rank them correctly—you need a formula that assigns ranks based on relative values. Here’s how to do it properly, with ties handled, plus what to check if it fails.

What You'll Need

  • An Excel file with a list of percentages (or numeric values you’ll convert to percentages).
  • Knowledge of the RANK.EQ function (or alternatives like RANK.AVG for ties).
  • Basic Excel skills to use formulas and sort data.
  • A helper column if you’re manually ranking or adjusting for duplicates.

Step-by-Step

  1. Convert percentages to numeric values (if needed). If your data is stored as text or decimal percentages (e.g., "85%" or 0.85), use the VALUE or MULTIPLY function to convert them to a pure number scale: =VALUE(A2) (for text like "85%") or =A2/100 (for decimals like 0.85). Example: If cell A2 has "92%", the formula would be =VALUE(A2), resulting in 92.
  2. Add a helper column for rankings. Drag the formula =RANK.EQ(B2, B$2:B$100, 0) down column C (assuming your data spans rows 2–100). This ranks each value in column B relative to all other values in the same column, ignoring ties temporarily. Adjust range (B$2:B$100) if your data varies in rows.
  3. Apply RANK.EQ with ties. Use =RANK.EQ(B2, B$2:B$100, 1) if you want unique ranks for each unique percentage (e.g., two 90% scores get ranks 1 and 2). For ties (e.g., multiple 85%), they’ll all receive the same rank. If you prefer average ranks for ties, use =RANK.AVG(B2, B$2:B$100).
  4. Sort the data by rank. Select your data (including column C) and sort by column C in ascending order. Excel will now list the highest percentage first (rank 1), then rank 2, and so on. Tip: If ranking by rank, add column D with =C2 to confirm the sorted order.
  5. Handle ties manually (optional). If you want ties to receive the average rank (e.g., three 85% scores become ranks 1, 2, and 3), use =RANK.AVG instead of RANK.EQ. To adjust ranks after sorting: 1. Copy column C into column D. 2. In cell D2, enter =RANK.AVG(B2, B$2:B$100) and drag it down. 3. Sort by column D.

Common Mistakes

  1. Ignoring the 0 or 1 argument in RANK.EQ. Without specifying the 0 or 1 argument, Excel may assign ranks incorrectly. RANK.EQ(..., 0) handles ties by assigning the next rank (e.g., two 90s become ranks 1 and 2), while RANK.EQ(..., 1) averages ranks for ties.
  2. Using wrong ranges in the formula. Forgetting to include the entire dataset (e.g., B2:B100) will cause errors. Always reference rows 2–end (e.g., B$2:B$100).
  3. Converting percentages incorrectly. Skipping the conversion (e.g., using "85%" as a number) will break ranking logic. Always use VALUE(A2) or =A2/100.
  4. Sorting before ranking. Sorting columns A–C by percentages first will ruin your rankings. Always sort by the rank column (e.g., column C).

Tips

  1. Use conditional formatting for visual ranking. Highlight ranks with colors: =IF(C2=1, "Rank 1", IF(C2=2, "Rank 2", "")) and apply background color based on rank.
  2. Test with a small dataset first. Enter three percentages (e.g., 70%, 90%, 80%) and verify ranks before scaling to your full list.
  3. Consider a pivot table for large datasets. If ranking thousands of rows, use a pivot table with "Values as row labels" and "Rank" as a calculated field.
  4. Save your formula as a table. Convert the ranked data range to a table (right-click > Table), then update the formula range dynamically (e.g., B$1:B$100).

Troubleshooting

  1. Formulas return errors (#DIV/0! or #VALUE!). Check these steps: 1. Ensure the data is numeric (no text like "85%"). 2. Verify the range includes all values (e.g., B$2:B$100). 3. If using RANK.EQ, try RANK.AVG for ties. 4. Restart Excel or clear the formula cache (File > Options > Advanced > Clear User Settings).
  2. Ranks are reversed (highest value appears last). Excel sorts ranks in ascending order by default. To sort by rank ascending (highest rank first), use the built-in Excel sort function: Select your data, then go to Data > Sort, choose "Rank, Ascending," and sort by the rank column (e.g., column C).
  3. Ties show as rank 1 for all values. This happens if your dataset has a single value repeated (e.g., all 85%). Use RANK.AVG or manually adjust ranks: 1. Sort by percentage. 2. Assign ranks by hand (e.g., first 85% = rank 1, next 85% = rank 2).

Frequently Asked Questions

Why does Excel rank percentages differently from sorting?

Sorting by percentage values doesn’t assign ranks—it orders them numerically (e.g., 92% comes before 85%). RANK.EQ assigns numerical places based on relative position, so a 92% could rank 1 while a 90% ranks 2 if no other values are higher.

How do I rank percentages in descending order of performance?

By default, RANK.EQ assigns ascending ranks. To rank highest scores first, use Data > Sort and select "Rank, Ascending" while sorting by the rank column (or apply a descending sort to the rank column).

What if I have 0% scores in my data?

RANK.EQ will assign rank 1 to 0% if it’s the lowest value. To exclude zeros from ranking, filter out zeros before applying the formula or use a helper column to log only valid percentages.

Can I rank percentages by a different percentage threshold (e.g., "top 10%")?

Yes! Use the RANK.EQ formula with a custom range (e.g., =RANK.EQ(B2, B$2:B$100, 0) but adjust the range to a subgroup if needed). For a top-10% ranking, replace the range with a subset like B$2:B$50.

How do I make ranks show up as text (e.g., "Rank 1")?

Add a helper column with =TEXT(C2, "0") & "th" (for ordinals like "1st," "2nd") or =C2 as plain numbers. For dynamic labels (e.g., "Best"), use =IF(C2=1, "Best", IF(C2=2, "Second", "")).

Will ranking percentages change if I round numbers first?

Rounding can break rankings if values are close (e.g., 90.1% and 90.2% become 90% and 90% after rounding). Use exact values or apply rounding only at the end if needed.