+ Reply to Thread
Results 1 to 3 of 3

how to combine multiple conditions with search functions and macro the function

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    26

    Cool how to combine multiple conditions with search functions and macro the function

    Hi all,

    I am finding ways to conduct a search for rows with multiple conditions.

    e.g.

    2010 cat10 closed yes
    2012 dog20 closed yes
    2010 cat15 closed yes

    I need to find 2010,cat,closed, yes as my conditions. Do note that cat has cat10 and cat15, but I want to search anything with cat. so effectively, I will have 2 rows with that condition.

    my method:

    Please Login or Register  to view this content.
    but there are some errors, can somebody guide me along?

    I am thinking of seperating the functions so that macro can work, but not sure how.
    Last edited by melvyndb; 04-12-2012 at 09:15 PM. Reason: solved

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: how to combine multiple conditions with search functions and macro the function

    Hi there

    Try this Excel function:
    Please Login or Register  to view this content.
    Note - I found that I had to leave the "" off of the 2010. If you have the values stored as text, you will need to put them back:
    Please Login or Register  to view this content.
    If in doubt, or you have a mixture, you can get around it by introducing a VALUE command:
    Please Login or Register  to view this content.
    Here is some code for a VBA function:
    Please Login or Register  to view this content.
    Best regards, Rob.
    Last edited by rscsmith; 04-12-2012 at 08:19 AM.

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: how to combine multiple conditions with search functions and macro the function

    forgot to comment that the first solution already worked... thanks rob.

+ 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