+ Reply to Thread
Results 1 to 5 of 5

INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

  1. #1
    Registered User
    Join Date
    08-24-2023
    Location
    Canada
    MS-Off Ver
    Microsoft Excel 365
    Posts
    3

    INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

    I have a formula that I found online for searching through a named range (example: test_range) with a cell reference. However I need it to recognize substrings in the search and still find the named range result. I modified the formula for wildcards but it still doesn't work. Using a different match_type also doesn't work.

    Here is the formula:
    =IF(ISBLANK($D$3),"",IFERROR(INDEX(test_range,MATCH(1,(--(NOT(ISERR(SEARCH("*"&$D$3&"*",test_range))))),0)),"error"))

    I've attached an image of the problem and the excel sheet.

    Screenshot 2023-08-24 114506.png

    The formula for creating the named range is:
    =IF(AND(ISBLANK(Test!$A$2:$A$100)),"",LET(test_range,Test!$A$2:INDEX(Test!$A:$A,ROW(Test!$A$2)+5),FILTER(test_range,test_range<>"")))
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

    I left out some words as "a", "to", "as" to get a better output

    Please Login or Register  to view this content.
    Last edited by JEC.; 08-24-2023 at 02:46 PM.

  3. #3
    Registered User
    Join Date
    08-24-2023
    Location
    Canada
    MS-Off Ver
    Microsoft Excel 365
    Posts
    3

    Re: INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

    Thank so much! it works for certain cases (longer sentences) but now it doesn't find a match if its a single word or a shorter sentence. Is there a way to fix this? I would try editing your formula myself but I have no idea how it works.

    Attachment 840694

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

    The problem here is that you need to be more precise and smart in defining what is and what is not a match. This cannot be determined on the basis of the two examples given. In case of searching with long sentences, there are often more words that match, but that you do not always want to see as a result.

  5. #5
    Registered User
    Join Date
    08-24-2023
    Location
    Canada
    MS-Off Ver
    Microsoft Excel 365
    Posts
    3

    Re: INDEX/MATCH/SEARCH formula doesn't recognize substrings when searching named range

    That's true, I guess I would just like it to be pretty close to what JEC. posted but also able to find a result if you type 1 word. Like searching "skill" would return "Master a difficult skill" and searching "I want to master something" would also return "Master a difficult skill". It may not be possible but JEC.'s formula gets pretty close.

+ 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] Index Match - named range?
    By BradleyN1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-19-2023, 03:34 AM
  2. Replies: 2
    Last Post: 03-24-2021, 03:26 AM
  3. Index Match Vlookup Type formula off of Drop Down Menu/Named Range
    By msdclark in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-08-2020, 06:05 PM
  4. [SOLVED] Why does Index and Match Formula work for Named Range.. Except The Last Rows?
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2018, 02:26 PM
  5. Named range in Index & Match
    By edward_glyver in forum Excel General
    Replies: 10
    Last Post: 04-29-2016, 08:11 AM
  6. [SOLVED] Macro Vlookup does not recognizes named range
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-27-2013, 11:10 AM
  7. [SOLVED] Reference to named range to be used in index match formula!! Help Please!!
    By Optimum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2013, 06:54 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