issue with Rank formula with duplicate ranks

lokeshsu

Board Regular
Joined
Mar 11, 2010
Messages
178
Hi all,

i am using a rank formula to calculate the rank and i have multiple same values so i am using the below formula

Code:
=IF(COUNTIF($A4:K4,K4)=1,RANK(K4,$A4:$Y4,1),RANK(K4,$A4:$Y4,1)+COUNTIF($A4:K4,K4)+1)

it works for some data but not all any issue with the formula

thanks
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,396
Office Version
  1. 365
Platform
  1. MacOS
have a look here
Ranking Data In Lists

unique ranking
Acesnding
=COUNT($A$1:$A$5)-(RANK(A1,$A$1:$A$5)+COUNTIF($A$1:A1,A1)-1)+1

Descending
=RANK(A1,$A$1:$A$5,0)+COUNTIF($A$1:A1,A1)-1


 

lokeshsu

Board Regular
Joined
Mar 11, 2010
Messages
178
have a look here
Ranking Data In Lists

unique ranking
Acesnding
=COUNT($A$1:$A$5)-(RANK(A1,$A$1:$A$5)+COUNTIF($A$1:A1,A1)-1)+1
Descending
=RANK(A1,$A$1:$A$5,0)+COUNTIF($A$1:A1,A1)-1

Hi there Thanks for the reply but even this works for some data but not all it is showing duplicates in rank
 

konew1

Well-known Member
Joined
Oct 17, 2007
Messages
2,287
Hi all,

i am using a rank formula to calculate the rank and i have multiple same values so i am using the below formula

Code:
=IF(COUNTIF([COLOR="#FF0000"]$A4:K4[/COLOR],K4)=1,RANK(K4,$A4:$Y4,1),RANK(K4,$A4:$Y4,1)+COUNTIF($A4:K4,K4)+1)

it works for some data but not all any issue with the formula

thanks

Don't you mean A4:Y4
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Hi all,

i am using a rank formula to calculate the rank and i have multiple same values so i am using the below formula

Code:
=IF(COUNTIF($A4:K4,K4)=1,RANK(K4,$A4:$Y4,1),RANK(K4,$A4:$Y4,1)+COUNTIF($A4:K4,K4)+1)

it works for some data but not all any issue with the formula

thanks

Given:

364467

<colgroup><col style="width: 48pt;" span="6" width="64"> <tbody>
</tbody>

What are the the expected results?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,556
Messages
5,596,820
Members
414,104
Latest member
imamalidadashzada

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
Top