VLookup without duplicates

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
Hello

I have a range of data set out in a table like below

I want to rank rank the stores using positions moved. Sorting the data by that column and expanding the selection doesn't seem to be working properly no matter what I try. So, I have done the following:

=SUM(LARGE(D$25:D$82,A84)) to order the data based on numbers highest to lowest for positions moved.

Then I thought I could do =VLOOKUP(D84,CHOOSE({1,2},D$25:D$82,B$25:B$82),2,0) to look up the name of the store using the positions moved as the criteria.

The problem is that some stores might have moved the same number of positions, therefore the lookup duplicates a store name.

How do I get around this?

RANKSTORERANK LYPOSITIONS MOVED
1ABC10
2DEF42
3GHI52
4JKL3-1
5MNO94
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I couldn't quite match this formula to your sheet, since your example doesn't have the row/column headers on it. But you should be able to adapt this formula to work on your sheet:

Book1
ABCDEFGH
1RANKSTORERANK LYPOSITIONS MOVEDPositions MovedStore
21ABC104MNO
32DEF42-1JKL
43GHI522DEF
54JKL3-12GHI
65MNO940ABC
Sheet3
Cell Formulas
RangeFormula
H2:H6H2=INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$6)/($D$2:$D$6=G2),COUNTIF($G$2:$G2,G2)))
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
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