I'm trying to combine two sheets using VLOOKUP but struggled as the columns weren't contiguous. I think the best way to do it is using IF to search each value individually. It all gets quite complicated because I am trying to use data from two sheets. One sheet already has calculations on it linking a Dealer Country to a Country Code.
Dealer Country Country Code Part Number Standard Discount
United Kingdom C_UK1 063286 ??
United Kingdom C_UK1 068614
United Kingdom C_UK1 062293
United Kingdom C_UK1 RHR33002
United Kingdom C_UK1 LMAC585
United Kingdom C_UK1 LMAC383
Saudi Arabia C_SF5 LMAC466
United Kingdom C_UK1 LMAC401
United Kingdom C_UK1 LGNN340
United Kingdom C_UK1 LMAC404-L
United Kingdom C_UK1 LMAC404-R
Italy C_GC2 LMAC404-C
United Kingdom C_UK1 LMAC383
United Kingdom C_UK1 LMAC497
United Kingdom C_UK1 LGEA340
United Kingdom C_UK1 LMAC348-L
Portugal C_GC1 LMAC348-R
United Kingdom C_UK1 LMAC348-C
United Kingdom C_UK1 LMAC383
United Kingdom C_UK1 LMAC497
This country code needs to link to another sheet which determines the standard discount given to that particular part in that country from another sheet that looks like this:
PART_NBR_Rev UK1 GC1 GC2 HL1 HL2 HL3 HL4 HL5 HL6 SF1 SF2 SF3 SF4 SF5 RP1 RP2 APAC SAM
062801 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
062803 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
062852 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
USAD004 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
LMAC421 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
062836 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
So the standard discount is dependant on the part number and country code and this needs to be transferred back to the other sheet.
Any ideas would be very much appreciated!
Dealer Country Country Code Part Number Standard Discount
United Kingdom C_UK1 063286 ??
United Kingdom C_UK1 068614
United Kingdom C_UK1 062293
United Kingdom C_UK1 RHR33002
United Kingdom C_UK1 LMAC585
United Kingdom C_UK1 LMAC383
Saudi Arabia C_SF5 LMAC466
United Kingdom C_UK1 LMAC401
United Kingdom C_UK1 LGNN340
United Kingdom C_UK1 LMAC404-L
United Kingdom C_UK1 LMAC404-R
Italy C_GC2 LMAC404-C
United Kingdom C_UK1 LMAC383
United Kingdom C_UK1 LMAC497
United Kingdom C_UK1 LGEA340
United Kingdom C_UK1 LMAC348-L
Portugal C_GC1 LMAC348-R
United Kingdom C_UK1 LMAC348-C
United Kingdom C_UK1 LMAC383
United Kingdom C_UK1 LMAC497
This country code needs to link to another sheet which determines the standard discount given to that particular part in that country from another sheet that looks like this:
PART_NBR_Rev UK1 GC1 GC2 HL1 HL2 HL3 HL4 HL5 HL6 SF1 SF2 SF3 SF4 SF5 RP1 RP2 APAC SAM
062801 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
062803 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
062852 25% 18% 18% 15% 15% 15% 15% 15% 15% 17% 20% 18% 0% 18% 20% 0% 20% 20%
USAD004 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
LMAC421 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
062836 36% 33% 33% 25% 25% 23% 23% 20% 25% 33% 23% 30% 0% 33% 20% 20%
So the standard discount is dependant on the part number and country code and this needs to be transferred back to the other sheet.
Any ideas would be very much appreciated!