# using a ranking formula

#### dis622

##### Board Regular
Hi again

Need help

Using this formula =RANK(Q2,\$Q\$2:\$Q\$9)+COUNTIF(O\$1:O1,Q2) to rank the 8 result. It work all good. Except when there is more than one sale that are the same.

So for example if the 8 results are different I get ranking from 1 to 8 but if there is one or more of the same result, I will have two number the same.

Like maybe two number one. Here there a way to fix this?

### Excel Facts

If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
perhaps there is a slight mistake in your formula

=RANK(Q2,\$Q\$2:\$Q\$9)+COUNTIF(O\$1:O1,Q2)

try

=RANK(Q2,\$Q\$2:\$Q\$9)+COUNTIF(Q\$1:Q1,Q2)

oops

maybe even

=RANK(Q2,\$Q\$2:\$Q\$9)+COUNTIF(Q\$2:Q2,Q2)

Try...

=RANK(Q2,\$Q\$2:\$Q\$9)+COUNTIF(\$Q\$2:Q2,Q2)-1

Hope this helps!

Yes you are right, there was a mistake, thank you for helping out.

Note that -1 is needed at the end of the formula. Otherwise the formula will return incorrect results.

Replies
2
Views
293
Replies
4
Views
348
Replies
1
Views
207
Replies
1
Views
251
Replies
14
Views
980

1,220,009
Messages
6,151,437
Members
451,028
Latest member
greekness1

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