Count Conditional Format Cells

drose1105

New Member
Joined
Mar 27, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am trying to count the Conditionally Formatted cells located in cells B9:B18 and place the values in A5 - D5. Range B9:B18 have a conditional format rule is in the picture below.

I have searched this a lot on the internet, but cannot find the answer. I can only find counting cells based on their cell color but not on conditional formatted cells.

I think this requires a User Defined Function but I can't figure it out.

Please help.

1689594052799.png
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Joe posted while I was setting up a sample sheet, but this is basically what he suggested - use the same rules to count as you did with the CF.

23 07 17.xlsm
ABCD
4GreenYellowOrangeRed
51423
6
7
8
9183%
1046%
1182%
1231%
1377%
1463%
1540%
1695%
1782%
1871%
Count CF
Cell Formulas
RangeFormula
A5A5=COUNTIF(B9:B18,">.995")
B5B5=COUNTIFS(B9:B18,">=0.75",B9:B18,"<=0.995")
C5C5=COUNTIFS(B9:B18,">=0.5",B9:B18,"<=0.749")
D5D5=COUNTIF(B9:B18,"<0.501")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B9:B18Cell Valuebetween 0.5 and 0.749textNO
B9:B18Cell Valuebetween 0.75 and 0.995textNO
B9:B18Cell Value<0.501textNO
B9:B18Cell Value>0.995textNO
 
Upvote 0
Thanks Joe4. I was way overthinking this and didn't even think about using a simple Countif formula. Thanks so much!!
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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