+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP with wildcards returning N/A for String Search

  1. #1
    Registered User
    Join Date
    01-24-2012
    Location
    New York
    MS-Off Ver
    Mac 2019
    Posts
    6

    VLOOKUP with wildcards returning N/A for String Search

    I'm using VLOOKUP to search a string of text for a value. I'm using two wildcards surrounding the lookup value as referenced in other posts.

    My Data (Sheet 3):
    B C
    Thousands of emails Role1
    Thousands of emails Role2
    Thousands of emails Role3
    Thousands of emails Role4
    Thousands of emails Role5

    My Lookup:
    C D
    Singular Email =VLOOKUP("*"&C2&"*",Sheet3!$B$1:$C$7,2,FALSE)

    I'm getting a N/A on the return and it's driving my mildly insane. The value is clearly there...it's literally the first one and should return "Role1".

    Any help appreciated.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: VLOOKUP with wildcards returning N/A for String Search

    I cannot replicate the behavior. If I make up random email addresses, the VLOOKUP() function works just fine. I would guess that you need to look closer at your email strings and make absolutely certain that the given text string is within the text strings in the lookup table. I expect that we will be unable to help debug this without a more detailed example that illustrates the problem (without giving away confidential information).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: VLOOKUP with wildcards returning N/A for String Search

    You show the column letters but not the row numbers - nor do you show what is in C2?

    IF you are trying to search for something in col C, but have the search range as B:C, that wont work for vlookup, the search criteria MUST be in the 1st column of the range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Looking Up with Wildcards and Returning a Value
    By chrisbellagio in forum Excel General
    Replies: 3
    Last Post: 07-17-2018, 11:17 AM
  2. Replies: 9
    Last Post: 09-05-2017, 11:35 AM
  3. [SOLVED] VLOOKUP: Search string longer than target string
    By kophanz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2017, 08:38 AM
  4. [SOLVED] vlookup and string search
    By sniper420 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2014, 08:58 AM
  5. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  6. sub string search returning multiple values
    By AackwardsBassLogic in forum Excel General
    Replies: 2
    Last Post: 05-23-2012, 10:04 PM
  7. string search w/ vlookup
    By VTdude12 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2009, 01:32 PM

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