+ Reply to Thread
Results 1 to 2 of 2

Count Cells Based on Colour Determined by Conditional Formatting

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Wigan
    MS-Off Ver
    2010
    Posts
    1

    Count Cells Based on Colour Determined by Conditional Formatting

    Hi all,

    I've tried many things on this one, and a colleague has directed me to this forum with high praise for what you're able to do. It's my last resort; so here's hoping!

    I'm trying to get a way to count the amount of cells coloured green in a document, but the cells are coloured by conditional formatting (two rules - format top one [green] and bottom one [red] based on range).

    I've found a few options via Google, but none seem to work right. I'll say right as I've been able to place a condition that if it doesn't find the colour is displays "Colour not found" (which works), but when it should find the colour it's returning a #Value error.

    Things to note:
    • I've attached a dummy document - This document shows only one table on Sheet 1 - In the real document, there are multiple.
    • Cells are not coloured based on a specific value, but rather the highest one. The highest number could vary from 0 to 25.
    • The conditional formatting is spread across the row, aimed to highlight the Group with the highest score for that row/criteria (along with highlighting the lowest in red).
    • The aim is to count how many Greens a column has - Essentially, how many of the top scores has the column got. In this example document, Group 1 has ten, Group 2 has three, Group 3 has three and Group 4 has four.
    • The information is pulled into the chart from different sheets.

    I've been able to implement a really rough work-a-round in my main document by chucking in a =MAX cell at the end of each row, chucking an =IF to assign "1" when it matches the max and "0" when it doesnt, and then =COUNTIF on the range for "1". However, this isn't the tidiest solution, so any help to aid in tidying this one up would be appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Count Cells Based on Colour Determined by Conditional Formatting

    you could build this function of the colors you want to use:
    then an outer cell would be F3=getColor(a3)
    to convert the color to english, then you can pivot data.

    Please Login or Register  to view this content.

+ 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] Conditional Formatting: Comparing Multiple Cells & Highlighting Based On Colour
    By WorkWear in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2015, 10:47 AM
  2. [SOLVED] Count cells based on Conditional formatting
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2014, 03:41 PM
  3. count of colour for conditional formatting
    By Sankara Narayanan in forum Excel General
    Replies: 1
    Last Post: 11-08-2013, 06:42 AM
  4. Count blank cells by colour based on conditional formatting
    By mb0202 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 07:37 AM
  5. [SOLVED] Count cells with date criteria matching conditional formatting colour
    By summer2010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 04:34 AM
  6. [SOLVED] Conditional Formatting (?) based upon another cells colour
    By bellevue in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2012, 04:27 AM
  7. conditional formatting based on cell colour
    By nervous_pilchard in forum Excel General
    Replies: 0
    Last Post: 07-12-2011, 05:29 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