+ Reply to Thread
Results 1 to 6 of 6

Filter based on multiple or condition

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Filter based on multiple or condition

    Hi Everyone,
    Is there a way to filter data based on multiple OR condition with a like parameter.
    I have data which has near about 50000 rows and now i would like to filter on a header called "Activity Type" and would like to fetch result for a text which resembles "from ABC group" or "From PQR group" or "From XYZ group".
    thank you

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Filter based on multiple or condition

    hi mangesh. assuming data in A1:D10, you can do a formula in G2:
    =OR($A2={"from ABC group","From PQR group","From XYZ group"})

    then go to Data tab -> Advanced.
    List Range:
    Sheet1!$A$1:$D$10
    Criteria Range:
    Sheet1!$G$1:$G$2

    then press OK. another way is to list all the conditions you want in G1:G3:
    Activity Type
    from ABC group
    From PQR group
    From XYZ group

    then criteria range is now:
    Sheet1!$G$1:$G$3

    if it doesn't work, I suggest you upload an Excel file in the thread. To do that, Click on GO ADVANCED and use the paperclip icon to open the upload window.
    View Pic
    and to illustrate your example better, click on How To Get Quick & Good Answers

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Filter based on multiple or condition

    Hi Benishiryo,
    Appreciating your help. However in "Activity Type" i have the word from ABC group, from PQR group along with other text.
    For example "reassigned from ABC group to STW group". Here the challenge is to read "from ABC group" from entire text and then apply the formula.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Filter based on multiple or condition

    Try like this...

    =IF(SUM(COUNTIF(A2,{"*from ABC group*","*From PQR group*","*From XYZ group*"})),"Found","Not Found")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Filter based on multiple or condition

    put in this formula in G2:
    =OR(ISNUMBER(SEARCH({"from ABC group","From PQR group","From XYZ group"},$A2)))
    or:
    =SUM(COUNTIF($A2,{"*from ABC group*","*From PQR group*","*From XYZ group*"}))>0

    or use asterisk for this list in G1:G4:
    Activity Type
    *from ABC group*
    *From PQR group*
    *From XYZ group*

  6. #6
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Filter based on multiple or condition

    Hi Sixthsense,
    Thank you very much, its working.
    I also appreciate help provided by Benishiryo.

+ 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. One filter/ Master filter multiple pivot tables based on worksheet...
    By jlworden in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-10-2013, 11:16 AM
  2. Filter multiple lines with 1 condition
    By buddhaqc1 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-08-2013, 03:55 PM
  3. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 AM
  4. Replies: 1
    Last Post: 04-15-2009, 09:44 AM
  5. On Filter Multiple Condition
    By joe12613 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2007, 03:17 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