Count cells in a row that has been coloured by Conditional Formatting

New Contributor

I want cells that are in a row counted if they have a colour that has been set by Conditional Formatting and the number to be shown in a separate column.
I have uploaded a file that you can use and see what I am talking about - Dummy Test.
I would prefer not to have to use Macros.
The cell rows that have Conditional Formatting are K6 to Y6 and then the rows below. The result of the count to be in J6 and the cells below.
Thanks for your help. Chris

5 Replies

@Chris Sewley 

You may repeat the logic of conditional formatting rules as


continue the formula for the rest of columns

@Sergei Baklan 

Hi Sergei
I completed the formula hopefully correctly. When I put it into J6 I got an error message. I have uploaded it. I cannot see where I went wrong. This is the completed formula that I put into the cell.


Thanks for your help in sorting out my problem.

Regards. Chris

best response confirmed by Chris Sewley (New Contributor)

@Chris Sewley 

I didn't check with your file, errors are here


shall be >=0 or <=0 or like


correct is >=0


>=1 or <=1 or =1

This one have no syntax error, but yo shall to check the logic

Thanks for your help Sergei. it works great. Saves me having to physically count the cells now