+ Reply to Thread
Results 1 to 10 of 10

Multiple criteria in Search (ctrl - F)

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Multiple criteria in Search (ctrl - F)

    Hi all,

    How can I, when I use the search - possibility (ctrl-F) use multiple criteria

    eg: I want to get every cell with contents ???.?? but not with the contents ???.? (both based on the contents of the entire cell)

    Is this possible?

    Thanks in advance
    Hein
    Last edited by Hein; 02-19-2014 at 04:52 PM.

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

    Re: Multiple criteria in Search (ctrl - F)

    ???.??
    if you use that as your search criteria on whole cell contents it matches just that pattern.... or do you mean something else
    "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

  3. #3
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: Multiple criteria in Search (ctrl - F)

    No that's what I mean
    This is just an example. I have more cases in which this is usefull

    eg: I want 123.45 but not 123.4
    Hein

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

    Re: Multiple criteria in Search (ctrl - F)

    Are those numbers or text values?

    Pete

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

    Re: Multiple criteria in Search (ctrl - F)

    works for me with either but it must be an exact match it wouldn't find for example 123.567 and the cell is formatted to 2 decimal places so it looks like 123.57
    Attached Images Attached Images
    Last edited by martindwilson; 02-19-2014 at 03:26 PM.

  6. #6
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: Multiple criteria in Search (ctrl - F)

    Hi Martin,

    Thanks for your solution, but .. I got this far.

    I was more thinking of a solution that looks like If (A1 = "ABC.DE"and Not Like "ABC.D") or like IF(A1 = "Yesterday"and Not Like "Yes")

    Is this possible?
    If I can do this it would give me a lot more flexibility to search for items instead of trying every possible variation.

    Hain

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

    Re: Multiple criteria in Search (ctrl - F)

    im not sure where you ar going with this
    but you can use something like
    =ISNUMBER(SEARCH(" ???.?? "," "&B1&" ")) to see if its anywhere in a cell or surrounded by spaces

    =AND(LEN(B1)+2=8,ISNUMBER(SEARCH(" ???.?? "," "&B1&" ")))
    for a cell only containing the pattern

  8. #8
    Forum Contributor
    Join Date
    06-29-2005
    Posts
    201

    Re: Multiple criteria in Search (ctrl - F)

    I have tried your suggestion (hopefully with all correct quotes etc) but I don't think I can use the search option with a celladdress in it. I think (IMHO) that Excel searches for that exact text.

    In the meantime (why didn't I think of that earlier?) I think I may have a solution:
    I will write a macro that searches the entire worksheet (50000+ rows and 15 or so columns) and that searches for the cells that have the contents I am looking for (a macro gives me a lot of opportunities to define a string I am looking for)
    If a cell is found that matches the criteria I will make it, eg, yellow.
    As a 2nd step I can search for all yellow cells (using the ctrl-F option)

    It is a lot more work but writing this macro with inputboxes is a 1-time job that I can use multiple times.

    May I thank you for your trouble and time, it was most helpful, your suggestions put me on the right track
    Hein

  9. #9
    Registered User
    Join Date
    11-11-2021
    Location
    dubai
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Multiple criteria in Search (ctrl - F)

    Quote Originally Posted by Hein View Post
    Hi all,

    How can I, when I use the search - possibility (ctrl-F) use multiple criteria

    eg: I want to get every cell with contents ???.?? but not with the contents ???.? (both based on the contents of the entire cell)

    Is this possible?

    Thanks in advance
    Hein
    Hi Hein

    i am not an expert but what i would do is the below

    Ctrl+F you will get a search box, go to options, select "Match entire cell contents"
    here you can find 123.41 instead of 123.4 or ???.? instead of ??.?

    regards
    Mike

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Multiple criteria in Search (ctrl - F)

    Quote Originally Posted by mikelib62 View Post
    Hi Hein

    i am not an expert but what i would do is the below

    Ctrl+F you will get a search box, go to options, select "Match entire cell contents"
    here you can find 123.41 instead of 123.4 or ???.? instead of ??.?

    regards
    Mike
    Mike, thanks for the input (Did you notice this thread is almost 8 years old though? I have done the same thing myself before lol)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. formulas for search based on multiple criteria in multiple columns
    By oneworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 06:57 AM
  2. 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
  3. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 PM
  4. [SOLVED] How do I search excel spreadsheets using multiple search criteria.
    By Kasper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2005, 08:30 PM
  5. Replies: 2
    Last Post: 07-13-2005, 06:05 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