search for multiple text strings then return assigned value

DiLaflamme

New Member
Joined
Apr 18, 2014
Messages
4
Hello everyone. I am new to this, please bear with me. I hope I am phrasing my question well. Thanks for your help in advance!

I have a spreadsheet with hundreds of URLs, and buried somewhere in that URL is a product code. Convention is not the strong suit here, so the code can be anywhere in the URL string. I'm hoping to search for all of the project codes through the URLs, and if found, insert the product name.

Example:
URL
Product name
crzyurl.com/cms/type/core/s/865278/res/600x1024/text/uncompressed/ver/4.0.2/lang/en/fname/assets.zip
crzyurl.com/cms/type/core/pId/5/res/320x480/text/pvr/ver/1.0.39/lang/en/fname/320480_pvr.zip

<tbody>
</tbody>

On a seperate work sheet I have the product code mapping (hundreds of them):
Product ID
Product name
865278Product 1
320480
Product 2

<tbody>
</tbody>

I would like to search for all of the product IDs in the URLS. When it finds a match, insert the Product Name in the cell next to the URL.

Please tell me this is possible!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
try this

the two urls in A1 and A2, your product code-product name table in N1:O3

try in I1:

Code:
=LOOKUP(2,1/ISNUMBER(SEARCH($N$2:$N$3,A1)),$O$2:$O$3)

crzyurl.com/cms/type/core/s/865278/res/600x1024/text/uncompressed/ver/4.0.2/lang/en/fname/assets.zipProduct 1Product IDProduct name
crzyurl.com/cms/type/core/pId/5/res/320x480/text/pvr/ver/1.0.39/lang/en/fname/320480_pvr.zipProduct 2865278Product 1
320480Product 2

<tbody>
</tbody>
 
Upvote 0
Wow, thanks so much for a quick response!
No those values are not a match. The matches are:


Example:
URLProduct name
crzyurl.com/cms/type/core/s/865278/res/600x1024/text/uncompressed/ver/4.0.2/lang/en/fname/assets.zip
crzyurl.com/cms/type/core/pId/5/res/320x480/text/pvr/ver/1.0.39/lang/en/fname/320480_pvr.zip

<tbody>
</tbody>


On a seperate work sheet I have the product code mapping (hundreds of them):
Product ID
Product name
865278
Product 1
320480
Product 2

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,737
Messages
6,132,434
Members
449,727
Latest member
Aby2024

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