+ Reply to Thread
Results 1 to 4 of 4

Issue : VLOOKUP (XLOOKUP) not looking a pass "."

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Hengelo, NL
    MS-Off Ver
    Office 2016
    Posts
    35

    Issue : VLOOKUP (XLOOKUP) not looking a pass "."

    Is this is so? That Vlookup / Xlookup doesn't look passed a period (.).

    I want to search in a string (array of strings) the file extension.

    So I have the following table.

    Please Login or Register  to view this content.
    And I want to search for file extension and return the cell value.
    Meaning if I search for ".pdf" I should get all the value that has a .pdf in this case it is Overall Planning.pdf
    But Vlookup/Xlookup can't handle this. They stop "search the string" left to the '.' period sign.

    I use the following formula I get the values I want.
    Please Login or Register  to view this content.
    How I want to condens the result removing 'blank' cells.

    I want to learn how to fix or help with this use for VLOOKUP/Xlookup not reading pas a period sign '.'.

    thanks
    -=CWever=-

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: Issue : VLOOKUP (XLOOKUP) not looking a pass "."

    You can use wildcard characters with VLOOKUP (and a few other functions), so you could do this:

    =IFERROR(VLOOKUP("*"&B2,A:A,1,0),"not found")

    assuming B2 contains ".pdf".

    Hope this helps.

    Pete

    EDIT: change the commas ( , ) to semicolons ( ; ) if your regional settings expect that.

  3. #3
    Registered User
    Join Date
    07-10-2019
    Location
    Hengelo, NL
    MS-Off Ver
    Office 2016
    Posts
    35

    Re: Issue : VLOOKUP (XLOOKUP) not looking a pass "."

    Quote Originally Posted by Pete_UK View Post
    You can use wildcard characters with VLOOKUP (and a few other functions), so you could do this:

    =IFERROR(VLOOKUP("*"&B2,A:A,1,0),"not found")

    assuming B2 contains ".pdf".

    Hope this helps.

    Pete

    EDIT: change the commas ( , ) to semicolons ( ; ) if your regional settings expect that.
    Pete,
    So am I right that it can't search with that "wildcard character" without ""?

    Thanks that help.
    -=CWever=-

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: Issue : VLOOKUP (XLOOKUP) not looking a pass "."

    The normal operation for VLOOKUP is to find a match in the lookup_range, by seeing if the sought_item exists in one of the cells of that range. However, by using wildcard characters you can check to see if the sought_item is contained within one of the cells (as a sub-string). You can add the wildcard character(s) before the sought_item (as in this case), so it will look for a match at the end of the string, or you can add it to the end, in which case it will check to see if any cells begin with the sought_item, or you can add it to both ends, in which case you will be looking to see if the sought_item exists anywhere within the cells of the lookup_range. Thus, you have that flexibility to search for sub-strings.

    Hope this helps, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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] Check multiple cells and return "Pass" or "Fail"
    By PC78 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2019, 03:26 PM
  2. [SOLVED] Need some Help to Solve the formula of "Promoted" "Fail" or "Pass"
    By vijubhau in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-28-2019, 01:44 AM
  3. [SOLVED] Need Result in "F", "T", "I", "TI", "IP", "TP" instead of "PASS" "FAIL"
    By vijubhau in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 01-23-2018, 10:20 AM
  4. ActiveSheet.Unprotect("pass") / ActiveSheet.Protect ("pass") breaks functionality
    By Proventus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-02-2016, 10:30 PM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  7. [SOLVED] Display , "PASS"," MERIT" or "DISTINCTION"
    By Integrity in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-01-2012, 05:41 AM

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