Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Lengthy Vlookup Values

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is there a
limitation of some sort? Is there a workaround?




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Lengthy Vlookup Values

Correction....it appear that this is not a lenght sensitivity issue. There
are some entries that simply aren't getting picked up unless I remove the
last letter regardless of length. I've tried everything....I'm stumped.

"jkiser" wrote:

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is there a
limitation of some sort? Is there a workaround?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Lengthy Vlookup Values

Try

=VLOOKUP($A11 & "*", Target Array,12,False)

If this post helps click Yes
---------------
Jacob Skaria


"jkiser" wrote:

Correction....it appear that this is not a lenght sensitivity issue. There
are some entries that simply aren't getting picked up unless I remove the
last letter regardless of length. I've tried everything....I'm stumped.

"jkiser" wrote:

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is there a
limitation of some sort? Is there a workaround?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lengthy Vlookup Values

You're well within the length limit. It's 255 characters.

There may be unseen characters like spaces in you table data. For example,
you want to lookup "xxx" but in your table that entry is "xxx<space"

Find an entry that isn't working and check that the length of the lookup
value and its matching value in the table are the same.

A1 = lookup value = xxx

Assume its matching value in the table is in cell B10.

Try these formulas to compare the two values:

=A1=B10
=LEN(A1)=LEN(B10)

--
Biff
Microsoft Excel MVP


"jkiser" wrote in message
...
Correction....it appear that this is not a lenght sensitivity issue.
There
are some entries that simply aren't getting picked up unless I remove the
last letter regardless of length. I've tried everything....I'm stumped.

"jkiser" wrote:

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is there
a
limitation of some sort? Is there a workaround?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default Lengthy Vlookup Values

I found the problem....by changing the dimensions of the array and sometimes
it worked and other times it didn't. I kept changing it until I found the
culprit....the value I was searching on was repeated higher up in the array.

I think I can work around the problem if I use a relative reference for the
array.

Your ideas are really good though because I run into this now and again.
Thanks so much.


"T. Valko" wrote:

You're well within the length limit. It's 255 characters.

There may be unseen characters like spaces in you table data. For example,
you want to lookup "xxx" but in your table that entry is "xxx<space"

Find an entry that isn't working and check that the length of the lookup
value and its matching value in the table are the same.

A1 = lookup value = xxx

Assume its matching value in the table is in cell B10.

Try these formulas to compare the two values:

=A1=B10
=LEN(A1)=LEN(B10)

--
Biff
Microsoft Excel MVP


"jkiser" wrote in message
...
Correction....it appear that this is not a lenght sensitivity issue.
There
are some entries that simply aren't getting picked up unless I remove the
last letter regardless of length. I've tried everything....I'm stumped.

"jkiser" wrote:

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is there
a
limitation of some sort? Is there a workaround?









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lengthy Vlookup Values

Good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"jkiser" wrote in message
...
I found the problem....by changing the dimensions of the array and
sometimes
it worked and other times it didn't. I kept changing it until I found the
culprit....the value I was searching on was repeated higher up in the
array.

I think I can work around the problem if I use a relative reference for
the
array.

Your ideas are really good though because I run into this now and again.
Thanks so much.


"T. Valko" wrote:

You're well within the length limit. It's 255 characters.

There may be unseen characters like spaces in you table data. For
example,
you want to lookup "xxx" but in your table that entry is "xxx<space"

Find an entry that isn't working and check that the length of the lookup
value and its matching value in the table are the same.

A1 = lookup value = xxx

Assume its matching value in the table is in cell B10.

Try these formulas to compare the two values:

=A1=B10
=LEN(A1)=LEN(B10)

--
Biff
Microsoft Excel MVP


"jkiser" wrote in message
...
Correction....it appear that this is not a lenght sensitivity issue.
There
are some entries that simply aren't getting picked up unless I remove
the
last letter regardless of length. I've tried everything....I'm
stumped.

"jkiser" wrote:

I have formula:

=VLOOKUP($A11, Target Array,12,False), I copy it down and it works
great....usually.

Occassionally I run into an entry in column A that is long and it
won't
work. For instance the entry:

%,NCOMPENSATION Then the formula doesn't return a value.

But if I change the entry by removing the last letter both the column
and
the target array:

%,NCOMPENSATIO Then it does return a value (the correct one).

That is happening whenever I find an entry over 14 characters. Is
there
a
limitation of some sort? Is there a workaround?









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
Copy and lengthy paste DTTODGG New Users to Excel 3 October 11th 06 07:50 PM
Lengthy problem - I am in need of help! paultucker79 Excel Discussion (Misc queries) 2 June 20th 06 11:07 AM
Lengthy problem - I am in need of help! paultucker79 Excel Discussion (Misc queries) 5 June 20th 06 10:50 AM
Lengthy problem - I am in need of help! paultucker79 Excel Discussion (Misc queries) 0 June 19th 06 01:15 PM
Lengthy and weird, but interesting Dan Wilson Excel Worksheet Functions 2 March 28th 05 03:19 AM


All times are GMT +1. The time now is 12:57 PM.

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"