+ Reply to Thread
Results 1 to 3 of 3

How to count and sum "Condtional formatting" cells by color ?

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    4

    How to count and sum "Condtional formatting" cells by color ?

    I installed few add-ins for counting "Conditional formatted" cells but all are generating an instant (one-time) numeric result by activating that command.

    Also, I tried a code which gives an instant counting of 1 picked color without a total sum of all other colors -in my case 12 colors in a matrix. ("How to use the code to count colored cells and sum their values" - https://www.ablebits.com/office-addi...y-color-excel/ ) :

    Please Login or Register  to view this content.
    123.JPG

    My question is: Is there any functional code (or other aproach) which can count and sum all cells by "Conditional formatted" colors, on one sheet, and that the generated result is linked through common formulas? That can be updated/refreshed/code run during the work process as a complete overview of colors of a matrix (and not by picking every color every time as I mentioned).

    Thanks in advance!
    Last edited by dominicb; 10-13-2017 at 06:47 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: How to count and sum "Condtional formatting" cells by color ?

    Good afternoon coniconi

    There is no native way to count or sum cells that have been coloured using conditional formatting.
    The only way to achieve what you want to do is count (or sum) the cells based on the conditions that you have used to format them - not try and identify the colour that conditional format has applied.

    If you want further help on this, either attach a cut down version of your file, or post back giving the conditions you have used.

    HTH

    DominicB

  3. #3
    Registered User
    Join Date
    10-11-2017
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    4

    Re: How to count and sum "Condtional formatting" cells by color ?

    Thank you, Dominic for your time and your reply.

    Generally, what I'm dealing with is a matrix sheet of 52x24 cells.
    I have done on an easy way, which works - every column is manually copied from the first A column which generated first results and colors of "Conditional formatted" cells, which are all linked to the Database sheet.
    I have used the macro (installed) to pick and get the sum of every color. I have used also add-ins Kutools and Ablebits, but all are "one time result".

    What I'm looking, as previously mentioned, is there any way to make and "dynamic" sum results using basic or advanced formulas/macros.

    I have attached a sample of the matrix I'm currently dealing with. http://ge.tt/9dwKutm2
    Thank you in advance.

+ 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: 7
    Last Post: 09-12-2016, 09:43 AM
  2. Condtional Formatting and "AND" function
    By AdamW328 in forum Excel General
    Replies: 4
    Last Post: 09-10-2016, 06:46 AM
  3. Count cells with "this" hex color
    By Kalaminator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2015, 02:43 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  6. Why does =countif(range,"<>""") count empty cells?
    By Ingeniero1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2008, 01:40 PM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 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