Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
my my is offline
external usenet poster
 
Posts: 12
Default vlookup and finding text string that's not an exact match

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default vlookup and finding text string that's not an exact match

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   Report Post  
Posted to microsoft.public.excel.misc
my my is offline
external usenet poster
 
Posts: 12
Default vlookup and finding text string that's not an exact match

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default vlookup and finding text string that's not an exact match

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default vlookup and finding text string that's not an exact match

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup - Not Exact Match vmagal1 Excel Worksheet Functions 2 May 11th 07 05:39 PM
Using Exact() with VLookup or Match mikelee101 Excel Worksheet Functions 6 March 15th 07 06:59 PM
finding exact matches using vlookup Ekazakoff Excel Worksheet Functions 9 July 29th 06 03:24 PM
vlookup more than one exact match Russ B Excel Worksheet Functions 6 July 25th 05 09:24 PM
using vlookup to find exact match Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 3 March 25th 05 03:03 AM


All times are GMT +1. The time now is 05:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"