How to rank range numbers uniquely without duplicates in Excel?

In Microsoft Excel, the normal rank function gives duplicate numbers the same rank. For example, if the number 100 appears twice in the selected range, and the first number 100 takes the rank of 1, the last number 100 will also take the rank of 1, and this will skip some numbers. But, sometimes, you need to rank these values uniquely as following screenshots shown. For more details of the unique ranking, please do as following tutorial shown step by step.

Rank range numbers uniquely in descending order

Rank range numbers uniquely in ascending order


Rank range numbers uniquely in descending order

In this section, we will show you how to rank range numbers uniquely in descending order.

Take the data of below screenshot as example, you can see there are multiple duplicate numbers among the range A2:A11.

1. Select the B2, copy and paste the formula =RANK(A2,$A$2:$A$11,0)+COUNTIF($A$2:A2,A2)-1 into the Formula Bar, then press the Enter key. See screenshot:

2. Then the ranking number is showing in the cell B2. Select the cell B2 and put the cursor on its lower-right corner, when a small black cross showing, drag it down to cell B11. Then the unique ranking is successful. See screenshot:


Rank range numbers uniquely in ascending order

If you want to rank range numbers uniquely in ascending order, please do as follows.

1. Select cell B2, copy and paste formula =RANK(A2,$A$2:$A$11,1)+COUNTIF($A$2:A2,A2)-1 into the Formula Bar, then press the Enter key. Then the first ranking number is displayed in cell B2.

2. Select the cell B2, drag the fill handle down to the cell B11, then the unique ranking is finished.


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Ron · 3 months ago
    Formulas for unique ascending and descending are identical. Ascending should be: =RANK(A2,$A$2:$A$11,1)+COUNTIF(A2:$A$2,A2)-1.
  • To post as a guest, your comment is unpublished.
    vikas · 4 months ago
    if you see the below ranking, where the duplicate numbers found, number is missing.
    Exmples
    After 23 it goes to 25, after 29 it goes to 30, Formula miss the next number like - 24 & 29

    Score Rank
    4661 21
    4650 22
    4648 23
    4645 25
    4645 25
    4644 26
    4629 27
    4626 28
    4595 30
    4595 30
    4578 31
    4438 32
  • To post as a guest, your comment is unpublished.
    Musawir · 1 years ago
    Hi, This formula just ranks all numbers in ascending/descending order and doesn't combine the duplicates into one rank. How do I combine the ranking for duplicates, for example two duplicate 100s to be combined and both ranked as 1, 3 duplicate 90s to be combined and ranked as 2, 2 duplicate 80s ranked as 3, etc.? In your example of total 10 students I want a formula that will rank the two 100s as 1, rank the two 90s as 2, rank the two 80s as 3, etc. Please help. Thanks
    • To post as a guest, your comment is unpublished.
      Alex · 11 months ago
      if you do want this kind of ranking, what I would do is copy the whole list somewhere else, then use remove duplicates in the Data menu to leave only the individual values. rank these individual scores using a standard RANK formula and then use a simple VLOOKUP formula to return the value against the score in the full list.

      this will show the values the way you want above.
    • To post as a guest, your comment is unpublished.
      Alex · 11 months ago
      Why do you need to do this? a standard RANK formula will rank these examples as 1, 1, 3, 3, 5, 5. this is a much more usual way of ranking as if there are 2 first places the next in line would usually logically be 3rd not 2nd.
  • To post as a guest, your comment is unpublished.
    Jack · 2 years ago
    The formula doesn't seem to work sometimes, and I think it might be due to a rounding error. RANK and COUNTIF probably treat rounding differently. If I first use ROUND on the range I want to rank it seems to work.
    • To post as a guest, your comment is unpublished.
      Rio · 1 years ago
      This is absolutely key. I've often encountered an error where it would still randomly duplicate a few ranks using this method and could not for the life of me work out why, really frustrating, especially if you need a complete set of rankings for lookups elsewhere - overriding / typing simply not an option. Jack has nailed this. Round the range you want to rank (even if it's in a separate column so you don't affect the integrity of your data), problem solved. Thanks Jack!!
  • To post as a guest, your comment is unpublished.
    Monisha · 2 years ago
    Thank you so much! Love the solution.
  • To post as a guest, your comment is unpublished.
    Matt · 2 years ago
    This formula is stupid and only works if there is one duplicate !
    • To post as a guest, your comment is unpublished.
      crystal · 2 years ago
      Dear Matt,
      The formula works well in my case even though multiple duplicates exist in the column. Can you provide your Excel version?
  • To post as a guest, your comment is unpublished.
    jHAA lEE · 2 years ago
    YOUR FORMULA DOES NOT WORK
    • To post as a guest, your comment is unpublished.
      Pavel · 1 years ago
      It does - generally there can be two things which can cause it

      1) You did not freeze the links properly (F4) - check the dollar signs in the formula.
      2) it somehow doesn't work on numbers with multiple decimal points - ideall is to have the numbers rounded to some definite number (even decimal)

      If both of these things are well managed, it will work.
    • To post as a guest, your comment is unpublished.
      Iain · 2 years ago
      works for me.
  • To post as a guest, your comment is unpublished.
    Dave · 3 years ago
    Hello all, I have mastered the ranking but how do I get the ranking to auto calculate points eg 1st equals 100 points 2nd equals 50 etc
    • To post as a guest, your comment is unpublished.
      Tarang · 1 years ago
      Use Large function
  • To post as a guest, your comment is unpublished.
    Jete · 3 years ago
    Thank You, really appreciate the help. :D
  • To post as a guest, your comment is unpublished.
    kelly mort · 3 years ago
    Wow just loved this. Thanks a lot . Please say I am ranking a column then the duplicates come. If I wanna then use a criteria like the total to separate the tie what will be the function? Here I am using the min max to rank so when there is any number appearing more than once I want to separate them with the totals instead. Please help. Thanks.

    Kelly