It looks OK based on what you have said (the colours don't work within the code tags) and assuming you have the text value "yes" in column G.