+ Reply to Thread
Results 1 to 7 of 7

If a Cell text is a substring contained in another column Cell range, get other column val

  1. #1
    Registered User
    Join Date
    10-23-2021
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    9

    If a Cell text is a substring contained in another column Cell range, get other column val

    Hi and happy holidays..

    Just want to try something that I cannot get going I tried around Match and Index but it won't work

    This will explain more: in pic with example and attached sheet
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by programm; 12-25-2023 at 01:25 PM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: If a Cell text is a substring contained in another column Cell range, get other column

    One way,
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: If a Cell text is a substring contained in another column Cell range, get other column

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  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: If a Cell text is a substring contained in another column Cell range, get other column

    Another way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-23-2021
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    9

    Re: If a Cell text is a substring contained in another column Cell range, get other column

    Thanks all for the suggestion

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    This does it also if I split the word like Or ange, that is great. Can it also be done if I type BigOrange or Big Orange, since Orange is contained? I tried with prefix but returns N/A
    Also can it be based on the first column A that lists the number instead of the ROW. I noticed the column A that numbers them is missing

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

    Re: If a Cell text is a substring contained in another column Cell range, get other column

    If you type BigOrange it is not possible to find a match with oranges:
    oranges does not contain BigOrange and visa versa BigOrange does not contain oranges.

  7. #7
    Registered User
    Join Date
    10-23-2021
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    9

    Re: If a Cell text is a substring contained in another column Cell range, get other column

    Oh this is actually fine. I will have a prefix in the list not in the input field. So if I have in the list BigOranges and I type Oranges or Or anges, that detects it, so it does what I needed thnx again for clarifying and for the code.

    And even though the code =MATCH("*"&SUBSTITUTE(($Q$3)," ","")&"*",B2:B312,0)

    does not show it uses column A that I had for numbers, it does take the number from the same row ignoring A1 that are the headers as if it makes ROW-1. So that is good as I get the number seen on the A column
    Last edited by programm; 12-25-2023 at 01:25 PM.

+ 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. Replies: 6
    Last Post: 09-13-2022, 08:27 AM
  2. Checking that a cell contains a substring when assessing a column
    By rcx116 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2020, 05:48 AM
  3. Replies: 4
    Last Post: 10-29-2019, 10:23 AM
  4. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  5. Replies: 2
    Last Post: 06-29-2012, 07:02 AM
  6. Replies: 1
    Last Post: 04-15-2012, 06:20 PM
  7. If text mathces column 1 range, display value in column 2 cell
    By brillison in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2008, 03:59 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