Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default vlookup and search combine in vba.

dear all, how to search without wildcard? i mean if both side also
need to search? first level the item can be matched easily the problem
is the second level which is the desc. u see, even same item but have
different desc, rite? that is why i do not know how to search for
second level but at least minimise the search as first level item
already found.




VLOOKUP accepts wildcards. To search for plate anywhere in the cell

VLOOKUP("*plate*",TheRange,2,0)


On 27 Oct 2004 16:39:59 -0700, (tango) wrote:

dear all, may i know how to perform two times vlookup in vba? the
first column in datasheet can directly map to master table item

column
if found then continue vlookup master table desc column from second
column in datasheet. but second vlookup a bit tricky as it is a
sentence. how to find the correct word first, in this case plate,

head
before the vlookup. if found in both datasheet and master table then
it is found.

pls help. thanks

datasheet
item desc
20k1 this is plate (search the word plate)
20k1 this is head (search the word head)
master table
item desc amount
20k1 plate table (and try to lookup here, if found plate then
return value)
20k1 head table 456
20k3 apple table 379
20k5 orange table 23
20k5 lion table 17

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default vlookup and search combine in vba.

I guess I don't understand what you mean WRT "both side also need to search".
Sorry.

On 27 Oct 2004 19:26:22 -0700, (tango) wrote:

dear all, how to search without wildcard? i mean if both side also
need to search? first level the item can be matched easily the problem
is the second level which is the desc. u see, even same item but have
different desc, rite? that is why i do not know how to search for
second level but at least minimise the search as first level item
already found.




VLOOKUP accepts wildcards. To search for plate anywhere in the cell

VLOOKUP("*plate*",TheRange,2,0)


On 27 Oct 2004 16:39:59 -0700,
(tango) wrote:

dear all, may i know how to perform two times vlookup in vba? the
first column in datasheet can directly map to master table item

column
if found then continue vlookup master table desc column from second
column in datasheet. but second vlookup a bit tricky as it is a
sentence. how to find the correct word first, in this case plate,

head
before the vlookup. if found in both datasheet and master table then
it is found.

pls help. thanks

datasheet
item desc
20k1 this is plate (search the word plate)
20k1 this is head (search the word head)
master table
item desc amount
20k1 plate table (and try to lookup here, if found plate then
return value)
20k1 head table 456
20k3 apple table 379
20k5 orange table 23
20k5 lion table 17


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
Combine: ISNUMBER(SEARCH( and EXACT( ? nastech Excel Discussion (Misc queries) 5 May 9th 23 03:42 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Is it possible to combine MATCH & IF to search an excel sheet Callan Excel Worksheet Functions 1 October 28th 05 01:45 PM
vlookup and search combine in vba. tango Excel Programming 1 October 28th 04 12:45 AM
Combine VLookup and MAX ? Ayato[_2_] Excel Programming 4 January 21st 04 05:58 PM


All times are GMT +1. The time now is 09:07 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"