+ Reply to Thread
Results 1 to 7 of 7

Sum of cells colored using conditional format

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    Sum of cells colored using conditional format

    Hi friends,

    I would appreciate a bit of help with my below problem.

    I have a table in which I have conditionally formatted certain cells.
    Now I want to sum the conditionally formatted cells (that are colored distinctly) both row-wise and column-wise i.e. the sum of colored cells.
    I tried applying a vba program for adding the sum of colored cells but it would not work on the conditionally formatted cells.
    Could you please guide?

    Thanks in advance.
    Last edited by joshuar; 10-21-2009 at 08:18 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum of cells colored using conditional format

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Sum of cells colored using conditional format

    What's the rule they are conditional formated?
    Use that info.

  4. #4
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    Re: Sum of cells colored using conditional format

    Please find attached a dummy file.
    I want the columnwise & rowwise sums for coloured cells.
    Attached Files Attached Files

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Sum of cells colored using conditional format

    won't work
    Last edited by zbor; 10-19-2009 at 09:49 AM.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum of cells colored using conditional format

    Try:

    =SUMPRODUCT(--($F5:$AL5<>""),--($G5:$AM5=""),--($H$2:$AN$2+60<TODAY()),--($H$2:$AN$2<>""),$F5:$AL5)

    copied down

  7. #7
    Registered User
    Join Date
    07-10-2008
    Location
    Bahrain
    MS-Off Ver
    2007 version
    Posts
    37

    Smile Re: Sum of cells colored using conditional format

    Thanks a ton NBVC.
    The formula works fine. Would like a short briefing though.
    Also why did the sum of colored cells formula not work for conditionally formatted cells.
    Thanks,

+ 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