Excel
RANK function in Excel
Returns the rank of a number in a list of numbers
=RANK(number, ref, [order])RANK syntax and parameters
Three arguments, two required.
- numbernumberRequired
- refanyRequired
- ordernumberOptional
RANK examples
Formulas you'll actually reuse.
A rep's position on the sales leaderboard, biggest first:
=RANK(B2, B$2:B$50)Result
7Ascending rank — lap times, where smallest wins:
=RANK(B2, B$2:B$50, 1)Result
3
RANK in Google Sheets
Same name — your formula ports as-is.
Try RANK in the playground
Edit the example — nothing to install.
Preloaded with the RANK formula from Example 1 — change anything and watch it respond.
Loading the editor…
RANK errors
What they mean — and the fixes.
#N/AThe value isn't in the reference range — RANK matches exactly; check the range covers the row you're ranking.
Related functions
More ways Excel gets this done.
- CEILINGRounds a number to the nearest integer or to the nearest multiple of significanceCompatibilityGoogle Sheets
- FLOORRounds a number down, toward zeroCompatibilityGoogle Sheets
- ABSReturns the absolute value of a numberMathGoogle Sheets
- ACCRINTReturns the accrued interest for a security that pays periodic interestFinancialGoogle Sheets
- ACCRINTMReturns the accrued interest for a security that pays interest at maturityFinancialGoogle Sheets
- ACOSReturns the arccosine of a numberMathGoogle Sheets