Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi All
Employee No.......................... Place 99440,994403,994404.............London 99442,994401,994405.............Manchester 994410..................................Leeds 994502..................................York In above example hpw to vlookup part of string? Each cell has multiple employee no. but i want to lookup single employee no and it should return place. e.g. If in above example if i vlookup "994403" then it should return London Can I do this? vlookup function returning appropriate value for '994410' & '994502' but not the rest!! I tried FIND, SEARCH functions but these to functions are for single cell and not for array... :(:( Thanks! |
#2
![]() |
|||
|
|||
![]()
Yes, you can use the VLOOKUP function to match a substring. Here's how:
That's it! You can now use this formula to look up any employee number in your table, even if it appears as part of a larger string.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
suppose col A has employee no. and col B has place,
In D1 has employee no & in E1 put this formula =INDEX(B1:B5,MATCH("*"&D1&"*",A1:A5,0),0) On Oct 23, 4:44*pm, Milind Keer wrote: Hi All Employee No.......................... Place 99440,994403,994404.............London 99442,994401,994405.............Manchester 994410..................................Leeds 994502..................................York In above example hpw to vlookup part of string? Each cell has multiple employee no. but i want to lookup single employee no and it should return place. e.g. If in above example if i vlookup "994403" then it should return London Can I do this? vlookup function returning appropriate value for '994410' & '994502' but not the rest!! I tried FIND, SEARCH functions but these to functions are for single cell and not for array... :(:( Thanks! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That is very good. With a little experimentation I have discovered that this
formula also works: =VLOOKUP("*" & D1 & "*",$A$1:$B$5,2,FALSE) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup retunrning a match, when not a match... | Excel Worksheet Functions | |||
vlookup retunrning a match, when not a match... | Excel Worksheet Functions | |||
vlookup retunrning a match, when not a match... | Excel Worksheet Functions | |||
index Match, or Vlookup Match.. | Excel Worksheet Functions | |||
Vlookup using a substring for evaluation? | Excel Worksheet Functions |