+ Reply to Thread
Results 1 to 9 of 9

Count color cell background for each row

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    12

    Question Count color cell background for each row

    Hi all,

    This I imagine this is very simple, but i have a spreadsheet of 200 rows, and using conditional formatting, I have highlighted certain cells a color green.

    I would like to be able to sum count how many green cells are in each row, so I can sort them highest to lowest

    For example, one row has color cells between D3 and J3, and i would like the total to appear in K3

    There are 214 rows in total

    If this a =sumif or a more complex function?

    thank you for your help and time

  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
    52,926

    Re: Count color cell background for each row

    You cannot use regular formulas to count colors, however, you might be able to use the same rule you did for the CF, to do the count

    edit: is there an echo in here, hum? lol
    Last edited by FDibbins; 04-30-2015 at 11:52 PM.
    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
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Count color cell background for each row

    you cannot count conditional format (or do anything with conditional formats)

    you can only replicate the condition of the conditional format and sum based on that
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Count color cell background for each row

    Hi DHExcel1,

    Check the attached file if it works.

    Regards,
    AM
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Count color cell background for each row

    Ford your too fast

    Ashishmehra
    This solution is not conditional format like OP uses
    they would need to go and physically highlight cells in order to get the output to work

  6. #6
    Registered User
    Join Date
    06-23-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    12

    Smile Re: Count color cell background for each row

    Thank you for your help ...

    I modified the file ... i created some rows, but the formula counts all the background colors for all the rows, and not each row

    Reading across, the first row would have a total for that one .. the next row would have it's own total

    is there a way for the formula to apply to each row on its own?

    thank you

  7. #7
    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,926

    Re: Count color cell background for each row

    You said you used CF to apply those colors? I can find no cells with FC in them. Regular formulas work on data, and cannot work of formatting - and color is a format, not data. If you applied the colors through regular formatting, VBA is probably your only option. If the color was applied through CF, we can probably put a formula together based on teh CF rule

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count color cell background for each row

    See this for techniques on how to calculate based on color.

    http://www.cpearson.com/Excel/colors.aspx

    IMHO, you should avoid this as it doesn't work the way you think it does.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Registered User
    Join Date
    06-23-2014
    Location
    florida
    MS-Off Ver
    2010
    Posts
    12

    Re: Count color cell background for each row

    Actually I am using Google Spreadsheets to conditional format it, it's coming in from a google form

    I am then pasting it into Excel since that has better formulas

+ 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. Count / Sum based on Background Color with Manual and Conditional Format Color
    By sam99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2014, 08:00 PM
  2. Change cell background color based on another cells background color
    By Queo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 06-10-2014, 05:28 AM
  3. [SOLVED] Count Cell with Background color
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2013, 05:29 AM
  4. VBA Module counts background color, would like it to count font color
    By LawBeforeGrace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2013, 08:11 AM
  5. [SOLVED] Need help with complicated use of count background color of Cell
    By Jane in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2005, 12:05 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