+ Reply to Thread
Results 1 to 4 of 4

sum cell values by criteria there cell color (Excel Mac 2011)

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    london
    MS-Off Ver
    Excel 2011 Mac
    Posts
    2

    sum cell values by criteria there cell color (Excel Mac 2011)

    In A2:A50 i have different numerical values. I would like to sum all cells that has been colored red. Is this possible? Thankful for help

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: sum cell values by criteria there cell color (Excel Mac 2011)

    Hi
    It's easy, except you need to tell your formula what you mean by "Red"! there are thousands of RGB combinations that look "red"

    if you are using the microsoft default red RGB(255,0,0) then this user-defined formula should work (or if you know the RGB of the colour your are using, use this instead of FontColour = RGB(255, 0, 0))

    Please Login or Register  to view this content.
    if not, try this formula. The first cell to enter has the font colour you want to count, the range includes the cells whose values you want to sum. So to count cells in B1:F1 with the same font colour as A1, Your formula will look like this

    =Function colours_add_match_first(A1,B1:F1)

    Please Login or Register  to view this content.
    Last edited by NickyC; 06-19-2013 at 04:54 AM.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: sum cell values by criteria there cell color (Excel Mac 2011)

    you really need to make those functions volatile. they still won't react to simply changing a cell color but at least they will update when the workbook calculates ;-)

    of course not using color as data is better
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    02-25-2015
    Location
    Brussels
    MS-Off Ver
    Mac2011
    Posts
    1

    Re: sum cell values by criteria there cell color (Excel Mac 2011)

    Hey, I am currently trying this but can't seem to let it work.

    So I need to create a macro with that code, and make sure the extension is macro-enabled.

    That's what I've done but I can't seem to manage to make this work unfortunately..

+ 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