+ Reply to Thread
Results 1 to 3 of 3

Cell Contains Many Things

  1. #1
    Registered User
    Join Date
    01-05-2017
    Location
    portland, oregon
    MS-Off Ver
    2011
    Posts
    1

    Cell Contains Many Things

    I am trying to find a way to search a list (“Search Terms” in screenshot) and see if that text string contains both word 1 (D2) and word 2 (E2). The order in which “word 1” or “word 2” in the search doesn’t matter. I would like to know if they are both present in the “search term”.

    I found this formula:
    =SUMPRODUCT(--ISNUMBER(SEARCH(things,B5)))>0

    This very close to what I need. However, it designed to search 1 list.

    Is there a way to create an "and" function in the formula above? So that the formula searches both “word 1" and “word 2" lists and returns true if both words are present in the keyword. Returns a false value if 1 or zero of the 2 words is present in the search term.

    Cell Contains Many Things.png

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: Cell Contains Many Things

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Cell Contains Many Things

    The formula does not tie in with your screenshot, as there is nothing in column B.

    You could try this in F2:

    =COUNTIFS(A:A,"*"&D2&"*",A:A,"*"&E2&"*")>0

    then copy it down - it will produce TRUE or FALSE to indicate if the pair of words is used anywhere in column A.

    Hope this helps.

    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] Cell contains one of many things
    By Median in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2018, 11:09 PM
  2. Cell contains one of many things
    By ccrcarey in forum Excel General
    Replies: 2
    Last Post: 09-19-2017, 12:49 AM
  3. [SOLVED] Single cell doing multiple things?
    By cause in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2013, 11:50 PM
  4. hide value in a cell and a few other things
    By 1newguy in forum Excel General
    Replies: 1
    Last Post: 03-06-2009, 04:32 AM
  5. Allowing certain things in a cell
    By -emma- in forum Excel General
    Replies: 6
    Last Post: 12-21-2007, 09:03 AM
  6. [SOLVED] Is there a way to only have certain things typed into a cell?
    By Big Abalone in forum Excel General
    Replies: 2
    Last Post: 05-12-2006, 07:10 PM
  7. [SOLVED] Sum in first blank cell and a few more things...
    By Bleu_808 in forum Excel General
    Replies: 3
    Last Post: 05-04-2006, 07:10 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