Conditional formatting with "and" - google-sheets

I have a custom formatting rule which changes the color of a series of cells. The formula is:
=and(I$4>=$D5,I$4<=$E5)
I want to add one more thing, which is to display the text in the cells which is found in C5. Can anybody help?

adding text in a cell with conditional formatting is not possible. you will need to add it with standard formula:
=ARRAYFORMULA(IF(AND(D5:D<=$I$4, E5:E>=$I$4), {C5:C}, ))

Related

Google Sheets: Conditional Formatting in Cell based on TEXT in another Cell, Not Number Value

How do I create a conditional formatting rule in Google Sheets that changes the colour of a cell based on the text in another cell?
I want to create a rule whereby if I type "tested" in ANY cell, the two following cells in the row change colour automatically to show the testing window.
The sheet is very large so I need to also know how to make this rule apply to all cells, without all formatting relating to the text in just one cell - it always needs to be the cell with the text relating to the following two cells in the row.
Thanks in advance!
I've tried to use the basic conditional formatting, and tried googling, but all answers are based on a number value and don't apply when I try to use the same custom formula.
try:
=A1="tested"
and 2 rules. one for B1:Z and 2nd for C1:Z

Conditional Formatting Google Sheet based on a CELL value

I want to highlight the cell with a color of a cell (range G24:G90) if it contains a G4 cell value (dynamic). What is the best way for this?
The best way for us to answer is, when you add samples of what you've tried and what result you get.
Although as much i understood from your short description, you can select those range you mentioned and click on "Conditional Formatting" and on the "Formula Rules" section select "Custom Formula" and type something like this based on your requirement:-
=$G24=$G$4
You can do Formatting Style based on what you like.
You can learn more about advance conditional formatting on this doc :- Click here

AND doesn't work in Conditional Formatting/ Custom Formula

I am working on a Custom Formula using Google Sheet's conditional formatting feature. When 2 things are TRUE, I want to change background and font color somehow.
I use the following statement to determine it =AND(F5:F10>30% ,$B$1 =True)
This works well and is tested independently, row by row.
Yet, when applied to the table only some columns are highlighted, not all
Below is a formula I am using
try like this:
=($F5>30%)*($B$1=TRUE)

Google Sheets formula for conditional formatting: "if cell contains exact text text" then

Trying to write a basic conditional formatting on a cell so "if cell C58 contains the string 'long cont' then turn cell D58 turn it green".
Any ideas what the syntax is?
Thank you.
Ed
Click the cell you want to highlight.
Open the conditional formatting dialog.
Select "custom formula is".
Type your formula, e.g. =(I192 = "yes").

How to reference cells in a conditional formatting formula rule?

I wold like to use the value of the current cell into to "Custom formula is.."
when using conditional formatting.
I would like to enter a "Custom formula", which will check if value of cell is ether'a' or 'b'.
What will be correct syntax?
Please try:
Select the range the conditional formatting is to apply to, say C5:C10. Format, Conditional formatting…, Add new rule, Format cells if…, Custom formula is:
=or(c5="a",c5="b")
Select your Formatting style (Default may suit) and Done.

Resources