Formula that receives array as input and gives ranking as output

ORoxo

Board Regular
Joined
Oct 30, 2016
Messages
147
[FONT=&quot]Hello, everyone,[/FONT]
[FONT=&quot]I'm looking for a formula which when inserted in a SINGLE cell would return {1,2,3,4,5,6} for the array below


[/FONT]

55
45
32
21
21
21

<tbody>
</tbody>

[FONT=&quot]I tried the formula below, but it doesn't deal well with duplicates:[/FONT]
[FONT=&quot]
[/FONT]

=rank(A2:A7,A2:A7)

Thanks!

Kind regards,
ORoxo
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

StephenCrump

Well-known Member
Joined
Sep 18, 2013
Messages
3,806
Office Version
  1. 365
Platform
  1. Windows
Perhaps:

=RANK.EQ(A2:A7,A2:A7)+COUNTIF((INDIRECT(ADDRESS(ROW(A2),COLUMN(A2))&":"&ADDRESS(ROW(INDIRECT(ROW(A2)&":"&ROW(A2)+ROWS(A2:A7)-1)),COLUMN(A2)))),A2:A7)-1
 

Watch MrExcel Video

Forum statistics

Threads
1,109,368
Messages
5,528,272
Members
409,813
Latest member
robyrux

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top