+ Reply to Thread
Results 1 to 5 of 5

Use VLOOKUP using wildcard in the lookup table

  1. #1
    Registered User
    Join Date
    01-16-2021
    Location
    NY
    MS-Off Ver
    2007
    Posts
    3

    Use VLOOKUP using wildcard in the lookup table

    Hi All:

    I have a master list of info based on a 7 digit number.

    Occasionally, I am given an alphanumeric that always starts with 0dp, instead of the 7 digit number.

    Can I have a row that has the lookup value as "0dp*", so that anytime I get an alphanumeric starting with 0dp, such as "0dp:2gyd", it will return the given values for 0dp*, since they will always be the same?

    I have attached an example. where sheet 1 is the master list and sheet 2 has the list I want to attach the values to. I want VLOOKUP (or some alternative) to recognize odp* as the acceptable lookup spot for each of the 0dp's in the sheet 2 list and return the "0", instead of #N/A.

    Thank you

    EliotK
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Use VLOOKUP using wildcard in the lookup table

    Welcome to the forum.

    Is your version of Excel 365? I doubt you are using the ancient 2007, and suspect that’s your 365 release number. Please update your profile. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-16-2021
    Location
    NY
    MS-Off Ver
    2007
    Posts
    3

    Re: Use VLOOKUP using wildcard in the lookup table

    Hi Ali:

    Actually, I am using the ancient 2007 version. It works great for me.

    Eliot

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Use VLOOKUP using wildcard in the lookup table

    sheet2 worksheet name , B1 cell formula ,drag down
    =LOOKUP(,-FIND(SUBSTITUTE(Sheet1!$A$1:$A$5,"*",),A1),Sheet1!$B$1:$B$5)

  5. #5
    Registered User
    Join Date
    01-16-2021
    Location
    NY
    MS-Off Ver
    2007
    Posts
    3

    [SOLVED]Re: Use VLOOKUP using wildcard in the lookup table

    Thank you for your response.

    That did seem to work for the sample workbook, but not for my expanded one.

    I actually figured out what to do:

    I added IF(A1>9999999,0,VLOOKUP etc.)
    That worked for me.

    Eliot

    PS I could not find the prefix SOLVED, so I typed it in

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lookup when table array contains wildcard
    By catfishlee2002 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2020, 02:33 PM
  2. Use VLOOKUP table for reverse wildcard--find value contained within target
    By ozstrik3r69 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2018, 09:22 AM
  3. [SOLVED] Lookup with Wildcard
    By jp16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2018, 03:04 AM
  4. Replies: 3
    Last Post: 06-05-2014, 06:59 PM
  5. [SOLVED] lookup and wildcard
    By Blake 7 in forum Excel General
    Replies: 7
    Last Post: 02-20-2014, 11:02 AM
  6. Wildcard Lookup
    By 353663 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-16-2009, 07:23 AM
  7. vlookup table array wildcard?
    By liquidskin in forum Excel General
    Replies: 5
    Last Post: 03-27-2009, 09:52 AM

Tags for this Thread

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