+ Reply to Thread
Results 1 to 4 of 4

Counting/Summing cells with the same conditionally formated color

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Counting/Summing cells with the same conditionally formated color

    I am trying to do two things: 1. count the number of cells that have the same background cell color and 2. sum the values in those cells that have the same background cell color. I am new to Excel so i need the most simple way to do this please. Thanks in advance!

  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
    53,051

    Re: Counting/Summing cells with the same conditionally formated color

    try and use a filter based on the cell color you want, and then use a count() and sum() for the values left.

    alternatively, how do the cells get their colors? if there is some for of conditional formatting involved, you cold base your tota and sum 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
    08-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Counting/Summing cells with the same conditionally formated color

    That will not work because i will constnatly have to change the formula. This is a tracking spreadsheet, so the number of rows of reds, yellows, and greens will constantly be changing. Any other suggestions?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Counting/Summing cells with the same conditionally formated color

    You need to count the conditions that cause the colour change

    So if the Condition is that a cell in A1 to A10 = 5 the colour changes

    =SUMIF(A1:A10,5,A1:A10)

    =COUNTIF(A1:A10,5)
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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