Google Sheets help please - conditional formatting
Discussion
Hi all, I have a conditional formatting set up with a formula so that if the cell contains less than a sum of 4 other cells it turns green, if greater than, it turns red.
How do I copy this over to other cells down the column? I'm using format painter, but it doesn't change/carry the formula cells along. Can I not do this? Nightmare if it can't as there's hundreds of lines.
Thanks for any help.
How do I copy this over to other cells down the column? I'm using format painter, but it doesn't change/carry the formula cells along. Can I not do this? Nightmare if it can't as there's hundreds of lines.
Thanks for any help.
bigandclever said:
A screengrab of what the data looks like would help me, at least, because I can't even picture what you're attempting. How can B5 be "the next line"? It's the same line as A5 
Sorry, I mixed columns and lines on my previous post (now fixed). Screen shot below of a similar example. Obviously I have manually done the 3 cells individually to make it work, but I have hundreds of columns in the real spreadsheet.
Edited by audi321 on Tuesday 11th January 21:05
If there are no $ in the formula, Google Sheets (and Excel) use relative references which means that the formulas will be adjusted as you move across the columns.
Apply to range:
A5:Z5 (or whatever column you want to go up to)
Format rules
Greater than
sum(A1:A4)
Or A1+A2+A3+A4 would work just as well in the format rules.
The formula in the Format rules applies to the first cell in the range.
The $ make it an explicit reference which doesn't change, and can be placed in front of column, row, or both to fix either the column, row or both, but that is not necessary in this case.
Apply to range:
A5:Z5 (or whatever column you want to go up to)
Format rules
Greater than
sum(A1:A4)
Or A1+A2+A3+A4 would work just as well in the format rules.
The formula in the Format rules applies to the first cell in the range.
The $ make it an explicit reference which doesn't change, and can be placed in front of column, row, or both to fix either the column, row or both, but that is not necessary in this case.
I feel a bit dirty suggesting this, but at least you'd get something in about a minute.
Could you create an extra cell A6 as =sum(A5-sum(A1:A4)) and swipe that across to your end column, so you get to Z6 (or whatever) defined as =sum(z5-sum(z1:z4)).
Then apply Conditional Formatting as
Apply to range
a6:z6
Format Cells if..
Greater than
0
Custom
RED
And then change the size of row 6 to effectively hide the text but retain the colour.
So you get something like

Could you create an extra cell A6 as =sum(A5-sum(A1:A4)) and swipe that across to your end column, so you get to Z6 (or whatever) defined as =sum(z5-sum(z1:z4)).
Then apply Conditional Formatting as
Apply to range
a6:z6
Format Cells if..
Greater than
0
Custom
RED
And then change the size of row 6 to effectively hide the text but retain the colour.
So you get something like
bigandclever said:
I feel a bit dirty suggesting this, but at least you'd get something in about a minute.
Could you create an extra cell A6 as =sum(A5-sum(A1:A4)) and swipe that across to your end column, so you get to Z6 (or whatever) defined as =sum(z5-sum(z1:z4)).
Then apply Conditional Formatting as
Apply to range
a6:z6
Format Cells if..
Greater than
0
Custom
RED
And then change the size of row 6 to effectively hide the text but retain the colour.
So you get something like

Wow - a proper dirty workaround but yeah that works!! Cheers. So it does seem there’s a limitation around conditional formatting when using formula as the ‘condition’. Could you create an extra cell A6 as =sum(A5-sum(A1:A4)) and swipe that across to your end column, so you get to Z6 (or whatever) defined as =sum(z5-sum(z1:z4)).
Then apply Conditional Formatting as
Apply to range
a6:z6
Format Cells if..
Greater than
0
Custom
RED
And then change the size of row 6 to effectively hide the text but retain the colour.
So you get something like
boiler2003 said:
bigandclever said:
It’s not answering the question either 
What part of the question is it not answering?
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


