Combining Rank and Unique

alibini

New Member
Joined
Mar 15, 2020
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Is there a way I can combine Rank and Unique to give me ranking of unique values from a column.

Tried this formula:

=RANK(U9,UNIQUE(FILTER($U$9:$U$18,U9:U18>0)))

but RANK doesn't seem to accept Unique as the range.
Thanks.

1720893008320.png
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Book1
ABCD
1absolute
2100010002
350045500451
410004554
54555003
60
7500
80
90
10500
Sheet1
Cell Formulas
RangeFormula
C2:D5C2=LET(z,A2:A10,r,UNIQUE(FILTER(z,z>0)),HSTACK(r,MATCH(r,SORT(r,,-1),0)))
Dynamic array formulas.
 
Upvote 0
How about
Excel Formula:
=LET(f,UNIQUE(FILTER(U9:U18,U9:U18>0)),XMATCH(U9,SORT(f,,-1)))
 
Upvote 0
Another:

Excel Formula:
=SUM(--(U9<UNIQUE(FILTER($U$9:$U$18,$U$9:$U$18<>0))))+1

Just FYI, RANK requires the second parameter to be a range, not an array. That's why it didn't work. Also, your profile shows you use Excel 2016, which doesn't have UNIQUE or FILTER. You might wish to update your profile.
 
Upvote 0
Another:

Excel Formula:
=SUM(--(U9<UNIQUE(FILTER($U$9:$U$18,$U$9:$U$18<>0))))+1

Just FYI, RANK requires the second parameter to be a range, not an array. That's why it didn't work. Also, your profile shows you use Excel 2016, which doesn't have UNIQUE or FILTER. You might wish to update your profile.
Thanks for the solution and profile updated.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top