Partial String Match Using VLOOKUP

C

cdhmotes

I have a large dataset in which I need to find a list of partial strin
matches, and then return a value associated with each unique partia
string match.

Example
======

The dataset:

indallastexas
musicfan
bluechair
twentyminutesago

The lookup table:
LookupValue MasterValue
------------ ------------
dallas city
music noun
blue color
minutes time

Desired result:
indallastexas city
musicfan noun
bluechair color
twentyminutesago time

So for all occurences of the word "dallas", I need to return the valu
"city" in that row. My dataset is quite large, and I need to repea
this periodically so simply finding/replacing is not an option. I als
cannot parse the dataset in a way that will put all of my exact looku
values into a column. There are no character patterns in the data tha
vlookup can use, in other words everything is a string and the looku
values in the strings do not have consistent placement patterns in th
cells.

This seems like a vlookup with a partial match vs. exact match. An
ideas
 
B

Biff

Hi!

Dataset in the range A1:A4

Lookup table in the range F1:G4

Formula in B1 entered as an array using the key combo of CTRL,SHIFT,ENTER:

=INDEX(G$1:G$4,MATCH(TRUE,ISNUMBER(SEARCH(F$1:F$4,A1)),0))

Copy down as needed.

Biff
 
C

cdhmotes

Is it possible to make the above formula for string match case sensitiv
using the EXACT function
 
B

Bob Phillips

Try replacing SEARCH with FIND.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top