Add cells based on a conditional format

Robert_G

New Member
Joined
Jul 13, 2018
Messages
48
311qnx3.jpg









I have two columns that are conditional formatted and highlight in color & text based on the formula above. How can I count all that is true in Column D and in f1, come with the value of 7 since there is 7 that are highlighted?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Probably a better way but try this.

=SUMPRODUCT(--(NOT(ISNUMBER(MATCH(D2:D28,A2:A3000,0)))))
 
Upvote 0
It almost works. In column D, I need to check the whole column as there could be up to 3000 rows. So I changed the formula to this:

=SUMPRODUCT(--(NOT(ISNUMBER(MATCH(D2:D3000,A2:A3000,0)))))

Which in F1 the result is 2979. So it counted all the rows with text not highlighted. I some how need to count the highlighted only resulting in a value of 7.
 
Upvote 0
Robert

That result probably has nothing to do with the highlighted cells, it's probably because of all the blanks in D2:D3000.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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