ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. RANK.EQ vs RANK.AVG: How Excel Handles Ties

RANK.EQ vs RANK.AVG: How Excel Handles Ties

By ExcelReady Team·Updated November 2, 2026·6 min read

The short answer

RANK.EQ and RANK.AVG both return a number's position in a list. They differ only when values tie. RANK.EQ gives every tied value the best rank they share, so two values tied for 2nd both get 2. RANK.AVG gives them the average of the ranks they cover, so both get 2.5. Use RANK.EQ for leaderboards and RANK.AVG for statistics.

Key takeaways

  • Without ties, RANK.EQ and RANK.AVG return exactly the same ranks.
  • RANK.EQ gives tied values the top shared rank and skips the ranks below, like a sports table.
  • RANK.AVG gives tied values the average of their positions, so ranks can end in .5.
  • Both take the same arguments, (number, ref, [order]), and both need Excel 2010 or later.
  • RANK.AVG keeps the total of all ranks the same as if there were no ties, which statistical tests rely on.
On this page+
  1. RANK.EQ vs RANK.AVG at a glance
  2. How both functions work
  3. The same scores ranked both ways
  4. How to rebuild RANK.AVG from RANK.EQ
  5. When to use RANK.EQ
  6. When to use RANK.AVG
  7. Common mistakes with RANK.EQ and RANK.AVG
  8. Our recommendation
  9. Practise it

RANK.EQ vs RANK.AVG comes down to one question: what should tied values get? Both functions tell you where a number sits in a list, and they give identical answers until two or more values are equal. RANK.EQ gives ties the best rank they share, while RANK.AVG gives them the average of their positions. This guide shows both on the same data so you can pick the right one for a leaderboard, a report or a statistics task.

RANK.EQ vs RANK.AVG at a glance#

The two functions share their syntax, their versions and their errors. Only the tie rule is different.

FeatureRANK.EQRANK.AVG
Syntax=RANK.EQ(number, ref, [order])=RANK.AVG(number, ref, [order])
Two values tied for 2ndBoth get 2Both get 2.5
Three values tied for 4thAll get 4All get 5
Ranks for 2nd, 2nd, then the next value2, 2, 4 (3 is skipped)2.5, 2.5, 4
Can return decimals?No, whole numbers onlyYes, when there are ties
Sum of all ranksLower than normal when there are tiesAlways 1 + 2 + … + n
Older equivalentRANKNone
Excel versionsExcel 2010 and later, Microsoft 365, Mac and webExcel 2010 and later, Microsoft 365, Mac and web
Typical useLeaderboards, sales contests, league tablesStatistics, rank-based tests, fair scoring

How both functions work#

Both functions take the same three arguments:

  • number is the value you want to rank, such as B2.
  • ref is the full list to compare against, such as $B$2:$B$8. Lock it with dollar signs so it doesn't move when you fill down.
  • order is optional. Leave it out or use 0 to make the largest value rank 1. Use 1 to make the smallest value rank 1, for times or costs.

Both ignore text and blank cells in the list. Both return #N/A if the number isn't in the list. RANK is the older name for RANK.EQ and still works, as the guide to the RANK function explains.

The same scores ranked both ways#

Here are seven reps with test scores. Ana and Ben tie, and Cara, Dev and Eli tie:

ABCD
1RepScoreRANK.EQRANK.AVG
2Ana92022.5
3Ben92022.5
4Cara85045
5Dev85045
6Eli85045
7Fay99011
8Gus70077

Column C uses =RANK.EQ(B2,$B$2:$B$8) and column D uses =RANK.AVG(B2,$B$2:$B$8), both filled down.

Read it as positions in a sorted list. Fay is 1st. Ana and Ben take positions 2 and 3. RANK.EQ gives both the better one, 2. RANK.AVG gives both the middle, (2+3)/2 = 2.5. Cara, Dev and Eli take positions 4, 5 and 6. RANK.EQ gives all three 4, and RANK.AVG gives (4+5+6)/3 = 5. Gus is 7th in both.

