Counting Conditionally Highlighted Cells

memoorefield

New Member
Joined
Jun 17, 2015
Messages
14
I can't figure out how to count the number of cells that are highlighted in a conditionally formatted column in Excel 2013. I have read through and tried many of the VBA solutions on this site but none seem to work in my spreadsheet.

Here's a general overview of the spreadsheet - Column A is conditionally formatted to highlight cells with a number that falls outside of a range defined in column B. However there are about 18 different conditions. If I need the count of all the highlighted cells to show in cell A1000 how would I do this?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Thanks Joe, but I must still be doing something wrong because I'm getting a 0 as the answer when I know there are multiple highlighted cells. I believe it's because of the criteria used in the conditional formatting.

An example of one of the conditions is below:

AND(N2="55% EQUITY",OR(D2<45,D2>65))
 
Upvote 0
An example of one of the conditions is below:

AND(N2="55% EQUITY",OR(D2<45,D2>65))
How many rows is this applied to?

What version of Excel are you using (COUNTIFS is only available in version 2007 and newer)?
 
Upvote 0
OK. Here is one way to get that count:
Code:
=COUNTIFS(N2:N990,"55% EQUITY",D2:D990,"<45") + COUNTIFS(N2:N990,"55% EQUITY",D2:D990,">65")
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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