+ Reply to Thread
Results 1 to 3 of 3

How to Sum cells that have been conditionally formatted

  1. #1
    Registered User
    Join Date
    07-27-2014
    Location
    Southampton UK
    MS-Off Ver
    2007
    Posts
    13

    How to Sum cells that have been conditionally formatted

    Can anyone please explain in layman's terms how to sum a column that has been conditionally formatted.

    On the attached spreadsheet Sheet 1 D6:L18 has been conditionally formatted (green text and green font if certain customers appear in column A) - the data acquired by vlookup from a separate workbook. I would like a formula in row 31 to sum only the figures in black font - if at all possible!

    I've had a look at cpearson.com about colour functions but it's way over my head.

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to Sum cells that have been conditionally formatted

    Hi kbaz,

    Rather than testing the conditional format, just sum the column based on the condition that triggered the conditional format.

    It appears you're formatting the cells green/green if the value in column A for that row is either W, V and K. So test those cells to see if the rows are not W, V and K, then sum them.

    =SUMIFS(D6:D18,$A$6:$A$18,"<>W",$A$6:$A$18,"<>V",$A$6:$A$18,"<>K")

    Fill that to the right. In your sample workbook I get 0, 2500, 2500, 350, 450, ... which appears correct.

  3. #3
    Registered User
    Join Date
    07-27-2014
    Location
    Southampton UK
    MS-Off Ver
    2007
    Posts
    13

    Re: How to Sum cells that have been conditionally formatted

    Paul

    You are a star!

    Just what I needed and works perfectly.

    Thanks for your help.

+ 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. [SOLVED] count conditionally formatted cells
    By littlefoot in forum Excel General
    Replies: 5
    Last Post: 07-12-2012, 08:40 AM
  2. Replies: 10
    Last Post: 11-08-2010, 10:36 AM
  3. Sum conditionally formatted cells
    By akabraha in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2010, 02:22 PM
  4. Counting conditionally formatted cells
    By Nigel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-27-2008, 04:00 PM
  5. [SOLVED] Report for Conditionally Formatted Cells
    By Sige in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2005, 08:26 AM

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