Multiple VLOOKUPS and Ranks within a dataset?

Roghaltz

New Member
Joined
Nov 26, 2015
Messages
26
Hi All,
Thanks again for your previous help on RANKIf without arrays. I am still working with the same basic model and had a new question. I currently have the first four columns of the table below. I am looking to create SalesmanInOrder which is simply a list of the salesman for a product in order from largest to smallest (i.e. in the example below a3 is the top apple salesman so he goes at the top of the apple list, followed by a1, then a2. I suspect this involves INDEX and/or MATCH, but I can't seem to make it work. As before, all the Apples salesman are together in the dataset, followed by all the Bananas, etc. Each product can have between 6 and 12 rows. I tried a VLOOKUP, but am unsure how to specify the first and last row for the lookup.

Thanks in advance.

SalesmanProductPredOutPutSalesRankSalesmanInOrder
a1Apples5.12a3
a2Apples4.73a1
a3Apples8.31a2
b1Bananas7.32b3
b2Bananas6.33b1
b3Bananas9.51b2

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I'm not sure what you have used for the SalesRank column but I presume it needs to allow for equal values so I have included a suggestion here in case your current formula does not do that.

Excel Workbook
ABCDE
1SalesmanProductPredOutPutSalesRankSalesmanInOrder
2a1Apples5.12a3
3a2Apples4.73a1
4a3Apples8.31a2
5b1Bananas7.32b3
6b2Bananas6.33b1
7b3Bananas9.51b2
8aPears65d
9bPears72b
10cPears73c
11dPears81e
12ePears74a
13fPears26f
Order
 
Upvote 0
That worked perfectly! Thank you very much. It would have taken me forever to figure it all out.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,797
Members
449,048
Latest member
greyangel23

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