colinheslop1984
Board Regular
- Joined
- Oct 14, 2016
- Messages
- 129
- Office Version
- 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?
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?
RANK | STORE | RANK LY | POSITIONS MOVED |
1 | ABC | 1 | 0 |
2 | DEF | 4 | 2 |
3 | GHI | 5 | 2 |
4 | JKL | 3 | -1 |
5 | MNO | 9 | 4 |