Google Sheets Conditional Formatting

Associate
Joined
8 Feb 2014
Posts
856
Location
Aberdeen
I'm using Google Sheets for tracking a currency and I thought this would be a simple thing to do but I can't seem to get it right.

In column E I have a formula D2-C2. In column E I have conditional formatting. If the number is positive then colour the cell green, if it's negative colour the cell red. Simple so far. But then I wanted to add into the mix that if the cell D7 for example is empty then the cell E7 should stay white. For the life of me I just can't seem to work out how to apply this 3rd condition. Would it be using conditional formatting, formulas or a mix of both? Example of table below.

taryhGz.png
 
I've tried using the ISBLANK function but I don't think I'm using it right. Is there a command for colouring a cell?

=IF D7 ISBLANK() THEN E7(insert colour command here). I know what I'm trying to do in my head but I just can't find the way of doing it heh.
 
Back
Top Bottom