Hi
(I really hope Im explaining this sensibly...)
On sheet1 I have a list of part numbers, approx 20,000 rows long. Some of the Part numbers have a "W10" added to the end:
aqpPqd12 $25
aqpPqd14 $30
aqpSqd15 <blank cell>
aqpSqd15W10 $70
On sheet2 I have a shortened list of a few hundred part numbers, and I am using a basic VLOOKUP to pull the price for each part number =VLOOKUP(A2,Sheet1!A1:D19,2,FALSE). Some prices are blank and that's fine.
However, my lists on Sheet2 do not include the W10 options. Therefore my formula wouldnt pick up the price for aqpSqd15W10 from the list above because the formula is looking for aqpSqd15.
I need to write a formula that says if the result of the VLOOKUP is a blank cell (ISNA? ISERROR?) then do the VLOOKUP again but add "W10" to the code you're looking for. The result of that VLOOKUP could also be a blank cell, but that's fine.
Does anyone know a way I can deal with this? I have so many workbooks to process, a solution could save me days of manual editing.
Thanks
(I really hope Im explaining this sensibly...)
On sheet1 I have a list of part numbers, approx 20,000 rows long. Some of the Part numbers have a "W10" added to the end:
aqpPqd12 $25
aqpPqd14 $30
aqpSqd15 <blank cell>
aqpSqd15W10 $70
On sheet2 I have a shortened list of a few hundred part numbers, and I am using a basic VLOOKUP to pull the price for each part number =VLOOKUP(A2,Sheet1!A1:D19,2,FALSE). Some prices are blank and that's fine.
However, my lists on Sheet2 do not include the W10 options. Therefore my formula wouldnt pick up the price for aqpSqd15W10 from the list above because the formula is looking for aqpSqd15.
I need to write a formula that says if the result of the VLOOKUP is a blank cell (ISNA? ISERROR?) then do the VLOOKUP again but add "W10" to the code you're looking for. The result of that VLOOKUP could also be a blank cell, but that's fine.
Does anyone know a way I can deal with this? I have so many workbooks to process, a solution could save me days of manual editing.
Thanks