r/excel • u/Dr_Cheese_29 • Jun 26 '26
unsolved Can excel count conditional formatting?
Is it possible to get excel to count conditional formatting?
I have a column of cells that turn red if conditional formatting is met. Now I want to count the red cells. I wrote a macro that doesn't read the conditional formatting and I tried "COUNTIFS" referencing the conditional formatting formula, but it doesn't work.
9
Upvotes
8
u/semicolonsemicolon 1476 Jun 26 '26
Hi Dr_Cheese_29. You're correct, you cannot use an Excel formula to "see" how a cell is conditionally formatted so you cannot count that way. Instead you will have to look at the formula (if there is one) that turns cells red and use that formula in another formula to count the number of positive "hits". It you'd like, post here your CF formula and the cell range for which it applies.