SOLVED

Conditionnal formatting based on 3 cells

Copper Contributor

Hi all,

 

I want to make D11 red, but only if C10:C12 are all filled. So if 2 out of 3 cells are filled, I want it to remain white. Anyone any idea how to do this?

 

Thanks in advance!

9 Replies

@1995maaike 

You may use conditional formatting rule with formula

=AND( $C$10:$C$12<>"" )
Hi Sergei,

Thanks for your reply. Unfortunately when using this formula cell D11 colors red if only 2 out of 3 cells are filled.

@Sergei Baklan 

I'm working in google sheets, maybe that's the problem. Unfortunately I don't have acces to Microsoft 365

 

1995maaike_1-1688371724929.png

 

1995maaike_0-1688371656322.png

 

@1995maaike 

It shall work in Google Sheets as well. Where are C10:C12 on your screenshot and where is D11 to which the rule is applied?

@Sergei Baklan 

Hopefully this makes it more clear

 

1995maaike_0-1688372979258.png

 

best response confirmed by 1995maaike (Copper Contributor)
Solution

@1995maaike 

Strange, but in Google Sheets

image.png

and in Excel

image.png

formula works differently.

Anyway, you may use

=($C$10<>"" )*($C$11<>"" )*($C$12<>"" )

it shall work in both.

It works, thank you very much for your help and time!

@1995maaike , you are welcome

1 best response

Accepted Solutions
best response confirmed by 1995maaike (Copper Contributor)
Solution

@1995maaike 

Strange, but in Google Sheets

image.png

and in Excel

image.png

formula works differently.

Anyway, you may use

=($C$10<>"" )*($C$11<>"" )*($C$12<>"" )

it shall work in both.

View solution in original post