+ Reply to Thread
Results 1 to 9 of 9

Filter Formula with multiple conditions

  1. #1
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Filter Formula with multiple conditions

    Good evening,

    I am struggling with the Filter function, where I try to filter 3 conditions. Even I thought,
    I did understand it, I must admit, I don't

    As seen in the Test file, I have in Sheet1 a table called "Test" with 4 Columns:

    - Person
    - Region
    - Responsibility
    - District

    When I filter in Sheet2 in Cell: D7, using the formula:

    =FILTER(TEST,TEST[Region]="R")

    I get the result as expected.

    If I try to extend the formula to filter for the Region and for the Responsibility as seen in Cell: D14,
    I fail terribly

    I tried with:
    =FILTER(Test,Test[Region]="R")*(Test[Responsible]="Single") and also with several other attempts.


    The target is, to have a filter, where I filter by Region="R", Responsibility="Single" and District="11",

    where I should end with:

    Person A
    Person C

    Can someone help?

    Thank you very much
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Filter Formula with multiple conditions

    You didn't count your brackets correctly:

    =FILTER(Test,(Test[Region]="R")*(Test[Responsible]="Single"))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Filter Formula with multiple conditions

    hmmmm,

    and when I would like to add a third condition as in the file, I get a #CALC error, so it is me

    Thank you so much for your help Glenn
    Attached Files Attached Files

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

    Re: Filter Formula with multiple conditions

    Maybe you could analyse with a pivot table.

    See the attached file.
    Attached Files Attached Files
    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.

  5. #5
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Filter Formula with multiple conditions

    I do agree with you but I would prefer it with a formula... pivot table will come next week.

    Thanx a lot for your help and support.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Filter Formula with multiple conditions

    You need to remove the quotes from the 12, otherwise it's looking for text & not a number.

  7. #7
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Filter Formula with multiple conditions

    Arrrrghhhh those bloody quotes... that did the trick... thank you so much Fluff

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Filter Formula with multiple conditions

    Glad to help & thanks for the feedback.

  9. #9
    Forum Contributor
    Join Date
    05-28-2020
    Location
    Poland
    MS-Off Ver
    O365,
    Posts
    120

    Re: Filter Formula with multiple conditions

    Short INFO,

    I have been playing around with Filter in a huge table with around 100 Columns, where I all the time run into a Value error. I was able to fix it, by
    Filtering from the right to the left. If I tried to filter from the left to the right, I had all the time an error, just in case it happens to you also, try from
    the right, it might helps...

+ 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] How to filter data based on multiple conditions
    By Mr. Z in forum Excel General
    Replies: 3
    Last Post: 07-22-2021, 12:40 PM
  2. how to apply filter formula for multiple conditions
    By akshay6s in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2020, 10:55 AM
  3. how to include multiple conditions in filter for vb
    By vimalanathk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2016, 12:33 AM
  4. how to include multiple conditions in filter for vb
    By vimalanathk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2016, 01:58 AM
  5. COUNTIF with multiple conditions and filter
    By danriley22 in forum Excel General
    Replies: 5
    Last Post: 07-15-2008, 04:49 PM
  6. Programming multiple filter conditions with autofilter
    By dingman4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2007, 09:30 PM
  7. Replies: 4
    Last Post: 09-28-2005, 07:05 PM

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