Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex
 
Posts: n/a
Default vlookup & wildcards

The following are columns in worksheetA:

TrkCase Order
iou9876y7
p0987ewuu


The following are column in worksheetB:

CaseNo Order
987 Apples
7ewuu Pears


In Worksheet A I need a formula (Orders column) that will look to see if any
CaseNo in WorksheetB matches the TrkCase in worksheetA and if it does, put
the cooresponding Order number from worksheetB in the Orders column in
worksheetA.

I'm using VLookup(A2,worksheetBA2:B2,2,False), which works fine if I don't
use wildcards, but how can I look for CaseNo anywhere inside TrkCase? Seems
like I should be using wildcards, but was having no luck. Thanks for your
help.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Yes you can use wildcard in a vlookup, but does it really matters, it will
only pick up the first occurrence of a match


=VLOOKUP("*"&D1&"*",Table,2,0)

use wildcards as an example


Regards,

Peo Sjoblom


"Alex" wrote:

The following are columns in worksheetA:

TrkCase Order
iou9876y7
p0987ewuu


The following are column in worksheetB:

CaseNo Order
987 Apples
7ewuu Pears


In Worksheet A I need a formula (Orders column) that will look to see if any
CaseNo in WorksheetB matches the TrkCase in worksheetA and if it does, put
the cooresponding Order number from worksheetB in the Orders column in
worksheetA.

I'm using VLookup(A2,worksheetBA2:B2,2,False), which works fine if I don't
use wildcards, but how can I look for CaseNo anywhere inside TrkCase? Seems
like I should be using wildcards, but was having no luck. Thanks for your
help.

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

I might add that autofilter would probably be a good fit for something like
this


Regards,

Peo Sjoblom

"Peo Sjoblom" wrote:

Yes you can use wildcard in a vlookup, but does it really matters, it will
only pick up the first occurrence of a match


=VLOOKUP("*"&D1&"*",Table,2,0)

use wildcards as an example


Regards,

Peo Sjoblom


"Alex" wrote:

The following are columns in worksheetA:

TrkCase Order
iou9876y7
p0987ewuu


The following are column in worksheetB:

CaseNo Order
987 Apples
7ewuu Pears


In Worksheet A I need a formula (Orders column) that will look to see if any
CaseNo in WorksheetB matches the TrkCase in worksheetA and if it does, put
the cooresponding Order number from worksheetB in the Orders column in
worksheetA.

I'm using VLookup(A2,worksheetBA2:B2,2,False), which works fine if I don't
use wildcards, but how can I look for CaseNo anywhere inside TrkCase? Seems
like I should be using wildcards, but was having no luck. Thanks for your
help.

  #4   Report Post  
Alex
 
Posts: n/a
Default

This isn't working, because I think the wildcards really needs to be around
the Table (somehow). I'm really looking up to see if part of TrkCase is any
field in CaseNo.


"Peo Sjoblom" wrote:

Yes you can use wildcard in a vlookup, but does it really matters, it will
only pick up the first occurrence of a match


=VLOOKUP("*"&D1&"*",Table,2,0)

use wildcards as an example


Regards,

Peo Sjoblom


"Alex" wrote:

The following are columns in worksheetA:

TrkCase Order
iou9876y7
p0987ewuu


The following are column in worksheetB:

CaseNo Order
987 Apples
7ewuu Pears


In Worksheet A I need a formula (Orders column) that will look to see if any
CaseNo in WorksheetB matches the TrkCase in worksheetA and if it does, put
the cooresponding Order number from worksheetB in the Orders column in
worksheetA.

I'm using VLookup(A2,worksheetBA2:B2,2,False), which works fine if I don't
use wildcards, but how can I look for CaseNo anywhere inside TrkCase? Seems
like I should be using wildcards, but was having no luck. Thanks for your
help.

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
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 11:39 AM.

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

About Us

"It's about Microsoft Excel"