+ Reply to Thread
Results 1 to 4 of 4

Count cells that have a conditionally formatted background

  1. #1
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Count cells that have a conditionally formatted background

    I have been unable to find a thread which explains how to use VBA to count the number of cells in a range that meet conditional formatting test by placing a green background color in the cell. Rather than trouble anyone with my workbook, can you give me a link I can research?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count cells that have a conditionally formatted background

    Hi,

    It's no trouble. In fact we almost always prefer to see a workbook since it avoids so much confusion.

    One suggestion. The CF will contain a formula that presumably evaluates some other cells. Can't you use a COUNTIFS() function to look at those cells and return the count.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Count cells that have a conditionally formatted background

    I had not thought of that. Sure, the CF is based on an equation which perhaps could be the equation used for the countifs() function. I think I will go in that direction instead and consider this solved. Thanks. (Think I'll leave it on until tomorrow so I can check out what you have suggested, into cocktail now!)
    Thanks.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count cells that have a conditionally formatted background

    ...and maybe if not a COUNTIFS in a single cell, then an array formula perhaps.

+ 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 Conditionally Formatted Cells (Visible Only)
    By LJenny in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-25-2015, 02:46 PM
  2. Count conditionally formatted cells in excel
    By katiejessop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2013, 11:19 AM
  3. [SOLVED] How To Count Conditionally Formatted Cells
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2013, 07:51 PM
  4. UDF to Count Conditionally formatted cells by colour
    By ozzy_q in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-06-2013, 09:00 AM
  5. [SOLVED] count conditionally formatted cells
    By littlefoot in forum Excel General
    Replies: 5
    Last Post: 07-12-2012, 08:40 AM
  6. Replies: 1
    Last Post: 08-26-2011, 09:57 AM
  7. [SOLVED] Can I count conditionally formatted red cells in Excel 2000
    By ExcelUser in forum Excel General
    Replies: 1
    Last Post: 08-02-2006, 10:45 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