Find exact match for text in column A within column B then..

Badger@work

New Member
Joined
May 12, 2003
Messages
3
I have a range of products (1000). Each has a product code comprising two alphanumeric and between 1 to 6 numeric as its describer string, eg NZ32 or FT359A. When the images were produced, the data was saved with a filename that included this code and also a description of the product, eg "NZ32 - small drilling tool.jpg".

I need to find a way of matching the product code to its requisite image, and where there is a match, return the image's filename to a separate column within excel so that I can see which products require images. I also want to use the result to CONCATENATE with a drive path so that I can quickly update my Web Page with the proper image file for each product.

I have imported the filenames as text already, I just need the formula to look at each row in column A, attempt to match the text within each cell in that column with the filename string column B and return the filename if there is a match to the same row in Column C, if there is no match, just move to the next product and return a "MISSING" remark.

Thanks for your help
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Re: Find exact match for text in column A within column B th

Why not post 5 rows of data and desired results?
 
Upvote 0
Re: Find exact match for text in column A within column B th

Hi and welcome to the board,

Enter the following formula in c1 and copy down to the last row:

=INDEX($B$1:$B$1000,MATCH(A1&"*",$B$1:$B$1000,0))

Correct for the exact size of the range.

You'll get #N/A for strings that have no match.

Eli
 
Upvote 0
Re: Find exact match for text in column A within column B th

You may use also "*"&A1&"*" in the formula to allow match of your string within the strings in column B :

=INDEX($B$1:$B$1000,MATCH("*"&A1&"*",$B$1:$B$1000,0))


Eli
 
Upvote 0
compare text in col a to col b then return full string to c

Thnaks for your help. I see that this will compare two columns and that is great...I think I am asking too much of the formulas within excel to find any match within the column AND THEN do this.

Look in A1 then compare with all in column B, if a match is found, RETURN the full contents of the cell with the string match to the Column C ON THE SAME ROW as the string that was matched from Column A.

Thanks again!
 
Upvote 0
Re: Find exact match for text in column A within column B th

i'm not sure if i'm understanding exactly what's going on, but if i am on the right track, try this. this will look in column B for a match to A1 and return what's adjacent to col B in col C...if nothing is found, it returns "MISSING".

=IF(ISERROR(VLOOKUP(A1,B1:C1000,2,FALSE))=TRUE,"MISSING",VLOOKUP(A1,B1:C1000,2,FALSE))
 
Upvote 0
Re: Find exact match for text in column A within column B th

Hmmm, seems to be some mutual confusion here. The following functions in Column C are variation of the 2nd response, note the difference in the return result in Column D, not sure how close your names can come to one another:

Does this help? Or am I not following...
 
Upvote 0
Re: Find exact match for text in column A within column B th

Thanks for everyone's help. I'm so impressed with the response. Special thanks to NateO who cut through the confusing description of the problem and pulled out the magic formula.

Job Done!

Thanks again
 
Upvote 0

Forum statistics

Threads
1,221,706
Messages
6,161,406
Members
451,702
Latest member
Kc3475

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top