# Ranking Issue

#### easybpw

##### Active Member
Hello,

Thanks in advance for your help. I'm currently using this formula to rank a range of cells.

=IFERROR((RANK(AR3,\$AR\$3:\$AR\$1000)+COUNTIF(AR\$3:\$AR3,AR3)-1),"")

I had thought it was working like it should except I now see that when the data I'm ranking contains the same data it is ranking them the same. For example if in column AR the result is 16.7 and that's in multiple cells then the rank is the same. I need it to be the next number in the rank. So if 16.7 is ranked #100 then the first of these results would be #100 and the next would be #101 etc.

For some reason it looks like the formula is working like I want until I get further down the worksheet. I understand my example is going to be hard to understand and follow but it's the best I can explain. Is there a better formula that would return the results I need?

Thanks!

### Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

#### maras

##### New Member
Another method.
VBA Code:
``=IFERROR(MATCH(LARGE(\$AR\$3:\$AR\$1000-ROW(\$AR\$3:\$AR\$1000)/10^5,ROW(1:1)),\$AR\$3:\$AR\$1000-ROW(\$AR\$3:\$AR\$1000)/10^5,0),"")``

#### alz

##### Board Regular
How about wraping it again in countif? Not test yet!

=IFERROR(Countif((RANK(AR3,\$AR\$3:\$AR\$1000)+COUNTIF(AR\$3:\$AR3,AR3)-1),">1")+RANK(AR3,\$AR\$3:\$AR\$1000)+COUNTIF(AR\$3:\$AR3,AR3)-1),"")

#### JGordon11

##### Board Regular
Your formula looks like it should work and it works for me on test data. Check to see if the two 16.7s are actually equal.

So if AR100 looks like 16.7 and AR220 looks like 16.7 but they are ranked the same then enter "=AR100=AR220" without the quotes in an empty cell. It will return true if excel thinks they contain same value and false otherwise. If it returns FALSE then you may need to clean up your data using ROUND() or other methods.

Replies
1
Views
105
Replies
4
Views
75
Replies
5
Views
69
Replies
9
Views
117
Replies
5
Views
112

1,127,519
Messages
5,625,278
Members
416,086
Latest member
CaptainGD

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

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