Microsoft Office Forums


Reply
Thread Tools Display Modes

vlookup problems with left

 
 
polilop
Guest
Posts: n/a
 
      05-20-2010, 11:31 AM
I'm using vlookup,i have a 10 digit number which i have to mach with 9 digit
number (last digit is some kind of control digit) and when i use left to
take only the first 9 digits
=VLOOKUP( LEFT(F200;9);W198:W201;1;FALSE)
i get #N/A
if i manuallly delete the 10th digit i get mached data.
is there a problem with using left on vlookup?

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      05-20-2010, 12:15 PM
=left() returns text. That will never match a real number.

I'd take the integer amount after dividing by 10.

=vlookup(int(f200/10);w198:w201;1;false)

But if you're really only looking to see if there's a match, you could use:

=isnumber(match(int(f200/10);w198:w201,0))

You'll see true or false.

polilop wrote:
>
> I'm using vlookup,i have a 10 digit number which i have to mach with 9 digit
> number (last digit is some kind of control digit) and when i use left to
> take only the first 9 digits
> =VLOOKUP( LEFT(F200;9);W198:W201;1;FALSE)
> i get #N/A
> if i manuallly delete the 10th digit i get mached data.
> is there a problem with using left on vlookup?


--

Dave Peterson
 
Reply With Quote
 
Steve Dunn
Guest
Posts: n/a
 
      05-20-2010, 12:22 PM
you need to convert the text value that LEFT() returns into a numeric value,
try:

=VLOOKUP(VALUE(LEFT(F200;9));W198:W201;1;FALSE)

or

=VLOOKUP(--LEFT(F200;9);W198:W201;1;FALSE)



"polilop" <(E-Mail Removed)> wrote in message
news:%23EXHcAB%(E-Mail Removed)...
> I'm using vlookup,i have a 10 digit number which i have to mach with 9
> digit number (last digit is some kind of control digit) and when i use
> left to
> take only the first 9 digits
> =VLOOKUP( LEFT(F200;9);W198:W201;1;FALSE)
> i get #N/A
> if i manuallly delete the 10th digit i get mached data.
> is there a problem with using left on vlookup?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I stop the footer from indenting? Michelle Excel Newsgroup 4 05-10-2010 01:17 AM
Ct:1 Appears in Left Join for all values rather than selected valu Chuck W Access Newsgroup 1 04-09-2010 03:50 PM
Recreate VLookup in MS Access 2003 Form Using DLookup..... CBender Access Newsgroup 5 04-06-2010 10:17 PM
Alternative for MS Excel VLOOKUP function in MS Access2003 CBender Access Newsgroup 4 03-17-2010 12:12 PM
Panning Sound from right to left Cravaus PowerPoint Newsgroup 1 03-10-2010 08:46 AM



All times are GMT. The time now is 08:08 PM.
Microsoft Office Forums is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92