+ Reply to Thread
Results 1 to 3 of 3

Avoiding Wildcard effect in VLOOKUP

  1. #1
    Registered User
    Join Date
    11-14-2004
    Posts
    6

    Avoiding Wildcard effect in VLOOKUP

    I have data which ends in an *. I found out the hard way that a VLOOKUP will treat the * as a Wild Card. Is there a way to have Excel not treat that trailing * as a Wildcard?

    For example cell a1 contains a part number text value of A12345*
    Cell b1 contains =VLOOKUP(A1, my range goes here, 2, FALSE)

    My problem is that I want an exact match on part number 12345*

    Hoping someone can help me.

    Mark Shnier

  2. #2
    Registered User
    Join Date
    11-14-2004
    Posts
    6
    I think I figured it out. Ii have to manipulate my data to detect it ending in an * and replace it with ~*

    for example my 12345* needs to become 12345~*

    http://office.microsoft.com/en-us/ex...093351033.aspx


    Mark Shnier

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    You could also do something like

    =VLOOKUP(SUBSTITUTE(A1,"*","~*"),A2:B3,2,FALSE)


    rylo

+ 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