Conditional formatting cell if every cell contains "YES"

Solved/Closed
LizzyDashwood Posts 2 Registration date Thursday 30 April 2015 Status Member Last seen 1 May 2015 - 30 Apr 2015 à 10:18
LizzyDashwood Posts 2 Registration date Thursday 30 April 2015 Status Member Last seen 1 May 2015 - 1 May 2015 à 03:36
Hello,
I want to A2 (surname) and B2 (forename) to turn green if every cell in range C1:F1 equals "yes". At the moment it is highlighting A2 & B2 if only one of the cells in the range ="yes".

I can't figure out what I'm doing wrong. This is the most recent formula I have tried
=$F2:$I2="YES"

I then use format painter to apply to all cells

Thanks
L

1 response

TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 555
30 Apr 2015 à 11:17
Hi Lizzy,

Try the following formula:
=COUNTIF($C1:$F1,"Yes")=4

Best regards,
Trowa
LizzyDashwood Posts 2 Registration date Thursday 30 April 2015 Status Member Last seen 1 May 2015
1 May 2015 à 03:36
Thanks a lot TrowaD! It works a treat. My mental health is restored!