Look up part of a name in a list of names.

chadm

New Member
Joined
Apr 14, 2002
Messages
45
I have a list of names:

a. jones
b. smith
r. adams

I want to look up these names in a table.

The names in the table are:

adam jones
brian smith
robert adams.

How can I do this? Should I use wild cards?

Thanks for any suggestions!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
On 2002-04-19 12:42, chadm wrote:
I have a list of names:

a. jones
b. smith
r. adams

I want to look up these names in a table.

The names in the table are:

adam jones
brian smith
robert adams.

How can I do this? Should I use wild cards?

Thanks for any suggestions!

Is the table a 1- or 2-column table? And, what do you want to return when "a. jones" is found in the table?
 
Upvote 0
The table will likely be 5 columns.

When the name is found, I want it to return the value one column over.
 
Upvote 0
On 2002-04-19 13:01, chadm wrote:
The table will likely be 5 columns.

When the name is found, I want it to return the value one column over.

Apparently, "adam jones" in a single cell in the first column of your 5 column table. And your lookup values consist of an initial followed by a dot followed by a last name.

If so, supposing that your table is in B2:F100, insert a new column after next to column B.

In C2 enter and copy down as far as needed:

=LEFT(B2)&". "&RIGHT(B2,LEN(B2)-SEARCH(" ",B2))

Now you can use a straight VLOOKUP, for example:

=VLOOKUP(A1,C2:F100,2,0)

Aladin
 
Upvote 0
On 2002-04-19 13:01, chadm wrote:
The table will likely be 5 columns.

When the name is found, I want it to return the value one column over.

=INDEX(table_range,MATCH(SUBSTITUTE(A1,". ","*"),INDEX(table_range,0,1),0),column_num)
This message was edited by Mark W. on 2002-04-19 13:29
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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