I know that Google Docs Spreadsheets does not currently support conditional formatting when comparing two cells.
if B3 >= E3
, then E3
background is Green, but if B3 < E3
, then E3
background is Red
Instead there is a work around with JavaScript'ing the solution.
I am new to scripting and can not find the correct language for but
.
I found this, that would execute the first part of the formatting.
var value1Rule1 = s.getRange('b3').getValue();
var value2Rule1 = s.getRange('e3').getValue();
var range3Rule1 = s.getRange('e3');
var color1 = 'green';
if (value1Rule1 >= value2Rule1) range3Rule1.setBackgroundColor(color1);
else range3Rule1.setBackgroundColor('white');
But I don't know where I would put in the script that would turn it red if value1 is < value2
.