+ Reply to Thread
Results 1 to 3 of 3

Search each row for multiple criteria (words) and return row number

  1. #1
    Registered User
    Join Date
    01-19-2016
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lightbulb Search each row for multiple criteria (words) and return row number

    Hello!

    I am looking for a way to search an excel document row by row, and for this search to return a list of rows in which all of the search criteria are met.

    For example, say there are five rows and I am looking to find "gray cat" and "mouse" in the same row. Each of these criteria will likely be in different cells, but in the same row.

    Please be as descriptive as possible and thank you for your time.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Search each row for multiple criteria (words) and return row number

    "gray cat" in a cell on its own or part of a sentence?

    Attach a sample spreadsheet with expected results, remove any sensitive data.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-19-2016
    Location
    Bloomington, IN
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Search each row for multiple criteria (words) and return row number

    Gray cat could be on its own OR a part of a sentence or a comma separated list of words.

    The attachment was not uploading properly so I have copy and pasted the text which if copied and pasted into an excel doc should work.

    Again this is searching for "gray cat" and "mouse" to occur in the same row.



    Dog Cat Mouse Pig expected result
    1 abc gray cat AB-123, [PO-ABCD/EFGH], mouse Row 2
    2 abc black cat dog gray
    3 abc purple cow 174-mse, [pie], abcde-123
    4 bde blond gray cat 174-mse, [pie], abcde-123
    5 der gray cat 174-mse, [pie], abcde-123
    6 fre black dog AB-123, [PO-ABCD/EFGH]
    7 get reckless moose 174-mse, [pie], abcde-123
    8 bloating slipnot

+ 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] Return multiple values using three search criteria
    By knightjob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2014, 03:25 PM
  2. Replies: 2
    Last Post: 05-12-2014, 08:21 AM
  3. Replies: 5
    Last Post: 06-21-2012, 10:36 AM
  4. User Form to Search multiple Criteria to return multiple Results
    By Calieth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2011, 11:57 AM
  5. Search for multiple criteria then return result
    By ctrapper in forum Excel General
    Replies: 7
    Last Post: 03-15-2011, 09:03 PM
  6. Search table with multiple criteria and return row
    By grunwaldlove in forum Excel General
    Replies: 2
    Last Post: 11-11-2009, 11:18 AM
  7. Multiple search criteria to return one response
    By Dan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-02-2006, 11:50 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