+ Reply to Thread
Results 1 to 15 of 15

Filter contains more than 2 contains values?

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Question Filter contains more than 2 contains values?

    Hi,

    I need to filter a table by multiple OR contains values.

    The filter only lets me put in two values.

    Is there a way to filter for say 6 different terms?

    Thanks

  2. #2
    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
    52,939

    Re: Filter contains more than 2 contains values?

    I have never had a problem applying multiple filters to the same column, but maybe add a helper column, and use that to test for what you want - then filter on that?
    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

  3. #3
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    There are only two input boxes though? How can you add more?

    Thanks

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter contains more than 2 contains values?

    If there are only two check boxes in the filter, that means that there are only two unique items in that column.

  5. #5
    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
    52,939

    Re: Filter contains more than 2 contains values?

    Quote Originally Posted by 63falcondude View Post
    If there are only two check boxes in the filter, that means that there are only two unique items in that column.
    Agreed, if you think there should be more, check the 1's you think are different

  6. #6
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    Hmmm, I think we're looking at different filters.

    This is what I see, I've only ever seen two input fields to filter by?

    Screen Shot 2017-11-14 at 07.40.29.png

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,578

    Re: Filter contains more than 2 contains values?

    Perhaps we could be of more help if you would upload a sample spreadsheet and tell us what values you would like a filter to display.
    To upload a sample spreadsheet click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    Sure, I've put an example together please find attached.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,578

    Re: Filter contains more than 2 contains values?

    As Ford mentions in post #2, a way to filter would be to set up helper columns and filter on those.
    In the attached copy of your file the formula that populates the helper columns is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then select only the 1 from the filter drop down in either cell C6 or D6.
    Let us know if you have any questions.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    Super, thanks JeteMc. I wasn't sure what Ford meant be a helper column but it makes sense now!

    Is there a way to filter both columns for 1 or can is it only possible to do one at a time?

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,578

    Re: Filter contains more than 2 contains values?

    Yes, providing that there is some overlap. That is that after filtering one column, if there are some items in the second column that will return a 1 from the formula. Example: Change cell B2 to the word 'result'. You should then be able filter columns C and D by showing items with a value of 1.
    Let us know if you have any questions.

  12. #12
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    I thought that might be the case, thanks.

    I'll have to filter them seperately I think then as there is no overlap for many in my data.

    Thanks for your help!

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,578

    Re: Filter contains more than 2 contains values?

    If you want to see all the records that contain either the key words in A2:A4 or the key words in B2:B4 then you could set up an advanced filter as described in this article, especially in the section "AND vs OR".
    An advanced filter has been applied to the attached copy of the file.
    Let us know if you have any questions.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    11-11-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Filter contains more than 2 contains values?

    Amazing, thank you so much!

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,578

    Re: Filter contains more than 2 contains values?

    You're Welcome and thank you for the feedback. Please take a moment to mark t he thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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. VBA - Auto Filter and make new sheets based on the filter values- Loop
    By Paul Cherian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2017, 06:41 AM
  2. define custom filter and filter between TO and FROM values
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2015, 12:14 PM
  3. [SOLVED] Excel 2007-Adv Filter Copy and Loop with Nested Autofilter Using Values from Adv Filter
    By Southfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2014, 02:07 AM
  4. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  5. Replies: 5
    Last Post: 12-19-2013, 06:58 AM
  6. [SOLVED] excel vba filter values to listbox from combobox and save edit values in textbox
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 08:42 AM
  7. Replies: 1
    Last Post: 01-14-2013, 04:01 AM

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