Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 85
Default lookup between two worksheets not working well

I have 1 workbook that has two worksheets, I'm using Excel 2003. The cell in
the first worksheet has a # that I want to lookup in the 2nd worksheet to see
if it exists. the problem is the cell in the table_array may contain more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA". I
don't know what I'm doing wrong, was wondering if there is some help out
there.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default lookup between two worksheets not working well

try this

=MATCH(A1,FIND(A1,Sheet2!A1:A20,1))0

Array entered with Ctrl+Shift+Enter
will return true if it finds a string containing the number

Mike

"Angela" wrote:

I have 1 workbook that has two worksheets, I'm using Excel 2003. The cell in
the first worksheet has a # that I want to lookup in the 2nd worksheet to see
if it exists. the problem is the cell in the table_array may contain more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA". I
don't know what I'm doing wrong, was wondering if there is some help out
there.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default lookup between two worksheets not working well

You can use wildcards in VLOOKUP:

A1 = 123456

=VLOOKUP("*"&A1&"*",table_array,col_index_num,rang e_lookup)


--
Biff
Microsoft Excel MVP


"Angela" wrote in message
...
I have 1 workbook that has two worksheets, I'm using Excel 2003. The cell
in
the first worksheet has a # that I want to lookup in the 2nd worksheet to
see
if it exists. the problem is the cell in the table_array may contain more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA". I
don't know what I'm doing wrong, was wondering if there is some help out
there.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 85
Default lookup between two worksheets not working well

cool this worked - but only if I removed "True" for the range_lookup

"T. Valko" wrote:

You can use wildcards in VLOOKUP:

A1 = 123456

=VLOOKUP("*"&A1&"*",table_array,col_index_num,rang e_lookup)


--
Biff
Microsoft Excel MVP


"Angela" wrote in message
...
I have 1 workbook that has two worksheets, I'm using Excel 2003. The cell
in
the first worksheet has a # that I want to lookup in the 2nd worksheet to
see
if it exists. the problem is the cell in the table_array may contain more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA". I
don't know what I'm doing wrong, was wondering if there is some help out
there.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 85
Default lookup between two worksheets not working well

how about if I wanted to do the reverse using worksheet #2 "AR 123456 this is
a test" to find match in worksheet #1 "123456" ?

"T. Valko" wrote:

You can use wildcards in VLOOKUP:

A1 = 123456

=VLOOKUP("*"&A1&"*",table_array,col_index_num,rang e_lookup)


--
Biff
Microsoft Excel MVP


"Angela" wrote in message
...
I have 1 workbook that has two worksheets, I'm using Excel 2003. The cell
in
the first worksheet has a # that I want to lookup in the 2nd worksheet to
see
if it exists. the problem is the cell in the table_array may contain more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA". I
don't know what I'm doing wrong, was wondering if there is some help out
there.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default lookup between two worksheets not working well

That doesn't work very well. You'd have to separate the keyword
(lookup_value) from the string.

--
Biff
Microsoft Excel MVP


"Angela" wrote in message
...
how about if I wanted to do the reverse using worksheet #2 "AR 123456 this
is
a test" to find match in worksheet #1 "123456" ?

"T. Valko" wrote:

You can use wildcards in VLOOKUP:

A1 = 123456

=VLOOKUP("*"&A1&"*",table_array,col_index_num,rang e_lookup)


--
Biff
Microsoft Excel MVP


"Angela" wrote in message
...
I have 1 workbook that has two worksheets, I'm using Excel 2003. The
cell
in
the first worksheet has a # that I want to lookup in the 2nd worksheet
to
see
if it exists. the problem is the cell in the table_array may contain
more
than just the #.

for example

cell in worksheet #1 = "123456"
the cell I want to find in worksheet #2 has "AR 123456 this is a test"

I would expect the vlookup to be able to do an approximate match and
recognize the "AR 123456 test is a test" but it comes back with "NA".
I
don't know what I'm doing wrong, was wondering if there is some help
out
there.






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
Lookup working days DaveAsh Excel Worksheet Functions 2 November 15th 07 03:09 PM
V Lookup Not working since change Pammi J Excel Discussion (Misc queries) 3 July 13th 07 11:04 AM
lookup not working nasim Excel Worksheet Functions 1 January 3rd 07 12:43 PM
LOOKUP formula not working right pdgaustintexas Excel Worksheet Functions 5 January 27th 06 03:22 PM
Lookup Not working as expected trumpy81 New Users to Excel 5 June 30th 05 07:41 PM


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