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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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