Reputation: 27
I want to change format of cell A1 colored green , depends on the value in cells (A2:A5) if all cells value is "Done" , I want to color A1 Green.
Upvotes: 0
Views: 71
Reputation: 2998
Now you are checking only the cell A2
. You should check all the column range.
Your idea is to make your header green when all the cells contain the word "Done". You can translate this idea to: I have exactly 0 cells that don't contain the word "Done". This way you won't have to keep track of how many cells are in your column.
You can count how many values respect a criterion using the function COUNTIF
.
=COUNTIF(A2:A5, "<>Done") = 0
Upvotes: 1