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
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
5,641
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,288
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,210
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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,785
Messages
5,833,690
Members
430,222
Latest member
Nickkarl

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