Hi all,
I can't seem to figure out how to make VLOOKUP or HLOOKUP work in this circumstance: to find a value and return a related value from the same array (a single row).
Example:
I want to write 3 separate formulas that find the highest quantity in a single row (which I have done via index match max), but also that pull the product code and location code which correspond with that highest quantity from the same row. So that I can add three columns to the end of the row with Best Product Code, Best Location, Best Quantity. In the above example, Best product code should be BANAN4, Best Location should be Aisle 3 and Best Quantity (which I've already figured out) should be 21.
Does anyone know if I'm on the right track using HLOOKUP and VLOOKUP or if I should be approaching this problem differently altogether?
I can't seem to figure out how to make VLOOKUP or HLOOKUP work in this circumstance: to find a value and return a related value from the same array (a single row).
Example:
Product Code1 | Location1 | Quantity1 | Product Code2 | Location2 | Quantity2 | Product Code3 | Location3 | Quantity3 | Product Code4 | Location4 | Quantity4 |
BANAN1 | Aisle 13 | 5 | BANAN2 | Aisle 10 | 10 | BANAN3 | Aisle 20 | 20 | BANAN4 | Aisle 3 | 21 |
I want to write 3 separate formulas that find the highest quantity in a single row (which I have done via index match max), but also that pull the product code and location code which correspond with that highest quantity from the same row. So that I can add three columns to the end of the row with Best Product Code, Best Location, Best Quantity. In the above example, Best product code should be BANAN4, Best Location should be Aisle 3 and Best Quantity (which I've already figured out) should be 21.
Does anyone know if I'm on the right track using HLOOKUP and VLOOKUP or if I should be approaching this problem differently altogether?