+ Reply to Thread
Results 1 to 6 of 6

lOOKUP USING TEXT ISSUE

Hybrid View

  1. #1
    Registered User
    Join Date
    06-09-2008
    Posts
    6

    Smile lOOKUP USING TEXT ISSUE

    Hi All,

    I'm trying to do a lookup from name text to retrieve client ID #. It doesn't seem to work. What other function can I can use to retrieve the ID instead of manual keying it in. I have thousands of client ID to retrieve. The raw data sheet is provided to me with company name rather than our internal client id. Really appreciated your suggestion.
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: lOOKUP USING TEXT ISSUE

    LOOKUP function expects the lookup_vector to be listed in Ascending order - this is not the case with your data (C2:C11) and also LOOKUP is unlikely to return the correct results in this context...

    It's not really clear what you're expected results should be... can you post a revised sample ?

    For ex. a rough approach might be to find the first entry in C2:C11 which appears in Dx string, eg:

    E2:
    =INDEX($B$2:$B$11,MATCH(TRUE,INDEX(ISNUMBER(SEARCH($C$2:$C$11,$D2)),0),0))

    but even then you will not find matches for all...

  3. #3
    Registered User
    Join Date
    03-08-2007
    Posts
    93

    Re: lOOKUP USING TEXT ISSUE

    The lookup will work fine if you can standardize the names. (i.e. "Best Buy 2" and "BestBuy2" are not comparable text strings. ) and sort your master table by "C_Name" . Or you can copy the Client ID to the right of the Name and use vlookup. You won't have to resort, but you will still need to standardize the names.

  4. #4
    Registered User
    Join Date
    06-09-2008
    Posts
    6

    Re: lOOKUP USING TEXT ISSUE

    Quote Originally Posted by seckert View Post
    The lookup will work fine if you can standardize the names. (i.e. "Best Buy 2" and "BestBuy2" are not comparable text strings. ) and sort your master table by "C_Name" . Or you can copy the Client ID to the right of the Name and use vlookup. You won't have to resort, but you will still need to standardize the names.
    --------------------------------------------------------------------------------

    First of all, thanks for the reply to my question....


    __VLOOKUP(D2,$B$2:$C$11,2,FALSE)
    If I use Lookup Value (Search for the first 4 to 5 character within the text string would that work....something like

    **Vlookup(search(,d2,4),$b$2:$c$11,2,false)....

    End result that I would need is Client ID. I'm hoping the somekind of complex function would enable to search for Client ID.

  5. #5
    Registered User
    Join Date
    06-09-2008
    Posts
    6

    Re: lOOKUP USING TEXT ISSUE

    __VLOOKUP(D2,$B$2:$C$11,2,FALSE)
    If I use Lookup Value (Search for the first 4 to 5 character within the text string would that work....something like

    **Vlookup(search(,d2,4),$b$2:$c$11,2,false)....

    End result that I would need is Client ID. I'm hoping the somekind of complex function would enable to search for Client ID.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lOOKUP USING TEXT ISSUE

    i think you're probably have to some data cleansing, the first 2 are an example of the problem you are up against
    BESTBUY INC
    BEST BUY 2
    to match against
    BESTBUY
    BESTBUY2
    matching first 4 characters woud match both
    matching first 5 would never find BESTBUY2
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1