+ Reply to Thread
Results 1 to 7 of 7

Is there a formula to filter for more than one colored cell?

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Is there a formula to filter for more than one colored cell?

    Greetings,

    I understand how to use the filter function but it appears that you can only filter one color at a time. Is there a way to filter for all colored cells? Thanks.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Is there a formula to filter for more than one colored cell?

    Hi,

    You can use only one color at a time while filtering if you use "Filter By Color" option. However, you can use "SORT by color" option wherein you can chose multiple colors to sort, if that works for you.

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Re: Is there a formula to filter for more than one colored cell?

    Thanks for the reply but I was hoping for something more substantial. I have over 700 rows of data where 30 are actually colored. I wanted a formula (or whatever works) that only showed the colored rows.

  4. #4
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Re: Is there a formula to filter for more than one colored cell?

    I guess I should be more specific:

    I have a list dataset of product numbers (p#) where the p# can occur multiple times throughout the dataset. The p# may be colored 1 of 3 ways (e.g. r,g,b). Using the multiple sort by color feature does not group similar p#'s together (which is what I need):

    p1
    p1
    p2
    p2
    p3
    p3

    I hope that make sense.

  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,938

    Re: Is there a formula to filter for more than one colored cell?

    Add a helper, use a countif() formula to determine the count, then filter on that

    =COUNTIF($A$1:A1,A1)
    copied down
    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

  6. #6
    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,938

    Re: Is there a formula to filter for more than one colored cell?

    Add a helper, use a countif() formula to determine the count, then filter on that

    =COUNTIF($A$1:A1,A1)
    copied down

  7. #7
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Re: Is there a formula to filter for more than one colored cell?

    Either I'm not filtering properly or there needs to be another function added. I sorted by color then filtered by 1,2,38,and 118. I'm still not getting the product ids to group by color using this method.

    product_id count
    306501 1
    306501 2
    311647 1
    324765 1
    324765 2
    327806 1
    327806 2

    306501 38
    306501 118
    311647 2
    311647 38
    311647 118
    320605 1
    320605 2
    320605 38

+ 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] filter for different sets of colored data
    By jolenec in forum Excel General
    Replies: 5
    Last Post: 03-14-2014, 08:57 PM
  2. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  3. Can you provide a conditional formula with colored cell change
    By DannyCog in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-01-2011, 11:56 AM
  4. How to automatically filter can filter and blue-colored cells
    By ersoyalanprovus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2009, 01:20 PM
  5. If Text is colored, is there a formula
    By mlevy4 in forum Excel General
    Replies: 4
    Last Post: 10-31-2007, 06:50 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