Problem with Duplicates in Ranking

DPChristman

Board Regular
Joined
Sep 4, 2012
Messages
187
Office Version
  1. 365
Platform
  1. Windows
The short version: I am running into a problem with duplicates in Ranking.

Details:

I have a listing of about 160 clients listing the number of purchases each month from each.

These clients are ranked, using the formula = IFERROR (RANK (O3,O$3:O$161,0 )," " ) (spaces added to prevent formatting issues here). This Tab is called MONTHLY SUMMARY.

On another tab (RANKING) I have a list of numbers (1-25) in Column A

Using a vlookup formula = IFERROR ( VLOOKUP ( A2,'MONTHLY SUMMARY'!A:B,2,0 ) ,"NONE" ), I maintain a moving listing of what clients are ranked in the TOP 25 by purchases.

The problem is that due to non-unique numbers, I am missing rankings from 1-25. Example I have two clients with 112 for the YTD - They are both ranked at 14. As a result, there is no 15th ranked client.

This is over a 5 month period, and the odds are that by the end of the year there probably won't be a tie between companies in the top 25. However, that doesn't fix my problem now

I added the IFERROR,"NONE" piece to the vlookup to avoid the #N/A error, but I would prefer a clean ongoing listing of my top 25 clients. is there a way to do this?
 
Last edited:
Hi,

Change your RANK formula to this: =IFERROR (RANK(O3,$O$3:$O$161)+COUNTIF($O$3:O3,O3)-1," " ).
Enter it in O3 and copy down to O161

This will take care of the duplicates in your RANK.
You can leave the VLOOKUP intact.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,871
Messages
6,193,448
Members
453,800
Latest member
dmwass57

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