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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,791
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
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)
 

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,791
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
oops

maybe even

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

dis622

Board Regular
Joined
Apr 7, 2005
Messages
51
Yes you are right, there was a mistake, thank you for helping out.
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,705
Note that -1 is needed at the end of the formula. Otherwise the formula will return incorrect results.
 

Forum statistics

Threads
1,137,193
Messages
5,680,082
Members
419,879
Latest member
jzl

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
Top