+ Reply to Thread
Results 1 to 4 of 4

Sum of conditionally formatted cells by colour

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    cambridge
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sum of conditionally formatted cells by colour

    Hi there,

    In one of the coloumns i have the option of entering A, B or C. i have set up conditional formatting so that the row changes colour depending on whether A, B or C is entered in the first coloumn. i now want to sum all the values that Pink (A) and create a total number.

    I have been looking online and it seems that summing colours with conditional formatting applied is fairly difficult and have tried the chip pearson method but with no joy as it is complex!1

    any ideas??
    Last edited by codeyl5; 07-25-2012 at 09:45 AM.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Sum of conditionally formatted cells by colour

    Hello
    If the colour of the row depends entirely on the value entered in column A, then perhaps you could use a SUMPRODUCT function to sum the values of each row with a header of 'A' or 'B' etc. For example, if the values where in the range: A2:F10, then the following formula would sum all the rows with 'A' in column A.

    =SUMPRODUCT(($A$2:$A$10="A")*$B$2:$F$10)
    If you want to sum by cell colour you would have to use VBA.

    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    cambridge
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sum of conditionally formatted cells by colour

    Thanks for your help, this worked perfectly!!!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sum of conditionally formatted cells by colour

    @ codeyl5

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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