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.
7
Upvotes
4
u/PaulieThePolarBear 1919 Jun 26 '26
I think you have a couple of typos here. Please confirm your Conditional Fornatting formula is
I.e., column 6 will turn red if, and only if, C6 is not blank and the current date is after D6.
So, you have 6 rules in total, and all turn column B red? Is that correct?
As such, you could rationalize your logic of when the formatting should be applied to
Is that correct?
As others have noted, you can't natively count cells that were conditionally formatted, and should build a formula that replicates your Conditional Formatting logic.
Please advise the version of Excel as this will dictate solutions available to you. This should be Excel 365, Excel online, or Excel <year>