GoogleSheets Conditional Format based on formula in the current Cell - google-sheets

I have tried the following as the Conditional Formatting Custom Formula:
Where B2 is the current cell:
COUNT(FIND("$B$1",FormulaText(B2)))>=1
the formula in B2 is A2*$B$1 in B3 is A3*$B$1 etc. - but some cells do not reference B1
If I paste this into a cell/range in column C:
=COUNT(FIND("$B$1",FormulaText(B2)))>=1
then it correctly returns true or false depending on the formula in the adjoining cell.
However when applied as a conditional format it is not changing the format of cell B2
I also want this formula to apply to a range of cells - but it seems to apply the identical formula COUNT(FIND("$B$1",FormulaText(B2)))>=1 to each cell and not change B2 to B3, B4, B5 etc.

Thank you you to #kirkg - this is resolved simply by applying the format to a range in both columns A&B:
Here is his sample sheet... docs.google.com/spreadsheets/d/… – kirkg13

Related

Google Sheets - How to write a formula that minuses the selected cells from the top cell

How would I do it so if I had a list of numbers, how could I get every number below A1 to be minuses from A1 and put next to that cell?
Paste this in B2 or see the Example Sheet
=ArrayFormula(IF(A2:A="",,A2:A-$A$1))
What about this simple formula in A2 cell?
=INDEX(A1+B2:B6)

How do I conditionally change the colour of a cell in Google sheets, based on the cell before?

I want to colour a cell C5 in Google sheets red, if it is greater than the cell B5 before it. Can I do this for the whole sheet, using conditional formatting?
To be clearer: I want to do this for every column, so e.g. make C7 red if it's greater than B7, make E5 red if it's greater than D5, etc.
use formula on range B5:B
=C5>B5

Obtain first date in column after reference date

In cell B1, I have =today() for today's date and then in the cells below (B2:B100), What I'm trying to do is to compare the date in cell B1 (today's date) and to find the next date that appear in cells B2:B100 AFTER this date and then copy this into A2.
So, in effect, in cell A2, I want a function to look up the next date in cells B2:B100 that is the nearest one AFTER B1 and then copy this into A2. I know this is a formula to add in A2 but just unsure what formula to use.
I've tried this in cell A2,
=MIN(IF(B2:B100>B1, B2:B100))
but it didn't work.
"Other things being equal", the formula is correct but should be entered in the array version (eg with Ctrl+Shift+Enter):
=ArrayFormula(MIN(IF(B2:B100>today(),B2:B100)))
Building the function from B1 into the formula is optional.

Conditional formatting on google sheet

I need to format A1 when
B1 is empty and A1 is lower than today
A1 is a date, like a deadline that I will print red if the deadline is not reached. B1 is the cell used to say it was done.
Go to conditional formatting and use the custom formula =and(A1<today(),B1="")
You can set the background color red there too.
EDIT: to extend the formatting down the column but not beyond where you have date, you can do apply to range A:A and amend the formula to =and(isDate(A1),A1<today(),B1="")
Here is a picture

Conditional formatting in Google Docs

Struggling like hell with this one but bet it's so simple!
Can do it in Libre but not in Google :-(
What I want to do is:
I have a range of cells with numbers in, ranges B8 to F20 and another set of cells in range B2 to F2
If a number in cell range B8 to F20 is same as one in range B2 to F2 I want to highlight the cell in range B8 to F20
Any help appreciated, I'm pulling my hair out :-)
Try custom formula:
Set custom formula in cell B2
=countif($B8:$F20,B2)
Apply to range B2:F2
Try selecting cells B8:F20 and click Format > Conditional formatting > Custom formula is:
=arrayformula(sum(n(value(B8)=arrayformula(value({$B$2:$F$2})))))

Resources