Partial Text Match Lookup

Randy_S_84

New Member
Joined
Nov 8, 2017
Messages
2
I am normally able to solve these issues with some help from Google, but can't seem to find an answer for this problem. Any help would be appreciated.

On one sheet I have a large amount of data containing a string of website URLs. Unfortunately the formatting of the URLs varies. On another sheet I have a list of properly formatted URLs and a name associated with the specific URL. Basically I want a formula in each cell of column B to search (C) using the unique page identifier (e.g. page1) in (A) to find the partial match and insert the corresponding name (D). I have tried to also use a reference column (E) to help the look-up, but haven't had much luck. I am unable to remove characters from either side of the URL because of the many variations. Below is an example (combined into 1 sheet for simplicity):

ABCDE
1URLsFormula ColumnReference URLsReference NameReference Column?
2www.site.com/page1www.site.com/page1Page 1page1
3site.com/page1www.site.com/page2Page 2page2
4http://www.site.com/page1/examplewww.site.com/page3Page 3page3
5www.site.com/page2
6https://site.com/page2
7www.site.com/page3/example

<tbody>
</tbody>

To over-explain, the formula in B2 would use the data in A2 to search C:C (or E:E) and insert the corresponding name from D:D, and so on for the rest of column B.

If there is a way (may include multiple steps) to do this please help.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the board.

Try this in B2:

Code:
 =INDEX($E$2:$E$4,MATCH(TRUE,ISNUMBER(FIND($E$2:$E$4,A2)),0))

Note that this is an array formula and must be confirmed with CTRL+SHIFT+ENTER instead of just ENTER. Doing so correctly will result in Excel putting { }s around your formula in the formula bar.
 
Upvote 0

Forum statistics

Threads
1,217,391
Messages
6,136,321
Members
450,005
Latest member
BigPaws

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