Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi there-
I'm trying to do a vlookup and trying to find a text string that is not an exact match. For example, my current formula is: =VLOOKUP("laptop*", $B:$C,2,FALSE) and if it matches any text with "laptop", e.g. "Sony laptop" in it, it returns the second column corresponding cell. Also, intead of writing out the text "laptop" I want to reference a cell where the text is. So I want to do something like: =VLOOKUP(D1*, $B:$C,2,FALSE) But I get an error warning. Can anyone shed some light? Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=VLOOKUP("*"&D1&"*",$B:$C,2,FALSE) HTH, Elkar "my" wrote: Hi there- I'm trying to do a vlookup and trying to find a text string that is not an exact match. For example, my current formula is: =VLOOKUP("laptop*", $B:$C,2,FALSE) and if it matches any text with "laptop", e.g. "Sony laptop" in it, it returns the second column corresponding cell. Also, intead of writing out the text "laptop" I want to reference a cell where the text is. So I want to do something like: =VLOOKUP(D1*, $B:$C,2,FALSE) But I get an error warning. Can anyone shed some light? Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It works and kind of not works... If the text I'm looking up is something
like "laptop 2.0", it doesn't work if the range I'm looking in has "Sony laptop 2.1", does it? "Elkar" wrote: Try this: =VLOOKUP("*"&D1&"*",$B:$C,2,FALSE) HTH, Elkar "my" wrote: Hi there- I'm trying to do a vlookup and trying to find a text string that is not an exact match. For example, my current formula is: =VLOOKUP("laptop*", $B:$C,2,FALSE) and if it matches any text with "laptop", e.g. "Sony laptop" in it, it returns the second column corresponding cell. Also, intead of writing out the text "laptop" I want to reference a cell where the text is. So I want to do something like: =VLOOKUP(D1*, $B:$C,2,FALSE) But I get an error warning. Can anyone shed some light? Thanks! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
No, that wouldn't work. But, rather than trying to alter the formula, maybe
you should just be less specific in your search criteria. For example, if you want "Sony Laptop 2.1" to be a match, try searching for "Laptop 2." instead. HTH, Elkar "my" wrote: It works and kind of not works... If the text I'm looking up is something like "laptop 2.0", it doesn't work if the range I'm looking in has "Sony laptop 2.1", does it? "Elkar" wrote: Try this: =VLOOKUP("*"&D1&"*",$B:$C,2,FALSE) HTH, Elkar "my" wrote: Hi there- I'm trying to do a vlookup and trying to find a text string that is not an exact match. For example, my current formula is: =VLOOKUP("laptop*", $B:$C,2,FALSE) and if it matches any text with "laptop", e.g. "Sony laptop" in it, it returns the second column corresponding cell. Also, intead of writing out the text "laptop" I want to reference a cell where the text is. So I want to do something like: =VLOOKUP(D1*, $B:$C,2,FALSE) But I get an error warning. Can anyone shed some light? Thanks! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Jul 20, 7:54 pm, Elkar wrote:
No, that wouldn't work. But, rather than trying to alter the formula, maybe you should just be less specific in your search criteria. For example, if you want "Sony Laptop 2.1" to be a match, try searching for "Laptop 2." instead. HTH, Elkar "my" wrote: It works and kind of not works... If the text I'm looking up is something like "laptop 2.0", it doesn't work if the range I'm looking in has "Sony laptop 2.1", does it? "Elkar" wrote: Try this: =VLOOKUP("*"&D1&"*",$B:$C,2,FALSE) HTH, Elkar "my" wrote: Hi there- I'm trying to do a vlookup and trying to find a text string that is not an exact match. For example, my current formula is: =VLOOKUP("laptop*", $B:$C,2,FALSE) and if it matches any text with "laptop", e.g. "Sony laptop" in it, it returns the second column corresponding cell. Also, intead of writing out the text "laptop" I want to reference a cell where the text is. So I want to do something like: =VLOOKUP(D1*, $B:$C,2,FALSE) But I get an error warning. Can anyone shed some light? Thanks!- Hide quoted text - - Show quoted text - Super tip - Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup - Not Exact Match | Excel Worksheet Functions | |||
Using Exact() with VLookup or Match | Excel Worksheet Functions | |||
finding exact matches using vlookup | Excel Worksheet Functions | |||
vlookup more than one exact match | Excel Worksheet Functions | |||
using vlookup to find exact match | Excel Discussion (Misc queries) |