+ Reply to Thread
Results 1 to 5 of 5

Search each cell from the whole column and if matched return some value (True/False)

  1. #1
    Registered User
    Join Date
    07-31-2022
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    3

    Post Search each cell from the whole column and if matched return some value (True/False)

    Hi, I have attached an excel file, where in there are 2 columns.

    1. Named as category
    2. Named as Keyword.

    I want a code which is return against each category but it should match a word mentioned in keyword column as shown in excel.

    I had a code return with
    ISNUMBER(SEARCH(substring,text))
    But this is not helping and solving my issue since I need to find word from the keyword column only and list would be very long. While the search formula I am using needs text and not allowing me to select whole column.


    Please its urgent!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Search each cell from the whole column and if matched return some value (True/False)

    Hi,
    Maybe like that?
    =FILTER($A$1:$A$22,ISNUMBER(SEARCH(H2,$A$1:$A$22)))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-31-2022
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Search each cell from the whole column and if matched return some value (True/False)

    Hi, Thank you for replying.

    So it has worked to resolve some other issue but my requirement for this particular query was that every row in column A should be checked against the keyword and I should get result in Column B. In this case every keyword is getting separate result, which is why for every keyword I need to run the script and that would not solve my purpose.

    I have attached an excel file, please check that. That is how I need a result so that further I can write an if statement and get the desired output.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,834

    Re: Search each cell from the whole column and if matched return some value (True/False)

    I'm unclear on what you are wanting, but maybe this will give you what you want. In Cell B2, enter this:

    =INDEX($H$2:$H$6,MATCH(TRUE,ISNUMBER(SEARCH($H$2:$H$6,A2)),0))

    And copy down.

    If this doesn't answer your question, please supply mocked up results of what you expect.

  5. #5
    Registered User
    Join Date
    07-31-2022
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    3

    Post Re: Search each cell from the whole column and if matched return some value (True/False)


    Thank you so much. It has worked.

+ 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] Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. [SOLVED] Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Search column for value and return TRUE or FALSE
    By Bob Umlas in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  6. Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. [SOLVED] Search column for value and return TRUE or FALSE
    By Remote Desktop Connection hotkey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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