I'm trying to set up a vlookup formula, or any kind of formula, that works for bringing back the highest value from a data set, as well as the corresponding cell adjacent to the highest value. To give full context, I'm trying to create a sheet for our warehouse to use as a replenishment tool. The logic is: scan in a product SKU, have the file look up against an overstock inventory listing, provide the user with the overstock location and the quantity for that location. The quantity needs to be the highest quantity in the data set and the location needs to be the corresponding location for that value.
Here is the starting point. Right now I just have a basic vlookup against the second data set. As it sits now, it's already bringing back the correct information, but that's only because the highest value is at the top of the list. So I need to make sure that I bring back the highest value in column D, and the pallet location with the highest value in column C.
Any help would be greatly appreciated.
Here is the starting point. Right now I just have a basic vlookup against the second data set. As it sits now, it's already bringing back the correct information, but that's only because the highest value is at the top of the list. So I need to make sure that I bring back the highest value in column D, and the pallet location with the highest value in column C.
Any help would be greatly appreciated.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | SKU | QTY Needed | UPSTOCK Pallet | Pallet QTY | ||
2 | 03125-WANAV-L | 5 | 3A3F2 | 17 | ||
3 | 03125-WANAV-M | 2 | 2B2G2 | 3 | ||
4 | 03125-WANAV-XL | 5 | 3A3F2 | 2 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C4 | C2 | =VLOOKUP(A2,Sheet2!$A$1:$C$11,2,FALSE) |
D2:D4 | D2 | =VLOOKUP(A2,Sheet2!$A$1:$C$11,3,FALSE) |
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | SKU | Overstock Pallet | Quantity | ||
2 | 03125-WANAV-L | 3A3F2 | 17 | ||
3 | 03125-WANAV-L | 3A3G1 | 7 | ||
4 | 03125-WANAV-L | 2B2G2 | 1 | ||
5 | 03125-WANAV-M | 2B2G2 | 3 | ||
6 | 03125-WANAV-M | 3A9G2 | 3 | ||
7 | 03125-WANAV-M | 1B1F2 | 1 | ||
8 | 03125-WANAV-XL | 3A3F2 | 2 | ||
9 | 03125-WANAV-XL | 3A3G1 | 18 | ||
10 | 03125-WANAV-XL | 1B1F2 | 2 | ||
11 | 03125-WANAV-XS | 4B10G1 | 10 | ||
Sheet2 |