• Remove Wildcard in lookup (2003)

    Author
    Topic
    #452179

    We have part numbers in our system that end with an “*”. At the same time I have near matching part numbers that do not have the “*” I am looking to pull data via Vlookup, but the lookup on the “*” part number pulls the data from the non-asterisk p/n. I need a formula that will recognize each individual part number without the wildcard issue.

    I have attached a file to help make more sense.

    As always any help is GREATLY appreciated.

    JG

    Viewing 1 reply thread
    Author
    Replies
    • #1115587

      You could enter a ~ before the asterisk in A3 to tell Excel to interpret it as a literal character.

      Or you could use the following array formula in B2 (confirm with Ctrl+Shift+Enter), and fill down:

      =INDEX($E$2:$E$13,MAX(ROW($1:$12)*($D$2:$D$13=A2)))

    • #1115586

      JG

      Utilise the substite function like so and it will do the job

      =VLOOKUP(SUBSTITUTE(A2,”*”,”~”),$D$2:$E$13,2)

    Viewing 1 reply thread
    Reply To: Remove Wildcard in lookup (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: