using a ranking formula

dis622

Board Regular
Joined
Apr 7, 2005
Messages
51
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?


Thank you for your help.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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)
 
Upvote 0
oops

maybe even

=RANK(Q2,$Q$2:$Q$9)+COUNTIF(Q$2:Q2,Q2)
 
Upvote 0
Try...

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

Hope this helps!
 
Upvote 0
Note that -1 is needed at the end of the formula. Otherwise the formula will return incorrect results.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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
Back
Top