Rank Values from Highest to Lowest
You have a column of numbers — sales, scores, hours — and want each row labeled with its position in the pack, 1st through last, without reordering the sheet.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
RANK compares the value in B2 against every value in $B$2:$B$20 and returns its position. The third argument sets the direction: 0 (or leaving it out) means descending — the largest value gets rank 1 — while 1 means ascending, where the smallest wins. The $ signs anchor the range so it stays put as you fill the formula down; only B2 moves. Ties share a rank and skip the following ones: two values tied for 2nd both show 2, and the next value shows 4. In current Excel you'll also see RANK.EQ — it behaves identically, and plain RANK still works everywhere including Google Sheets.
When to use it
Use this for sales leaderboards, test-score standings, and "top 10" reports — anywhere you want positions visible next to the data while keeping the sheet in its original order.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08