# issue with Rank formula with duplicate ranks

#### lokeshsu

##### Board Regular
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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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

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

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

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:

 3 6 4 4 6 7

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

What are the the expected results?

Replies
1
Views
123
Replies
14
Views
216
Replies
25
Views
1K
Replies
6
Views
124
Replies
5
Views
303

1,214,751
Messages
6,121,315
Members
449,025
Latest member
mikeloz11

### 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.

### Which adblocker are you using?

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

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