Conditional format, count cells, formula is , cannot use Cpearson's Active Condition fcn

seagreen

Board Regular
Joined
Feb 7, 2009
Messages
71
Hello,
I've been searching to see if the question I'm about to ask has been solved but so far haven't found an answer. I thought I could use this:
http://www.cpearson.com/excel/colors.aspx

He says:
NOTE: ActiveCondition may result in an inaccurate result if the following are true:

You are calling ActiveCondtion from a worksheet cell, AND
The cell passed to ActiveCondtion uses a "Formula Is" rather than
"Cell Value Is" condition, AND
The formula used in the condition formula contains relative addresses

But, I'm afraid I have a "formula is" type conditional format so the background fill is not "read" by the function. My conditional format rule is like this:
=MATCH(E2,myNamedRange,0) I have a long column with corresponding rules (the E2 become En where n is the row number). I would like to count how many cells are colored. there is only one condition. It's either colored or it's not. I have tried using =COUNTIF with the formula I use in the conditional format rule but haven't any luck.

Can this problem be solved?

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If

=MATCH(E2,myNamedRange,0)

is the formula in CF, the following would yield a count:

=SUMPRODUCT(ISNUMBER(MATCH(E2,myNamedRange,0))+0)
 
Upvote 0
Aladin @ The Hague: Brilliant! I changed "E2" to E2:E7002 so I could count for the full range and it worked perfectly.
Thanks!!
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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