A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

I need to count cells with conditional format



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 08:02 PM
Florian
external usenet poster
 
Posts: n/a
Default I need to count cells with conditional format

Hi, I have a table with cells that have conditional formats.
If one condition is met then that cell become red. Not all cells are red on a column.
I want to count only the red cells on that column. Is it possible?
Thx.
--
FlorianG
  #2  
Old June 15th, 2004, 08:07 PM
Simon Shaw
external usenet poster
 
Posts: n/a
Default I need to count cells with conditional format

Have you tried the COUNTIF function, using the same criteria set in the conditional formatting?

Otherwise, the only way I know of to count red cells is through a macro.

Simon Shaw
www.accounttech.ca

"Florian" wrote:

Hi, I have a table with cells that have conditional formats.
If one condition is met then that cell become red. Not all cells are red on a column.
I want to count only the red cells on that column. Is it possible?
Thx.
--
FlorianG

  #3  
Old June 15th, 2004, 08:27 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default I need to count cells with conditional format

Hi Florian
though i think Bob Phillips/Harlan Grove posted a solution for checking
the conditional format conditions it would be much easier just to
duplicate your conditions in a formula. Using COUNTIF or SUMPRODUCT

Note: you also can't use a macro to count the red cells as the
conditional format color does not change the colorindex property of a
cell.



--
Regards
Frank Kabel
Frankfurt, Germany


Florian wrote:
Hi, I have a table with cells that have conditional formats.
If one condition is met then that cell become red. Not all cells are
red on a column. I want to count only the red cells on that column.
Is it possible?
Thx.


  #4  
Old June 17th, 2004, 02:11 AM
Florian
external usenet poster
 
Posts: n/a
Default I need to count cells with conditional format

I manage to get what I wanted with a complicated "uncompressed" formula (like a DivX compared with AVI uncompressed). The formula was something like this: =SUM(AND(G7=$F7)+AND(G8=$F8)+AND(G9=$F9)+AND(G10=$ F10)+AND($F11=G11)+AND($F12=G12)+AND($F13=G13)+AND ($F14=G14)+AND($F15=G15)+AND($F16=G16)+AND(G17=$F1 7)+AND(G18=$F18)+AND(G19=$F19)+AND(G20=$F20)+AND(G 21=$F21)+AND(G22=$F22)+AND(G23=$F23)+AND(G24=$F24) +AND(G25=$F25)+AND(G26=$F26)+AND(G27=$F27)+AND(G28 =$F28)+AND(G29=$F29)+AND(G30=$F30)+(AND(G32=$F32)* AND(G320))+AND((G33=$F33)*AND(G330))+AND((G34= $F34)*AND(G340))+AND((G35=$F35)*AND(G350))+AND ((G36=$F36)*AND(G360))+AND((G37=$F37)*AND(G370 ))+AND((G39=$F39)*AND(G390))).
Ugly, isn't it? But was that I was looking for. Lucky me I just needed only 30 rows to count, otherwise I'm pretty sure that this formula will not work if it was larger.
Anyway thanks for your advices. Macros I don't know to use.
--
FlorianG


"Florian" wrote:

Hi, I have a table with cells that have conditional formats.
If one condition is met then that cell become red. Not all cells are red on a column.
I want to count only the red cells on that column. Is it possible?
Thx.
--
FlorianG

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:13 AM.


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