A
A
Aleksandr Yurchenko2019-10-03 20:03:49
Google Sheets
Aleksandr Yurchenko, 2019-10-03 20:03:49

How to write a conditional formatting rule?

Hello.
I am slowly getting acquainted with google docs a little deeper leveling "open document" :) and stumbled on such a task. There is a line:
5d96272f036d5996798120.png
The task is as follows: "it is required to make it so that when the number in cell C1 (now it is empty) is less than the number in B1 - it is painted green (as I understand in this example, the cell painted in green is given for For example, the color must be set in the "format", it cannot be taken from the cell...)
And the opposite case, if the number in cell C1 exceeds the value of cell B1, then it is colored red.
What I do: I put the selection in C1 → conditional formatting → Formatting rules: "Format cell if Greater than" → Format: set the color to red → In the value or formula I write: "=B1". After that, I type 100 into the cells and nothing happens :(
I know that I'm typing in the "value or formula I'm writing", but I don't understand how to write it correctly. Please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2019-10-03
@yaleksandr89

You need two rules for red and green
5d9636824a6c1116314936.png
5d9636039a8dd370030363.png

  • Your formula =B1<C1is red
  • Your formula - =B1>C1- green

Or you can directly specify the value of the cell by adding an equal sign `=`
5d9637d89fd35612394968.png
5d9637e419e92862360019.png
  • More - =B1- red
  • Less - =B1- green

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question