#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
via135
 
Posts: n/a
Default lookup error!


hi!

what's wrong with the formula which throws #value error?

the formula is in Sheet1

C1; =VLOOKUP(OR(RIGHT(A1,6),MID(A1,6,6)),sheet2!$A$1:$ C$8,3,FALSE)

the contents of A1:B9 in sheet1 is

0100005500110775159011
0100006000310775159022
0100006000410775159033
0100006000710775159044
0100006001110775159055
010000600160010775159066
010000600200010775159077
010000600200110775159088
010000600160210775159099

the contents of A1:C8 in sheet2 is

055001john 80620840697
060003abraham80620840700
060004joseph 80620840711
060005walker 80620840722
060007nancy 80620840733
060011peter80620840744
060016willy80620840777
060020 mabel 80620840788

any hlp pl?!

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=552440

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default lookup error!

Try
=VLOOKUP(RIGHT(A1,6),sheet2!$A$1:$C$8,3,FALSE)
or
=VLOOKUP(MID(A1,6,6),sheet2!$A$1:$C$8,3,FALSE)



"via135" wrote:


hi!

what's wrong with the formula which throws #value error?

the formula is in Sheet1

C1; =VLOOKUP(OR(RIGHT(A1,6),MID(A1,6,6)),sheet2!$A$1:$ C$8,3,FALSE)

the contents of A1:B9 in sheet1 is

0100005500110775159011
0100006000310775159022
0100006000410775159033
0100006000710775159044
0100006001110775159055
010000600160010775159066
010000600200010775159077
010000600200110775159088
010000600160210775159099

the contents of A1:C8 in sheet2 is

055001john 80620840697
060003abraham80620840700
060004joseph 80620840711
060005walker 80620840722
060007nancy 80620840733
060011peter80620840744
060016willy80620840777
060020 mabel 80620840788

any hlp pl?!

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=552440


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj
 
Posts: n/a
Default lookup error!

not a hundred percent sure but feel the OR() will not work as the lookup
value in the vlookup
try just

=VLOOKUP(MID(A1,6,6),sheet2!$A$1:$C$8,3,FALSE)
additionally
is column A in sheet 2 text or numbers
one way to verify is to just use the following equation
=mid(sheet1!A1,6,6)=sheet2!A1
if the answer is not "true" the sheet 2 value may be a number formated to
show the initial 0.

"via135" wrote:


hi!

what's wrong with the formula which throws #value error?

the formula is in Sheet1

C1; =VLOOKUP(OR(RIGHT(A1,6),MID(A1,6,6)),sheet2!$A$1:$ C$8,3,FALSE)

the contents of A1:B9 in sheet1 is

0100005500110775159011
0100006000310775159022
0100006000410775159033
0100006000710775159044
0100006001110775159055
010000600160010775159066
010000600200010775159077
010000600200110775159088
010000600160210775159099

the contents of A1:C8 in sheet2 is

055001john 80620840697
060003abraham80620840700
060004joseph 80620840711
060005walker 80620840722
060007nancy 80620840733
060011peter80620840744
060016willy80620840777
060020 mabel 80620840788

any hlp pl?!

-via135


--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=552440


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
conditional formatting using lookup up in a different sheet ChrisO Excel Discussion (Misc queries) 10 February 2nd 06 10:40 AM
Error Handler Not Working Bill Excel Discussion (Misc queries) 0 August 25th 05 07:13 PM
LOOKUP funciion giving an error Mike K Excel Worksheet Functions 3 July 20th 05 05:28 AM
Lookup Function Error Jacinthe Excel Worksheet Functions 2 March 10th 05 07:37 AM
#REF error Christen Excel Worksheet Functions 5 November 3rd 04 07:29 PM


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