To rank numbers from smallest to largest in Excel, use the RANK.EQ function with the order argument set to 1 (or RANK in older versions). For example, =RANK.EQ(A2,$A$2:$A$10,1) gives the smallest number a rank of 1, the next smallest 2, and so on. This is useful for leaderboards, test scores, sales figures, or any list where you need to know the position from the bottom. You do not need to sort the data first; the function works on the original order.

What You'll Need

  • Excel 2010 or later (RANK.EQ was introduced in Excel 2010; older versions use RANK, which works the same way for this purpose).
  • A column or row of numeric values to rank. Text, blanks, and errors are ignored by the function.
  • Basic familiarity with entering formulas and using absolute references (the $ sign).

Step-by-Step

  1. Select the cell where you want the first rank. For example, if your numbers are in A2:A10, click B2 to place the rank next to the first value.
  2. Type the RANK.EQ formula. Enter =RANK.EQ(A2,$A$2:$A$10,1). The first argument is the number you want to rank (A2). The second argument is the entire range of numbers, locked with absolute references ($A$2:$A$10) so it does not shift when you copy the formula down. The third argument, 1, tells Excel to rank in ascending order (smallest = rank 1).
  3. Press Enter. The cell now shows the rank of the first number. If A2 contains the smallest value in the range, it will show 1.
  4. Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down to B10, or copy B2 and paste it into B3:B10. Because the range is absolute, each row will rank its own value against the full set.
  5. Check for ties. RANK.EQ gives tied values the same rank and leaves gaps in the sequence (for example, two values tied for 2nd will both show 2, and the next value will show 4). This is standard competition ranking. If you need unique ranks without gaps, use RANK.EQ plus a COUNTIF adjustment: =RANK.EQ(A2,$A$2:$A$10,1)+COUNTIF($A$2:A2,A2)-1. This adds 1 for each earlier occurrence of the same value, producing unique ranks.
  6. Optional: sort by rank. If you want to see the list ordered from smallest to largest, select the data and rank columns, then go to Data > Sort and sort by the rank column ascending. This does not change the ranks themselves; it just reorders the rows.

Note: Menu labels and function names can differ slightly by Excel version, device, or region. On Excel for the web and mobile, the same functions are available, but the formula bar and fill handle work a little differently on touch screens.

Common Mistakes

  • Forgetting absolute references. If you use a relative range like A2:A10 and copy the formula down, the range shifts and ranks become wrong. Always lock the range with $ signs.
  • Using order 0 or omitting it. The default order is 0 (descending, largest = rank 1). For smallest-first ranking, you must include 1 as the third argument.
  • Including text or blanks in the range. RANK.EQ ignores non-numeric cells, but if your range includes headers or labels, the function may return unexpected results. Use a clean numeric range.
  • Expecting unique ranks with ties. RANK.EQ assigns the same rank to duplicates. If you need unique ranks, use the COUNTIF adjustment described above.
  • Ranking across multiple columns incorrectly. If your data spans several columns, the range must include all relevant cells, and the formula must reference the correct cell for each row.

Tips

  • Use RANK.EQ for new workbooks; it is the modern replacement for RANK and behaves the same for this use case.
  • To rank in descending order (largest = 1), change the third argument to 0 or omit it.
  • Combine with IF or FILTER to rank only a subset, such as scores above a threshold.
  • If you want to see the sorted list without changing the original order, use SORT or SORTBY in a new range (available in Excel 365 and Excel 2021).
  • For dynamic ranges, convert your data to an Excel Table (Ctrl+T) and use structured references; the formula will auto-expand as you add rows.

Troubleshooting

  • All ranks show 1 or the same number: Check that the range is absolute and that the first argument is a relative cell reference (e.g., A2, not $A$2). Also ensure the third argument is 1.
  • #N/A error: The number being ranked is not found in the range. This can happen if the range does not include the cell itself or if the value is text. Verify the range covers all numbers.
  • Ranks are off by one or have gaps: This is normal with ties. If you need unique ranks, use the COUNTIF adjustment or switch to RANK.AVG for average ranking of ties.
  • Formula not copying correctly: Make sure you are dragging the fill handle, not just copying the cell. On mobile, use the fill handle or copy-paste the formula to each cell.
  • Function not recognized: In Excel 2007 or earlier, use RANK instead of RANK.EQ. The syntax is the same.

Frequently Asked Questions

What is the difference between RANK, RANK.EQ, and RANK.AVG?

RANK is the legacy function; RANK.EQ is its replacement and returns the same result for ties (same rank). RANK.AVG assigns the average rank to tied values (e.g., two tied for 2nd get 2.5).

Can I rank only visible rows in a filtered list?

RANK.EQ ranks all values in the range, including hidden rows. To rank only visible rows, use SUBTOTAL with a helper column or the AGGREGATE function, which can ignore hidden rows.

How do I rank from smallest to largest without ties getting the same rank?

Use =RANK.EQ(A2,$A$2:$A$10,1)+COUNTIF($A$2:A2,A2)-1. This adds a unique increment for each duplicate, giving every value a distinct rank.

Does RANK.EQ work on text or dates?

RANK.EQ only works on numbers. Dates are stored as numbers, so they can be ranked. Text values are ignored and return #N/A if you try to rank them.

Can I rank across multiple sheets?

Yes, but the range must be on a single sheet or use a 3D reference like Sheet1:Sheet3!A1:A10. Be careful with absolute references across sheets.

Why does my rank formula return a decimal?

You are likely using RANK.AVG, which returns average ranks for ties. Switch to RANK.EQ for integer ranks.