Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 199
Default Counting Coloured Cells - Conditional Formatting


Hi

I'm using Excel 2003 and have a range of cells whose colour is
determined by conditional formatting.

Does anyone please know if there is a way to count the cells in this
range which have a particular colour - say yellow?

I have a feeling I tried this before but could only find a solution
which worked if the cell colour was from ordinary (manual) formatting
rather than conditional formatting.

Many thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Counting Coloured Cells - Conditional Formatting

Hi Victor,

Am Fri, 15 Jan 2016 20:53:52 -0000 schrieb Victor Delta:

Does anyone please know if there is a way to count the cells in this
range which have a particular colour - say yellow?


try it with SUMPRODUCT and use the condition for the yellow color in
that formula.


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Counting Coloured Cells - Conditional Formatting

Hi V.D.,

Am Sat, 16 Jan 2016 00:13:19 -0000 schrieb Victor Delta:

The range of cells is AX2:AX930 and the relevant conditional formatting
formula in, say, cell AX3 is
=AND(BN3="10",AY3<"N",OR(ISBLANK(AX3),TODAY()AX3 +60)).


if AX3 is blank the value is 0 and TODAY() is always greater than
AX3+60.
Therefore you only need for CF:
=AND(BN2=10,AY2<"N",TODAY()AX2+60)

And to count the yellow cells you can use:
=SUMPRODUCT(((BN2:BN930=10)*(AY2:AY930<"N"))*(TOD AY()AX2:AX930+60))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting coloured cells? Atomic Excel Worksheet Functions 2 December 1st 09 11:25 PM
Counting coloured cells SNC-DW Excel Worksheet Functions 3 October 13th 09 11:52 AM
Counting coloured cells SNC-DW Excel Worksheet Functions 0 October 12th 09 12:35 PM
Counting coloured cells SNC-DW Excel Worksheet Functions 0 October 12th 09 12:35 PM
counting coloured cells Tony Excel Worksheet Functions 3 April 7th 05 10:17 AM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"