I have a large spreadsheet, and so I have been adding a bottom boarder every 10th row, but not in conditioning. So every time I change the sheet, I have to redo the borders.
Is there a way to condition the sheet to recognise every 10th row (exluding the first due to headers) and then add a border?
Unfortunately (to the best of my knowledge) Google Sheets doesn't support cell borders in conditional formatting - the nearest you could get is a custom formula like this:
=mod(row()-1,10)=0
and then add a coloured border at rows 11,21,31 etc.
=and(mod(row()-1,10)=0,row()>1)
to exclude the headers row.
Related
I have a timetable style sheet that has values filled in rows on particular dates. I would like to be able to automatically have the row background colour change up to the last filled value, so you can easily scan down the sheet visually to see longest time since etc.
Image below to illustrate what I mean: the dark backgrounds I have created manually, this is what I would like to auto fill using conditional formatting:
Something like this would do:
=AND(A1 = "", COUNTA(B1:1) > 0)
1st condition to color only empty cells, 2nd to color if there's something further.
Try the following under Custom formula is
=COLUMN(A1)<INDEX(MAX(COLUMN(A1:1)*(--(A1:1<>""))))
I am looking to show color changes based on decreasing values. I want to add conditional formatting to a row (row 9) based on the cell directly prior (B9<C9 I want to be green, C9>D9 I want to be red). I want an entire row to be conditionally formatted to show growth/decline based on the cell directly before. Is this possible? How can I do so? enter image description hereI have the formulas I want to use, but I don't know how to accurate apply them to the entire Row 9 (as of now I'm manually inputting the 3 custom conditions on each cell)
You can use the following Custom Formulas from Range C9:9. Feel free to interchange the background color that will fit your needs.
For Green (Increasing), =C9>OFFSET(C9,0,-1)
For Red (Decreasing), =C9<OFFSET(C9,0,-1)
For Yellow (Same), =C9=OFFSET(C9,0,-1)
OFFSET() lets you shift the rows/columns based on a reference cell.
In this custom formulas, I get the previous cell value referenced to the current cell by setting the offset_columns to -1.
Sample:
Output:
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 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:
I'm trying to apply conditional formatting to a range of cells.
If cell 'C5' as per picture is not empty then apply colour yellow to cells C6:C12.
What I have tried changes the colour of only one cell i.e. just C6.
Please try selecting C6:C12, Format, Conditional formatting..., Format cells if..., Custom formula is:
=C$5<>""
and chose yellow, Done.
To achive that, you should select the Cells you want the conditional formatting to apply to, and then set the Formatting to "Custom formular", which should be
=$C$5<>""
The $ means, that neither the Column nor Row should advance with the target area.
So
=$G1<>""
would mean, that if your Target Area was A1:F4 (the first four cells of the first six columns), that the formatting would depend on G1 for A1:F1, on G2 for A2:F2 and so on (the Row is advancing in this example, while the column is still fixed as being G.)
You need both $ - i.e. =$C$5<>""
Just tested and works here.