Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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


You may interest in:

Combine multiple worksheets/workbooks into one worksheet / workbook:

Combine multiple worksheets or workbooks into one single worksheet or workbook may be a huge task in your daily work. But, if you have Kutools for Excel, its powerful utility – Combine can help you quickly combine multiple worksheets, workbooks into one worksheet or workbook.

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Read More      Download the free trial now


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.


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.
    Musawir · 5 months 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.
    Jack · 9 months 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 · 8 months 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 · 1 years ago
    Thank you so much! Love the solution.
  • To post as a guest, your comment is unpublished.
    Matt · 1 years ago
    This formula is stupid and only works if there is one duplicate !
    • To post as a guest, your comment is unpublished.
      crystal · 1 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 · 1 years ago
    YOUR FORMULA DOES NOT WORK
    • To post as a guest, your comment is unpublished.
      Pavel · 3 months 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 · 1 years ago
      works for me.