![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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! |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 45
|
The table will likely be 5 columns.
When the name is found, I want it to return the value one column over. |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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 |
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
[ This Message was edited by: Mark W. on 2002-04-19 13:29 ] |
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 45
|
Works Great!
You really are Da Man. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|