Re: Vlookup variation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Yandros (anonymous_at_discussions.microsoft.com)
Date: 06/20/04


Date: Sun, 20 Jun 2004 14:27:03 -0700

Chuck,

Thanks for your suggestion.

Unfortunately, the length is not always 6. This was just
an example I gave. The length can vary between 6 and 16
from cell to cell in the lookup table. This is also true
for the array.

Thanks anyway. I do appreciate all inputs I have received.

Yandros
>-----Original Message-----
>Hi Yandros.........
>
>You're almost there with your idea and your
formula..........only thing
>is........if you want the Leftmost 6 characters of the
10 character
>sequence, then modify your formula to read
>
>=Vlookup(LEFT(A2,6),mgt,3,true)
>
>Vaya con Dios,
>Chuck, CABGx3
>
>
>
>"Yandros" <anonymous@discussions.microsoft.com> wrote in
message
>news:1eb5001c456ea$e29fdc80$a301280a@phx.gbl...
>> Hi All,
>>
>> The Vlookup function normally looks for exact matches.
>>
>> However I'd like to try and modify the functionality to
>> look for near matches. For example if I have a two
tables
>> of numbers of where the lengths vary I want to find if
>> one number appears within another and make a columns
>> selection based on that.
>>
>> For example if 447385 exists in array and I have
>> 4473854568 as the lookup up value I only want it to
>> consider the first few digit (from left to right) which
>> equal the value in the array.
>>
>> Is this possible? I have tried :-
>>
>> Vlookup(right(A2,6),mgt,3,true)
>>
>> Where A2 is the cell of the value to lookup,
>> Where MGT is the array (made up of three columns)
>>
>> Unfortunately it doesn't work even when both sets of
>> values are sorted numerically on the first column.
Beside
>> which the length of 6 characters can change for each of
>> the values to be looked up.
>>
>> I need a query that will examine each value to be
looked
>> up count the number of digits, then look in the array
for
>> the matching digits (ignoring any additional digits
after
>> the intial match in digits is found).
>>
>> Hope this make sense to someone. Any suggestions would
be
>> gratefully received.
>>
>> Thanks in advance.
>>
>> Yandros
>>
>
>
>.
>



Relevant Pages

  • Re: Vlookup variation
    ... is........if you want the Leftmost 6 characters of the 10 character ... > However I'd like to try and modify the functionality to ... > equal the value in the array. ... > the matching digits (ignoring any additional digits after ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Vlookup variation
    ... The values in the array are not of fixed length. ... be anything from 6 to 16 digits long. ... of the lookup value. ... >the 4th argument to look for an exact match. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Vlookup variation
    ... The values in the array are not of fixed length. ... be anything from 6 to 16 digits long. ... of the lookup value. ... >returning the right 6 characters where you want to ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Vlookup variation
    ... >of the lookup value. ... Excel can only handle numbers up to fifteen digits. ... If, due to varying lengths of values in the array, there are multiple ... that would be helpful in devising a solution to your ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Vlookup variation
    ... Second - you don't say how to determine what the length of the lookup ... If you assume that all entries are the same length, ... > equal the value in the array. ... > the matching digits (ignoring any additional digits after ...
    (microsoft.public.excel.worksheet.functions)