I have a spreadsheet with a whole bunch of data, where parts of it are queried to present in more readable ways. The problem is that the initial data also has background colors set, which are not taken over by the query result. Is there an easy way to do this?
Unfortunately this is not possible, because formulas do not transfer background colors. the only way is to use script, or set up some conditional formatting rule.
the easiest way would be to use conditional formatting to re-create the background color. custom formula would be:
=D1="test1"
applied to range D1:D
Related
Why is that the conditional formatting with color scale from Google Sheets only offers background coloring and not text coloring as well, like the single color does?
I have a column of player ratings which I would like to color scale so who's best/better is more easily recognizable — the whole sheet is ordered alphabetically, that's easier to manage overall. However, I think background color scaling is just too much, I would rather have only the text colored.
Is there an extension with this type of functionality?
as of today (17 January 2020) - there is no such functionality internally supported in Google Sheets. as mentioned, you can make an inquiry and request such an option, but there is no guarantee you will get some any soon or any ever.
I know these functions don't normally work this way, but this is the only option I can think of with what I need to accomplish. Just please if anyone knows of a way that importrange can also display even just the font color from the source sheet (cell fill doesn't matter), that would be very helpful.
unfortunately no. IMPORTRANGE is not capable to carry on the formatting. but you can copy-paste it by clicking on the red circle and:
Google Sheets considers formulas and raw data to simply be values inside the cells, and it considers formatting to be visual prettiness for people. So, there's no formula which can affect a format, nor is there a format which can affect a cell's formula/data.
However, you can use Conditional Formatting to automatically format a wide range of cells in various ways. If your goal is to have this spreadsheet apply format to itself automatically based on its cells' values, this is probably what you want.
As a plus, the "Paste format" button works with Conditional Formatting too!
There are a couple questions here on SO that are related to this, but do not help to find the answer to the question.
I have a worksheet. Columns B3:R11 all contain names. Within this range, I want to change the color of the test or highlight the cell of the duplicated names. A simple google search returns several small variations of =COUNTIF(A:A, A1)>1 conditional formatting. I have tried several ways to modify this custom formula to make it work but just can't seem to get it right.
Logically, I would think it needs to be =COUNTIF(B3:R11, B3)>1 but that does not work either. It seems to just format random sells within the range.
How can I achieve the goal of marking duplicated cell content?
I was able to solve this problem after realizing that the conditional formating custom formula could have possibly also been iterating on not just B3 but also the range specified B3:R11 in the countif. By adjusting the formula to =COUNTIF($B3:$R11, B3)>1 so that the range was not iterated on, I was able to achieve the results I needed.
I have a complex sheet made by a query, and I would like to combine colors and borders to make easier to use. But as the size of the tables changes dynamically, I guess I have to add something like format commands into the query formula. But I don´t know if that is possible. For example, changing the colors of column A depending on the Values of column B. Or defining the external borders of a table although the size of the table is not always the same.
no, this is not possible to manage from QUERY
for color change, you will need to use Conditional formatting (with custom formula if it's more complex)
and I guess you should give up on border color change as well as marge cell dynamicity (this can be controlled only by a script and even then it's tricky)
I have a list of times in a table that I want to apply some conditional formatting to. I just want them to turn different colours based on whether they're later or earlier than the time in the previous cell. I'm having trouble figuring out the appropriate rule though.
More specifically I'm having trouble thinking of a formula for the rule that I can apply to the whole range of times given in the table. What I need is basically the condition =[current cell]>[current cell-1] and vice versa but don't know how to write this in a formula that I can apply as a rule for the whole range.
How to accomplish this?
Custom Formula:
=B1<A1
Apply to:
B1:Z1
or
B:Z
Color:Green
Add another conditional formula for Red.
See explanation here