+ Reply to Thread
Results 1 to 6 of 6

Advanced search within a spreadsheet

  1. #1
    Registered User
    Join Date
    11-04-2012
    Location
    London
    MS-Off Ver
    Excel 2008
    Posts
    3

    Advanced search within a spreadsheet

    Hi guys, I wonder if you can help with an issue I have,

    I have a large excel spreadsheet (with over 30,000 rows). One of the columns has long strings of text.

    I need to search the spreadsheet for certain words. However if I just use the find function I can only search for one word at a time. What I want to be able to do is, search the column of cells of text for all cell that contain for example the word "tree" AND "flower" OR "leaf" OR "petal".

    So all results must find cells that have tree in the body of text and must also contain any of the words flower, leaf or petal.

    Is if possible to make this kind of search in excel?

    Thank you for your help

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Advanced search within a spreadsheet

    Probably you need VBA for this.

    In that case i can't help you enough with that.

    I bet you get better help if you add an Excel file without confidentional information.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Advanced search within a spreadsheet

    you could just use filter there are several ways including advanced but for simplicity say your data is in column a starting a2
    in b2 put
    =AND(ISNUMBER(SEARCH("tree",A2)),OR(ISNUMBER(SEARCH("flower",A2)),ISNUMBER(SEARCH("leaf",A2)),ISNUMBER(SEARCH("petal",A2))))
    drag to end then filter column b on true
    then select the filtered cells chose a fill colour and un filter all the found ones will be coloured
    or if you don't want to hard set those words
    =AND(ISNUMBER(SEARCH($I$2,A2)),OR(ISNUMBER(SEARCH($J$2,A2)),ISNUMBER(SEARCH($K$2,A2)),ISNUMBER(SEARCH($L$2,A2)))) wher I2 contains the word tree j2,k2,l2 contain the others
    Last edited by martindwilson; 11-04-2012 at 07:25 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    11-04-2012
    Location
    London
    MS-Off Ver
    Excel 2008
    Posts
    3

    Re: Advanced search within a spreadsheet

    Thank you martindwilson that works perfectly.

    Is there any way to extract just the rows that have returned 'TRUE' say into a separate sheet or will I just need to go through them manually? Not to worry if not you have all ready helped save me hours!

  5. #5
    Registered User
    Join Date
    11-04-2012
    Location
    London
    MS-Off Ver
    Excel 2008
    Posts
    3

    Re: Advanced search within a spreadsheet

    Thank you martindwilson that works perfectly.

    Is there any way to extract just the rows that have returned 'TRUE' say into a separate sheet or will I just need to go through them manually? Not to worry if not you have all ready helped save me hours!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Advanced search within a spreadsheet

    if ,when filtered, you copy the entire rows you can paste to another sheet

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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