Notice the totals. RANK.EQ adds up to 24, because the shared top ranks pull the total down. RANK.AVG adds up to 28, the same as 1 + 2 + … + 7 with no ties at all. That is why statistics uses average ranks.

Ranking from smallest to largest#

Add 1 as the order argument and the ties work the same way, counted from the bottom. Gus is 1st. Cara, Dev and Eli take positions 2 to 4, so RANK.EQ gives 2 and RANK.AVG gives 3. Ana and Ben take 5 and 6, so they get 5 and 5.5.

How to rebuild RANK.AVG from RANK.EQ#

You can calculate the average rank yourself, which shows exactly what RANK.AVG does. A tie that starts at rank r and has c values covers ranks r to r + c − 1, and their average is r + (c − 1)/2:

Excel formula
=RANK.EQ(B3,$B$2:$B$8)+(COUNTIF($B$2:$B$8,B3)-1)/2

For Ben, RANK.EQ returns 2 and COUNTIF finds 2 scores of 920. So the result is 2 + (2 − 1)/2 = 2.5, the same as RANK.AVG. For a value with no tie, COUNTIF returns 1 and nothing is added. This also works with the order argument set to 1.

When to use RANK.EQ#

Use RANK.EQ when people will read the ranks as places. It matches how most competitions work: two runners who tie for 2nd both get silver, and nobody is 3rd.

  • Leaderboards and sales contests. "Joint 2nd" is easy to understand. "2.5th" is not.
  • Top-N filters. A rule like "rank 3 or better gets a bonus" is clearer with whole numbers.
  • Old files. If people open the workbook in Excel 2007 or earlier, use plain RANK, which behaves like RANK.EQ.
  • Unique ranks. Add a COUNTIF tie-breaker, =RANK.EQ(B2,$B$2:$B$8)+COUNTIF($B$2:B2,B2)-1, to give every row its own rank.

To get the values or names at each place rather than the rank of each value, LARGE and SMALL are often a better fit. See RANK vs LARGE and the guide to top N lists with LARGE and SMALL.

When to use RANK.AVG#

Use RANK.AVG when the ranks feed further calculations, especially statistics.

  • Rank-based statistics. Spearman's rank correlation and tests like the Mann–Whitney U test give tied values the average of their ranks. RANK.AVG does that for you.
  • Fair scoring across judges. When several judges rank the same entries and you average their ranks, average ranks treat tied entries evenly.
  • Comparing rank totals. Because RANK.AVG always sums to the no-tie total, rank totals for different groups stay comparable.

Average ranks are close cousins of the median: both describe a middle position. If that idea is new, the guide to AVERAGE vs MEDIAN explains the difference between averages and middle values.

Common mistakes with RANK.EQ and RANK.AVG#

These slips cause most wrong ranks:

  1. Not locking the list. Without $B$2:$B$8, the list shifts as you fill down and ranks drift. Press F4 (Mac: ⌘T) to add the dollar signs.
  2. Ties that aren't really ties. Values like 0.1+0.2 and 0.3 can differ in the last decimal place, so they don't tie. Round the values first with ROUND.
  3. Numbers stored as text. Text is ignored in the list, and ranking a cell that holds text returns an error. Convert the data with VALUE.
  4. Mixing up the order argument. For times, costs or errors, where smaller is better, use 1.
  5. Expecting the results in sorted order. Ranking doesn't move the rows. To show a sorted leaderboard in Excel 2021 or Microsoft 365, use =SORTBY(A2:A8,B2:B8,-1), covered in the guide to SORT and SORTBY.

Our recommendation#

Use RANK.EQ by default. It matches how people read places, it returns whole numbers, and it behaves like the older RANK function that most templates use. Switch to RANK.AVG only when the ranks go into a calculation that expects average ranks for ties, such as Spearman's correlation or another rank-based test. If you need every row to have a different rank, neither function does that alone: use RANK.EQ plus a COUNTIF tie-breaker.

Practise it#

