+ Reply to Thread
Results 1 to 8 of 8

how to count colored cells?

  1. #1
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    how to count colored cells?

    hi all,

    I have a wide table of numbers which I've sorted by some criteria, coloring the cells with specific colors.
    Please see photo attached.

    Is there a way to sort out on each line the number of colored cells?

    many thanks!
    Attached Images Attached Images

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: how to count colored cells?

    You could use COUNTIFS based on whatever criteria you used to colour the cells.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: how to count colored cells?

    thnks TMS, pls see the screenshot, I've done the =countifs ; selected range , -but as a criteria how can I impose the green colored cells? and how can I make it extrapolate how many cells are colored?
    Attached Images Attached Images

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: how to count colored cells?

    Did you colour those cells manually or by using conditional formatting? What criteria do those cells have to meet to be coloured green?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: how to count colored cells?

    Why don't you just make this simple and upload your workbook?

    ViewPic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  6. #6
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: how to count colored cells?

    here's the spreadsheet

    many thanks!
    Attached Files Attached Files

  7. #7
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: how to count colored cells?

    I added column A and that's where you will find the formulas.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: how to count colored cells?

    Compared to skywriter's solution, this looks a little over engineered I've copied the code from Chip Pearson's download verbatim. He also has a Selection Change event handler to simulate a change event when a cell's colour is changed (this relies on a Named Range called ColorCells)

    The event handler is listed here but there is too much code in the Color functions to list.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  2. COUNT (or SUM?) colored cells
    By beanpoddy in forum Excel General
    Replies: 2
    Last Post: 03-27-2012, 01:14 PM
  3. Don't Count Cells Colored Red
    By scotfitz in forum Excel General
    Replies: 1
    Last Post: 04-20-2008, 04:19 PM
  4. Count colored cells?
    By mlk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2007, 06:30 PM
  5. count colored cells
    By apx2001 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2006, 01:00 PM
  6. count colored cells?
    By DKY in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 01-19-2006, 05:50 PM
  7. How to Count only Colored cells
    By WM_1956 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2005, 09:35 AM
  8. Count non-colored cells
    By Ken G in forum Excel General
    Replies: 3
    Last Post: 01-02-2005, 09:07 AM

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