Seraching for solution with google sheets conditional formatting where I have range with some text from dropdown list and I want that I can change text color even there is set cond.formatting.
For example:
I have cell range A1:B20 where I've set if there is mentioned text "John", then it become red according to con.formatting , but I want to be able to set text to some other color from formating menu.
Tried many suggestions from internet, but no luck! Tired :)
without script, you would need to pre-program it for each color. for example...
red:
=(A1="John")*($D$2="red")
green:
=(A1="John")*($D$2="green")
Related
I don't find the solution to set a conditional formating with a color scale applied to a range which could be variable from a table to another one.
Could you please help me to find the way to do that as in the sheet "Color Scale with Conditional Formating" where I've colored the fields as I would like with conditional formating rules?
Here after the link to the example:
https://docs.google.com/spreadsheets/d/1UyW12WwG9sJUF0ZhnHGP9adgbY3xWUpj4kM9-ASN2WE/edit#gid=1897261118
Thanks a lot.
Mmm, the exact shape I don't know if it's possible. If you are going to add more rows or columns and want to keep that 3 rows alternated colors, you can benefit from row.
In my example starting in Col V you can use something like this:
=(MOD(ROW(W4),3)=1)*(W4<>"")
And you can add the three rules:
You can add this for the black and white:
=(V3<>"")*(($V3="Cluster 1")+($X3="Total"))
I trying to apply conditional formatting on selected cells (A2:C2) with condition that if all aren't filled all selected cells must be in color red, once they all are filled then the color should be white.
I am using Google sheets, formula used is
You may try this custom formula within CF
=COLUMNS($A2:$C2)-COUNTBLANK($A2:$C2)<>COLUMNS($A2:$C2)
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")))
In Google Sheets, is there a way to change not just the value but also the background color of a cell based on one of several possible values of another cell??
In other words,
If A1 is > 2, then B1 should be background color blue
I would like to change the background color of the cell E that are not 0:00. Here: https://docs.google.com/spreadsheets/d/1NSBx87sWScwe2Vtp9FOcH3BupvPJ_jzISUeAk6gSBOM/edit?usp=sharing
What's the syntax to write this kind of matching?
Thanks in advance!
Google Sheets has a native solution for this.
Just right click on the cell(s) you want to change background color and choose Conditional formatting, it is the penultimate option.
Then a right side tab with the different formatting rules will open. There you can define the range, the rules and the formatting style.
Source: https://support.google.com/docs/answer/78413?hl=en
I am new in google sheet programming a macro.
I want to use a script for changing the background based on the color writen in a cell. So all the cells checked and find out what color is written.
If there is in cel D7 the text "green", the background from D1:D7 changes into the color green
If there is in cel E7 the text "blue", the background from E1:E7 changes into the color blue
and so one
example
Thanks for thinking
I want to use a script for changing the background based on the color writen in a cell. So all the cells checked and find out what color is written.
I know you ask for a script. You could also use though, conditional formatting rules instead.
Please use the following formulas for the range you need.
=REGEXMATCH(D1:D7,"green")
=REGEXMATCH(E1:E7,"blue")