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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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