Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try it like this:
=VLOOKUP("*"&A1&"*",$D$1:$F$50,2,0) -- Biff Microsoft Excel MVP "Rob" wrote in message ... Hi, I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Brillant, works a treat. Thanks very much. Rob
"T. Valko" wrote in message ... Try it like this: =VLOOKUP("*"&A1&"*",$D$1:$F$50,2,0) -- Biff Microsoft Excel MVP "Rob" wrote in message ... Hi, I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's one more for ya!
=VLOOKUP(SUBSTITUTE(A1," ","*"),$A1:$B3,2,FALSE) HTH, Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Rob" wrote: Brillant, works a treat. Thanks very much. Rob "T. Valko" wrote in message ... Try it like this: =VLOOKUP("*"&A1&"*",$D$1:$F$50,2,0) -- Biff Microsoft Excel MVP "Rob" wrote in message ... Hi, I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob . |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Ryan, not quite what I wanted but a good example of using Substitute
to replace a space with *. Regards, Rob "ryguy7272" wrote in message ... Here's one more for ya! =VLOOKUP(SUBSTITUTE(A1," ","*"),$A1:$B3,2,FALSE) HTH, Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Rob" wrote: Brillant, works a treat. Thanks very much. Rob "T. Valko" wrote in message ... Try it like this: =VLOOKUP("*"&A1&"*",$D$1:$F$50,2,0) -- Biff Microsoft Excel MVP "Rob" wrote in message ... Hi, I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob . |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "Rob" wrote in message ... Brillant, works a treat. Thanks very much. Rob "T. Valko" wrote in message ... Try it like this: =VLOOKUP("*"&A1&"*",$D$1:$F$50,2,0) -- Biff Microsoft Excel MVP "Rob" wrote in message ... Hi, I'm looking up the contents of cell A1 against a list in D1:F50, however, cell A1 contains for example Z1234 whereas the list in D1:F50 has Z1234 - Mr R J Smith. I could insert an intermediate column and use =LEFT(D1,5) to extract the data to find a match on but this then effects other worksheets that link in. Is there a way to modify the belwo formula to achive my requirement. =VLOOKUP(A1,$D$1:$F$50,2,0) Thanks, Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing part of cell reference in INDEX - MATCH formula | Excel Worksheet Functions | |||
vlookup to find match only part of a text value | Excel Discussion (Misc queries) | |||
Search/Match/Find ANY part of string to ANY part of Cell Value | Excel Worksheet Functions | |||
use the result of match function as a part of row address | New Users to Excel | |||
If Match Part of Text Within Cell, Then Blank | Excel Worksheet Functions |