Conditional Rank without duplicates

alibini

New Member
Joined
Mar 15, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi Excel friends,

Looking to solve this problem without using an array formula:

namevalueConditional Rank (formula required to solve for this column)
a21
a21
a73
a52
a52
a154
b153
b153
b174
b21
b112

Basically I want a formula to give me Conditional Rank of value based on name without duplicates

The best i can come up with is =SUMPRODUCT(($A$2:$A$12=A2)*(B2>=$B$2:$B$12)/COUNTIFS($B$2:$B$12,$B$2:$B$12))
The values it returns are in order but not integers. I'm stumped on this one.
Even better would be a formula that could allow me to use columns rather than ranges, and accommodate blanks.

Thanks Excel friends
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi & welcome to MrExcel.
How about
+Fluff.xlsm
ABC
1namevalueConditional Rank
2a21
3a22
4a75
5a53
6a54
7a156
8b153
9b154
10b175
11b21
12b112
Import
Cell Formulas
RangeFormula
C2:C12C2=COUNTIFS(A:A,A2,B:B,"<"&B2)+COUNTIFS(A$2:A2,A2,B$2:B2,B2)
 
Upvote 0
Thanks Fluff, your formula counts all the values. I'm trying to not double count ties, so where I have say 4 unique values within say 6 entries for a name, I want the ranking to count same numbers with the same rank, so that the highest rank is 4. Apologies if I wasn't clear.
 
Upvote 0
Unfortunately I don't know how to do that. Hopefully someone else will step in.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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