Conditional formatting with several rules Google Sheets - google-sheets

So I want the following conditions to be achieved based on the value of an external cell:
If the text in the external cell coincides with the one in the selected cell, the selected cell turns green. [DONE with Format Rule: Is equal to =externalCell]
If the text in the external cell does not coincide with the one in the selected cell, the selected cell turns red. [DONE with Format Rule: Is not equal to =externalCell]
If there is no text in the external cell, the selected cell turns white. [PENDING]
Please see the screenshot in the link for a better understanding, where you can see my conditional format rules.
In this case, selected cell J10 is green because coincides with external cell T10. It would be red in any other case, but don't know how to supply the third condition.
EDIT: Let's explain it with an example. What I want to do is that:
(A1 will always have text)
A1 turns colour white when B1 HAS NO text in it.
A1 turns colour green when B1 HAS text in it and the text in both cells match.
A1 turns colour red when B1 HAS text in it and the text in both cells DO NOT match.

(A1 will always have text)
A1 turns colour white when B1 HAS NO text in it.
A1 turns colour green when B1 HAS text in it and the text in both cells match.
A1 turns colour red when B1 HAS text in it and the text in both cells DO NOT match.
try it like this:

Related

how to paste conditional formatting as relative cell reference or apply it on a selected range

What I try to do is to give a GREEN color to a cell in a row if the previous cell is less and RED the cell is less than its previous:
Please check this video to illuminate what I want to describe:
https://www.loom.com/share/46470e78ae7b49699ce83d7c268dd459
Conditional formatting on row range in Google Sheets
The problem is that, as seen in the video and the screenshot, the conditional formatting cell references do not change when applied to a row, even if I did not use $. How can I manage to have relative references for each cell to its previous in a row?
For example, when setting GREEN color if the cell C1 is greater than B1 (IF =C1>B1 set the color GREEN), in the next cell D1 the conditional formatting should automatically be referencing: IF =D1>C1 set the color GREEN.
If you want to apply to the columns C and D, set your Apply to range to C:D.
Set 2 conditions with Custom formula is:
for the green styling: =AND(LEN(C:C),B:B<C:C)
for the red styling: =AND(LEN(C:C),B:B>C:C)
If you need to expand over more column, just expand the range.

Change the colour of a cell based on another cell value

I am trying to create a pixel art activity where a specific number in a cell will turn a different cell a colour if the correct answer/ number is input.
For example if cell C2 has the correct answer of 7 then cells E1,F2, and G3 would turn Red.
Then if cell 2 has the correct answer of 22 cells F1,G2, and E3 would turn blue. But any other number would not change the colour of those cells.
try like this with custom formula:
=$C$2=7
welcome to stackoverflow.
For example in cell C2 apply this rule
Format cells if: 'Custom Formula is' (dropdown)
= E1 = 7
now C2 should get formatting when E1 equals 7.
Note that for strings you will need to use double quotes, like this:
= G2 = "k"
Finally, if multiple cells need the same rule, you can click the squares icon in the 'Apply to range' input field, and then you can hold 'control' and click multiple fields.

Conditional format cell based off other cells

I want one cell that's blank to change colors based off another cell containing text. But once the blank cell has a text put in I want the color to go away. I have not tried anything because I'm unsure how to code this.
So if
A1(contains text),B1(blank cell) turns red. Once B1(contains text), B1 turns white.
I only want B1 to turn red if A1(contains text).If A1(is blank) I want B1 to stay white.
Format -> Conditional Formatting -> Apply to Range B:B
Custom Formula is =and(A:A<>"",B:B="")
if column A has a length greater than 0 and column B has a length equal to 0 make column B red.

Change cell color based on another cell color in Google Sheets

I would like to change a particular cell color based on the specific cell color. (For ex: If A1 cell color is green then B1 background color should change to green if A2 cell color is red than B2 cell color should change to red. Kindly help me how to do that in google sheets. Thanks in advance.
this is not possible as you imagine it. however, this is:
let's say that if:
A2 cell color is RED because it's not empty/has a number/has specific text... then you can set color to be RED on B2 if A2 not empty/has a number/has specific text...
in such case, you use so-called custom formula. example:
also, you may be interested in: https://chrome.google.com/webstore/c

Conditionally format Google Sheets cell based on text in a different cell

I would like to format cell D2 based on text in C2. I would like D2 to be colored Red if C2 contains text from a drop down of "No" and be colored Green if the text is "Yes". I have tried custom formula containing =IF C2 ("Yes") which Google Sheets seems to accept but he result is not displayed at all.
Select D2 (or D2:D9 or D2:<somewhere further down>)
Choose Format ► Conditional Formatting
Format cells if... Custom formula is...        =C2="yes"
Formatting style - choose a green Fill and click Done.
Add new rule then repeat from step 3 with `=C2="no" and a red Fill.
        
Edit: Actually, if the cell is to have a background of white for anything other than "Yes", then you only need one rule: =C2="Yes" That is, if the default background for the entire sheet is white.
You must add two separate rules to cell D2, one for each color. The formula must look like this:
=$C$2="Yes"
And for anything other than "Yes"
=$C$2<>"Yes"

Resources