I'm trying to fuzzy match two columns in google sheets, i've tried numerous formulas but I think it's going to come down to a script to help out.
I have a column with product ID's e.g.
and then I have another sheet with another column which has image url's relating to this product code such as
What I'm wanting to do is "fuzzy" match both of these columns for their product ID, and then create a new column for each match. So it would have the product ID then on the same row in multiple columns each product image URL - like the image below:

Is there a way to do this in google sheets using a script or a formula?
In Google sheets there are a few powerful 'regex' formulas.
Suppose, you have ID list in column A, and URL list in column B

Then use formula:
=REGEXEXTRACT(B1,JOIN("|",$A$1:$A$3))
It will match one of ID's. Drag the formula down to see the result as in picture above.
See more info here
Old thread but, in case you find yourself here, search for my Google Sheets add-on called Flookup. It should do exactly what you want.
For this case, you can use this function:
FLOOKUP (lookup_value, table_array, lookup_col, index_num, threshold, [rank])
The parameter details are:
lookup_value: the value you're looking uptable_array: the table you want to searchlookup_col: the column you want to searchindex_num: the column you want data to be returned fromthreshold: the percentage similarity below which data should not be returnedrank: the nth best match (i.e. if the first one isn't to your liking)Please note that, whereas the OP appears to want the whole list of possible matches, Flookup will only return one result at a time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With