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})))))
Related
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)
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
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
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
I would like to plot sparklines (barchart with the value to show in B-row and the max-value in die C-row: see linked file) in every cell from A2 to A5 using ony one arrayformula (=ARRAYFORMULA( ...) in A2 which can plot spakrlines in every cell from A2 to A5.
Link to file: sparkline arrayformula
Thx for any help,
Gerd
SPARKLINE does not work with arrayformula. I think the best you can do is put this in A2 and drag it down past A5. It will pick up new data.
=iferror(SPARKLINE(B2,{"charttype","bar";"max",C2}),"")
Hmm
Make a blank column A:A.
=ARRAYFORMULA(IF(ISBLANK($A$1:$A),"", SPARKLINE({0,1},{"color","#ddd"})))