I have one table that is a list of parts that are going to be unavailable and I want to find replacements for each one of the parts. I made another table of potential replacement parts that I want to compare with the first table and find the best matching alternative.
To demonstrate my issue in a much smaller scale, I threw together the following:
The above table is a list of end of life parts I want to replace as well as their respective attributes. (Note, I did not look up this data, so forgive me if it's absurd)
Then the next table is a list of alternative products with the same attribute columns.
Is there a way in Excel to compare all the specs of each orange to the specs of each apple and select the most similar apple to each orange (and thus fill in the "Similar Apple" column on the orange table)? I do not need exact matches for any of the numbers, but I want to effectively score the data in each column of each apple for each orange and choose the apple with the highest score. Preferably with weighting so that some rows have more importance than others.
I'm not too familiar with VB but I'm open to using it if I need to. If Excel can't do this, is there an alternative route that anyone would recommend?
Most solutions I found online were rather simple VLOOKUP()
or INDEX()
formulas which would search for a specific value in a single column or search for part of a string rather than the closest number value in multiple columns.