I have a column A1:A10 that sums up all "yes" entries in cell A12 using:
COUNTIF(A1:A10,"=yes")
What I would like Excel to do is actually delete these entries if the sum of all "yes" exceeds 8. I had the idea that I could use conditional formatting to change the text color of each "yes" to white if the sum is > 8, and this would in effect erase them because you wouldn't be able to see them (note that it doesn't matter to me that A12 still shows a number). I tried using the following formula:
=AND(A1="yes",A12>8)
It works, but only for cell A1. I tried both dragging the formula across and entering the formula as
=AND(A1:A10="yes",A12>8)
What am I doing wrong? Also, would there be a way to make Excel actually delete all "yes" if there were more than 8? I would want it to delete only the "yes", not any other entries.
Bookmarks