Ranking makes most sense next to the functions that return values by position. Practise LARGE and SMALL in a live spreadsheet: you pull top and bottom values from a list and the sheet checks each formula instantly. Then turn ranks into a sorted leaderboard in the SORT function lesson, or rebuild RANK.AVG in the exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Ben ties with Ana. Rebuild RANK.AVG with functions you know: click D3 and add (COUNTIF(B2:B8,B3)-1)/2 to RANK.EQ(B3,B2:B8).

fx
ABCDE
1
Rep
Score
RANK.EQ
RANK.AVG
2
Ana
920
3
Ben
920
4
Cara
850
5
Dev
850
6
Eli
850
7
Fay
990
8
Gus
700
9
10
11

Tip: RANK.EQ gives the top rank of the tie (2). COUNTIF counts the tied values (2). Add half of one less than that count.

Practise this in a lesson

LessonLARGE and SMALLFind the second-highest, top 3 or second-lowest value, a favorite interview question.LessonSORT: order data with a formulaSort a table by any column, ascending or descending, and combine SORT with FILTER and UNIQUE.

Frequently asked questions

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

+

They only differ for ties. RANK.EQ gives tied values the highest rank they share, such as 2 and 2. RANK.AVG gives them the average of the ranks they take up, such as 2.5 and 2.5.

Is RANK the same as RANK.EQ?

+

Yes, they return the same results. RANK is the older function, kept so old workbooks still work. RANK.EQ and RANK.AVG were added in Excel 2010.

Why does RANK.AVG return a decimal?

+

Because some values are tied. If two values share 2nd and 3rd place, RANK.AVG returns (2+3)/2 = 2.5 for both. Three values sharing 4th to 6th each get 5.

How do I rank without ties in Excel?

+

Add a COUNTIF tie-breaker to RANK.EQ: =RANK.EQ(B2,$B$2:$B$8)+COUNTIF($B$2:B2,B2)-1. The first tied value keeps the rank and the next one gets the following rank.

Which rank function should I use for Spearman correlation?

+

Use RANK.AVG. Spearman's rank correlation and similar statistical tests assign tied values the average of their ranks, which is exactly what RANK.AVG returns.

Sources

  • RANK.EQ function - Microsoft Support
  • COUNTIF function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. RANK.EQ vs RANK.AVG at a glance
  2. How both functions work
  3. The same scores ranked both ways
  4. How to rebuild RANK.AVG from RANK.EQ
  5. When to use RANK.EQ
  6. When to use RANK.AVG
  7. Common mistakes with RANK.EQ and RANK.AVG
  8. Our recommendation
  9. Practise it

Keep reading

Math· 6 min read

RANK Function in Excel: Rank Scores and Sales

RANK.EQ returns a number's position in a list. Write =RANK.EQ(B2,$B$2:$B$8) to rank the value in B2 against the whole column, with the largest value ranked 1. Add a third argument of 1 to rank smallest first. Tied values share a rank and the next rank is skipped. RANK does the same job and still works in every version of Excel.

Comparisons· 7 min read

RANK vs LARGE in Excel: Position vs Value

RANK and LARGE answer opposite questions. RANK takes a value and returns its position: =RANK(B2,$B$2:$B$7) says whether B2 is 1st, 2nd or 5th. LARGE takes a position and returns the value: =LARGE(B2:B7,2) gives the second highest number. Use RANK to label every row, and LARGE to build a top-N list.

Math· 6 min read

Find the Top 3 (or Second Highest) With LARGE and SMALL

The Excel LARGE function returns the k-th largest number in a range: =LARGE(B2:B9,2) gives the second highest. SMALL works the same way from the bottom, so =SMALL(B2:B9,2) gives the second lowest. To total the top 3, add three LARGE results with k = 1, 2 and 3.

More on comparisons

  • Relative vs Absolute vs Mixed References in Excel
  • ROUND vs ROUNDUP vs ROUNDDOWN (vs Formatting)
  • Slicer vs Filter in Excel: Which Is Better for Reports?
  • Sort Button vs SORT Function in Excel
  • SORT vs SORTBY in Excel: Which Dynamic Sort
  • STDEV.S vs STDEV.P: Sample or Population?
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free