I am wondering if there is a workaround for a vlookup issue I am having.
I have a list of item codes, many of them contain an asterik.
Here is an example:
=vlookup(a2,d2:e3,2,)
Item...................FAMILY..........Sort 1 result...........Sort 2 result
1SV*S23BLS SVS 2,000 2,000
1SV*23BLS SVTC 2,000 5
Sort 1 order in dataset
Item Units
1SV*S23BLS 2,000
1SV*23BLS 5
Sort 2 order in dataset
Item Units
1SV*23BLS 2,000
1SV*S23BLS 5
Depending on the sort order of my data tab I get a different result for the vlookup (Knowing that vlookup finds the first matching value in a dataset and the asterik acts a a wild card)
In this instance I can sort product family descending and I get the correct result. In other cases the product family names may need to be sorted ascending to stop the odd result from happening. To keep resorting pieces of the data tab or write a new vlookup for each specific case takes time and is not a practical solution
Does anyone know of a good workaround for this. I hope my explanation is clear.
I have a list of item codes, many of them contain an asterik.
Here is an example:
=vlookup(a2,d2:e3,2,)
Item...................FAMILY..........Sort 1 result...........Sort 2 result
1SV*S23BLS SVS 2,000 2,000
1SV*23BLS SVTC 2,000 5
Sort 1 order in dataset
Item Units
1SV*S23BLS 2,000
1SV*23BLS 5
Sort 2 order in dataset
Item Units
1SV*23BLS 2,000
1SV*S23BLS 5
Depending on the sort order of my data tab I get a different result for the vlookup (Knowing that vlookup finds the first matching value in a dataset and the asterik acts a a wild card)
In this instance I can sort product family descending and I get the correct result. In other cases the product family names may need to be sorted ascending to stop the odd result from happening. To keep resorting pieces of the data tab or write a new vlookup for each specific case takes time and is not a practical solution
Does anyone know of a good workaround for this. I hope my explanation is clear.
Last edited: