Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pmahajan
 
Posts: n/a
Default Count and Sum with Conditional Formatting Problem

Hello:

I have the following conditional formatting conundrum related to an
excel based gantt chart:

I have a range of cells with no values in them. Instead I have them set
to turn green in color based on conditional formatting.

The conditions are as follows.

FormulaIs = D$1=$B2
FormulaIs = D$1=$C2
FormulaIs = AND(D$1$B2, D$1<$C2)

When true - cells turn green indicating the condition is met. If not,
they are white or transparent.

I would like to sum or count the cells that turn green when these
conditions are met. The green cells represent time bars that match
start and end times of an event in a given row. Summing would occur
across a range of cells. I would like to mention that I have not added
any values to these cells.

I have tried to use code from Chip Pearson's site, but to no avail. I
really need to sum up or count the cells that meet my conditional
formatting requirements. Please help. Your help is much appreciated.
Thanks,

PM

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You need to "place" something in the cell that can be
evaluated and used in a sum/count type formula.

For instance, write an IF formula that uses a value if
true argument of <space:

=IF(D1=B2," ","")

You don't see the <space but now, that <space can be
counted.

=SUMPRODUCT(--(LEN(A1:A10)=1))

Biff

-----Original Message-----
Hello:

I have the following conditional formatting conundrum

related to an
excel based gantt chart:

I have a range of cells with no values in them. Instead I

have them set
to turn green in color based on conditional formatting.

The conditions are as follows.

FormulaIs = D$1=$B2
FormulaIs = D$1=$C2
FormulaIs = AND(D$1$B2, D$1<$C2)

When true - cells turn green indicating the condition is

met. If not,
they are white or transparent.

I would like to sum or count the cells that turn green

when these
conditions are met. The green cells represent time bars

that match
start and end times of an event in a given row. Summing

would occur
across a range of cells. I would like to mention that I

have not added
any values to these cells.

I have tried to use code from Chip Pearson's site, but to

no avail. I
really need to sum up or count the cells that meet my

conditional
formatting requirements. Please help. Your help is much

appreciated.
Thanks,

PM

.

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



All times are GMT +1. The time now is 02:55 PM.

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

About Us

"It's about Microsoft Excel"