Forum

Notifications
Clear all

Counting colored cells

10 Posts
2 Users
0 Reactions
152 Views
 bohi
(@bohi)
Posts: 5
Active Member
Topic starter
 

I have a column of Conditionally Formatted cells where D1 equals 1, then A1 Background fill is Gray.  Is this a formula to count these Gray cells without using VBA?

 
Posted : 19/08/2016 10:27 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi bohi

Since only cells with 1 will turn Gray, you might as well just count all the cells with 1's.

 
Posted : 19/08/2016 10:39 am
 bohi
(@bohi)
Posts: 5
Active Member
Topic starter
 

Good morning SunnyKow,

I guess I should have included more detail.  If D1 = 1, then A1 is Gray.  If E1 = 2, then A1 is yellow and if F1 = 3, then A1 is Strikethrough.  My intention was to count just the D1 = 1, then A1 is Gray conditional format.  Column A shows current progress on a specific task which is updated daily sometimes hourly.

 
Posted : 19/08/2016 10:46 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi

Are all the colored cells in column A?

 
Posted : 19/08/2016 10:52 am
 bohi
(@bohi)
Posts: 5
Active Member
Topic starter
 

Yes but i only interested in counting the Conditional Formatted Gray Cells.  Once they turn Yellow or Strikethrough, it's out og my hands.  I am aware of the formula to count all 1's, but they all have 1's once they are entered into the spreadsheet.

 
Posted : 19/08/2016 10:56 am
(@sunnykow)
Posts: 1417
Noble Member
 

Can I say that if D is 1 it turns grey but if E also have a 2, it will override with yellow?

So you may have D=1 and E=2 and possibly F=3 all filled in a single row. 

You need to find Grey cells with  D=1, E=blank and F = blank. Am I correct?

 
Posted : 19/08/2016 11:07 am
(@sunnykow)
Posts: 1417
Noble Member
 

Can you see if this is what you want?

 
Posted : 19/08/2016 11:13 am
 bohi
(@bohi)
Posts: 5
Active Member
Topic starter
 

SunnyKow,

 

Attached is an update to your spreadsheet showing how I have my formulas. Condition 2 overrides condition 1 and condition 3 overrides condition 2

 
Posted : 19/08/2016 11:56 am
 bohi
(@bohi)
Posts: 5
Active Member
Topic starter
 

SunnyKow,

Thank you for your help on this issue.  Once I started communicating back and forth with you, it occured to me that I was going about this in the wrong way.  Instead of trying to figure our how to write a formula for a Conditional Format, why not write a formula for a regular issue.  My solution is

=SUMIFS(Sheet1!$F:$F,Sheet1!$W:$W,"1",Sheet1!$X:$X"",Sheet1!$Y:$Y,"")  This tells me qty of $F:$F if $W:$W =1 and $X:$X is blank and $Y:$Y is blank.

Thank you for your inspirationSmile

 
Posted : 19/08/2016 1:44 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Glad to be able to help out Cool

 
Posted : 19/08/2016 6:51 pm
Share: