First condition: Give a strike-through to the list when checkbox is True.
Second condition: Highlight every 3 rows for readability.
The problem is that I want the first condition to give only strikes, but it also change the background color. I don't want to change the background color.
Answer:
Google Sheets doesn't allow you prioritise conditional formatting statements, but you can achieve this by modifying and adding a third rule.
More Information:
At the moment, you have two conditional formatting rules:
The one which colours every three rows, set on the rows of the sheet:
=AND(MOD(ROW() ,6)>0,MOD(ROW() ,6)<4)
And the one which sets the text in column B to strikeout if the respective checkbox in column A is checked, set on column B:
=A1:A=TRUE
The problem is that the strikeout rule will not ignore the other conditional rules, and so will not honour the first rule which sets the row colour.
Fix:
Firstly, you can keep the formula which colours the rows:
=AND(MOD(ROW() ,6)>0,MOD(ROW() ,6)<4)
Making sure that the Formatting style is only for the row colour.
You will then need to have two additional rules which keep both the formatting of the colour, as well as the strikeout:
The first, will affect rows 1-3, 7-9, 13-15 etc. For this, your formatting style should be the correct colour for rows 1-3, as well as the strikeout:
=AND(AND(MOD(ROW(),6)>0,MOD(ROW(),6)<4),A1:A32=TRUE)
And the second will affect rows 4-6, 10-12, 16-18 etc. For this, your formatting style should be the correct colour for rows 4-6, as well as the strikeout:
=AND(A1:A32=TRUE,OR(MOD(ROW(),6)=0,MOD(ROW(),6)>4))
Showcase:
Related
I'm trying to make conditional formatting that changes the color of a cell (Red, Blue, Green) based on a range of names on a different sheet. What I have is three lists of names that are either Red, Blue or Green. When I make a list with these names on a separate sheet I want the formatting to change their color to the ones assigned.
The formatting I want to make is something along the lines of "IF the value (name) in this cell is the same as the value (name) in any of cell in a range on another sheet it should change the color automatically.
Here is a link to a sheet where I tried to set it up they way I wanted it to look but I still can't get the formatting to work
https://docs.google.com/spreadsheets/d/1i1DM8X6gyRNMUmYBAtuupeuCUA1iB4LhMDwkD7PHi8w/edit?usp=share_link
I was trying the conditional formatting tool with formulas but I kept getting errors with the formulasenter image description here The picture is in Swedish because google sheets would keep defaulting back to it regardless how much I tried.
One thing is that Conditional Formatting doesn't allow you to directly refer to another sheet. You can do work it around via INDIRECT.
And to compare to several texts, you should not choose the option text contains, but you can find useful REGEXMATCH and TEXTJOIN:
=REGEXMATCH(A2;TEXTJOIN("|";1;INDIRECT("'Name sheet'!A2:A11")))
=REGEXMATCH(A2;TEXTJOIN("|";1;INDIRECT("'Name sheet'!B2:B11")))
=REGEXMATCH(A2;TEXTJOIN("|";1;INDIRECT("'Name sheet'!C2:C11")))
So I have a sheet that outputs varying results from a FILTER function, depending on how you set some checkboxes.
One of the results columns has a conditional formatting rule that changes the colour of just that column depending upon the contents of the cell. It's a really simple one that says, if TEXT CONTAINS Matt, then make the cell blue.
But sometimes, and only sometimes, when the checkboxes are changed, so the results list becomes shorter, some of the conditional formatting colours stay in the lower cells even though the cell no longer contains any text at all.
Has anyone seen this before, or knows a solution?
I'm trying conditionally to format a Google Sheets sheet with 1,000 or more rows. I have to colour it depending of the highest and lowest value of each row.
(Red=highest,green=lowest) I want to make the second example without having to write every row B1:F1,B2:B2, etc, because it is a large document.
In conditional formatting, you need to select B7:F9 and add a custom formula
=rank(B7,$B7:$F7,true)=1
then choose dark green fill colour.
Then add another rule
=rank(B7,$B7:$F7,true)=2
and choose light green fill colour.
Then repeat until you have a rule for each of the five colours.
I'm trying to use conditional formatting to highlight the maximum value over multiple ranges. That is, find the one highest value in said ranges and highlight all instances of it. I have been able to use conditional formatting to highlight the highest number of one column, but not over multiple.
The ranges in question are: G3:G13,J3:J13,M3:M13,P3:P13,S3:S13,V3:V13
Screenshot of the spreadsheet
The versions I have tried either highlight every value in the first row, multiple values but not the highest one, or nothing at all.
An alternative is to use a MAX function and place that value in another cell (the little 4 in the bottom right corner) and use conditional formatting based on that value. However, it's not a particularly elegant solution nor have I been able to make that work properly.
I am using New Google Sheets and am familiar with custom formatting and custom formulas for doing so.
You need to use Conditional Formatting Custom Formula.
Set Apply to Range
G3:G13,J3:J13,M3:M13,P3:P13,S3:S13,V3:V13
Enter in Custom Formula is
=G3=(max($G$3:$G$13,$J$3:$J$13,$M$3:$M$13,$P$3:$P$13,$S$3:$S$13,$V$3:$V$13))
Pick your formatting style.
You may have to scroll down the Format cells if menu to find Custom Formula.
I have a sheet where I would like to turn a row a color based on the value of two cells. I already have conditional formatting based on one cell of the cells I want to use for the two cell formatting.
I am using =AND($J:$J="Cancel",$L:$L="Yes") for the two cell formatting but it doesnt seem to work. Not sure if the first one =$J:$J="Cancel" is negating the formatting of the other or if if my formula is just bad.
Any advice would be appreciated.
if the trick is that you want the whole row to be colored that way, then all you need to modify is the "range" to apply it too, so you enter something like the start column and then just give it a row number as the second half of the range, without the column argument: A1:10001
That exact formula you listed =AND($J:$J="Cancel",$L:$L="Yes") worked for me when using the "custom formula" option: