Counting of Conditional Formatting data

pglibra

New Member
Joined
Jul 11, 2016
Messages
12
Hello,
I am trying to count the number of instances a certain value (Company) is listed in a conditional formatted cell, where the conditions are as follows: if cell value for # of Days <4, highlight cell green; if cell value is between 4 and 9, highlight cell yellow; and if cell value >9, highlight cell red.

Company # of Days
9 110
9 110
9 0
13 6
13 2

So for this example, company 9 had 2 instances that were highlighted in red and 1 instance that was highlighted in green. Company 13 had 1 instance in yellow and 1 instance in green.
The # of Days column alre


Hope I explained it well.
Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I do not think you want to count the Conditional Formatting per se. I think you want to write a countif formula to check for the same conditions used in your conditional formatting. For instance a Countif for the “company equals 9 and number of days is >9”. There are a lot of references on the internet for writing Countif formulas.

Hope that helps,

Doug
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top