How to rank duplicate without skipping numbers in Excel?

In general, when we rank a list with duplicates, some numbers will be skipped as below screenshot 1 shown, but in some cases, we just want to rank with unique numbers or rank duplicate with same number without skipping the numbers as screenshot 2 shown. Do you have any tricks on solving this task in Excel?

doc rank duplicate without skip 1 doc rank duplicate without skip 2


Rank duplicate without skipping numbers


arrow blue right bubble Rank duplicate without skipping numbers

If you want to rank all data with unique numbers, select a blank cell next to the data, C2, type this formula =RANK(A2,$A$2:$A$14,1)+COUNTIF($A$2:A2,A2)-1, and drag auto fill handle down to apply this formula to the cells. See screenshot:
doc rank duplicate without skip 5

If you want to rank duplicates with same numbers, you can apply this formula =SUM(IF(A2>$A$2:$A$14,1/COUNTIF($A$2:$A$14,$A$2:$A$14)))+1 in the next cell of the data, press Shift + Ctrl + Enter keys together, and drag auto fill handle down. See screenshot:
doc rank duplicate without skip 4

Tip.If you want to quickly select and highlit the duplicates or unique values, please try to use the Kutools for Excel’s Select Duplicate & Unique Cells utility as shown in the following screenshot. It’s full function without limitation in 30 days, please download and have a free trial now.

doc highlight duplicate across columns 6

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.
    Katrina · 1 years ago
    This is showing the rank in ascending order. Can I get it to show in descending order?
  • To post as a guest, your comment is unpublished.
    misterphilipj@gmail.com · 1 years ago
    This formula will allow ties and not skip in ranks when scoring see cell F35 for the example
    https://docs.google.com/spreadsheets/d/1Y1AHRn-bRnVex-tFwbPV9bN4t46usrFAvRPsUPUn6i4/edit?usp=sharing


    =SUMPRODUCT((DD34<$F34:$DT34)/COUNTIF($F34:$DT34,$F34:$DT34))+1
  • To post as a guest, your comment is unpublished.
    mribbon9 · 1 years ago
    =RANK(A2,$A$2:$A$14,1)+COUNTIF($A2:A$3,A2)-1 This formula has a problem:

    If the 3 first records are the same number the formula will generate a duplicate ranking for the Record #1 and Record #3 .

    Example: 10 , 10, 10, 21, 4, 9 the ranking generated will be 3, 2, 3, 1, 6, 5 Ranking # is generated twice
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Dear Miguel, thanks for your pointing out mistake, I have updated the tutorial, you can try this formula =RANK(A2,$A$2:$A$14,1)+COUNTIF($A$2:A2,A2)-1
  • To post as a guest, your comment is unpublished.
    Joe Dirt · 1 years ago
    It's a very nice example, but you inverted the ranking in the end... in the original rank (19) was the highest value and had a rank of 1. In your pair of formulas it made (10), which is actually the lowest number in the set rank 1.

    How do you adjust the formula so (19) stays with a rank of 1?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Hello, Joe Dirt, I do not get your problem clearly, could you give me more details?
  • To post as a guest, your comment is unpublished.
    Me · 2 years ago
    Thank You.
  • To post as a guest, your comment is unpublished.
    Raz · 2 years ago
    The formula works if have to rank up to 100. From 100 skips to 102.
  • To post as a guest, your comment is unpublished.
    Chris · 2 years ago
    Thank you for the formula. How do you keep it staying at zero when you don't type anything yet.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Do you mean keep blank cells display zero in general or when you count numbers?
  • To post as a guest, your comment is unpublished.
    Bob · 2 years ago
    Thank you very much for sharing how to rank using consecutive numbers! It was just what I was looking for. Very counter-intuitive for sure, and I've written a few formulas that make your head hurt. This one made MY head hurt! :)