Conditional Formatting dependent on whether cell is populated.

T

Tel

I want to conditionally format cell G2 dependent upon whether there is a
value in cell C2 AND G2

Therefore,
if cell C2 has a value in it and cell G2 doesn't then cell G2 color = Amber
if cell C2 has a value in it and cell G2 has a value then cell G2 color =
Green

Any helpful hints or useful suggestions?

Thanks

Tel
 
L

Luke M

Conditional Format of G2,
condition 1:
=AND(COUNTA(C2)=1,ISBLANK(G2))
format Amber

condition 2:
=COUNTA(C2,G2)=2
format Green
 
D

David Biddulph

Depends what you mean by "a value". Is the null string "" a value in your
terms?
CF/ Formula Is/ =AND(C2<>"",G2="") for Amber [or
=AND(NOT(ISBLANK(C2),ISBLANK(G2))]
Either modify the above for your Green condition, or =COUNTA(C2,G2)=2
 
T

Tel

Excellent, thank you

Tel

Luke M said:
Conditional Format of G2,
condition 1:
=AND(COUNTA(C2)=1,ISBLANK(G2))
format Amber

condition 2:
=COUNTA(C2,G2)=2
format Green
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top