+ Reply to Thread
Results 1 to 3 of 3

Fetch text by match, verify text is somewhere in another cell, return true / false

  1. #1
    Registered User
    Join Date
    12-02-2020
    Location
    Tønsberg
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Post Fetch text by match, verify text is somewhere in another cell, return true / false

    Hi Everyone,

    I have a little case I hope that you can help me with

    as in the title " Fetch text by match, verify text is somewhere in another cell, return true / false "

    The attachment describes the process well I think.
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Fetch text by match, verify text is somewhere in another cell, return true / false

    if your Members only have a single city in the "City's" column, per ex., then:

    =ISNUMBER(SEARCH(VLOOKUP($D3;$A$5:$B$19;2;0)&"/";$B3&"/"))

    if, conversely, you could have multiple cities - e.g. Frankfurt/Dublin, then:

    =ISNUMBER(LOOKUP(9.99E+307;SEARCH(TRIM(MID(SUBSTITUTE(VLOOKUP($D3;$A$5:$B$19;2;0);"/";REPT(" ";100));1+100*(ROW(A$1:INDEX(A:A;1+LEN(VLOOKUP($D3;$A$5:$B$19;2;0))-LEN(SUBSTITUTE(VLOOKUP($D3;$A$5:$B$19;2;0);"/";""))))-1);100))&"/";$B3&"/")))

    the above will search for each city and return True if any one City is found in the "route" string

  3. #3
    Registered User
    Join Date
    12-02-2020
    Location
    Tønsberg
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Re: Fetch text by match, verify text is somewhere in another cell, return true / false

    Thank you very much XLent, it works perfectly

+ 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. Data (Text) Validation between 2 cells to return True or False
    By Lauris K in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2019, 12:28 PM
  2. [SOLVED] Finding a specific text string throughout an entire column and if there return true/false
    By myfivemonkeys in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 07:31 PM
  3. [SOLVED] Find Text In Range With Part Of Text & Return True or False
    By tis28 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2013, 09:35 PM
  4. Replies: 9
    Last Post: 01-21-2013, 01:54 AM
  5. [SOLVED] Search a text and true/false in return
    By myogonichi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2012, 01:46 AM
  6. [SOLVED] Match specific words in cell and return value if true or false
    By jbrooksia in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 04:15 PM
  7. Replies: 3
    Last Post: 03-12-2010, 02:57 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