Want to color specific text within a cell of Google Sheets, for example:
The {Login Page} shall contain a [Login Button]
I want {Login Page} to be red while [Login Button] is orange.
Would like to achieve this using conditional formatting (unless you can convince me that Google Sheets' scripts are simple and easy to learn).
Is this possible with conditional formatting?
If you are after this then it's NOT possible:
You can do this only manually. There is no way to pull this off automatically in Google Sheets with formulas, conditional rules nor even with a script. Multicolor text is not supported to be achieved other than setting it up manually on non-formula output.
Also transferring (see image 1) multiple individual colors from in-one-cell to another cell is not possible at this current version of the Google Sheets (nor at any previous versions).
The next and last thing you can do is overlay it with a Drawing or Image like: https://webapps.stackexchange.com/a/130191/186471
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")))
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!
So I have 3 sheets in excel, 1 with some info that I need to use, and 2 "maps", one of the maps has the codes from Sheet1 in it, the other one has names but other than that the text they are identical.
I'll call the first sheet (with the info) InfoSheet, the map with the codes Map1, and the map with the names Map2.
Now I need the cells in Map2 to format and change cell color if the code for that cell from Map1 is also present in InfoSheet, if not to keep the same color,
I managed to do this by using a New rule under conditional formatting, "Use a formula to determine which cells to format" and used the formula:
=NOT(ISNA(VLOOKUP('Map1'!$N$61,InfoSheet!$E:$E,1,FALSE))), then selected a color and everything works just fine...
Now I need to do the same but I google sheets and I can't figure it out how to add the same conditional formatting with that rule, cause from what I tried the formula isn't working.
Since you refer to a different tab/sheet you have to use the INDIRECT function.
Please try the following formula
=NOT(ISNA(VLOOKUP(INDIRECT("Map1!$N$61"),INDIRECT("InfoSheet!$E:$E"),1,FALSE)))
Functions used:
INDIRECT
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'm making a google spreadsheet and got stuck in one point....
It's related to conditional formatting.
Basically I want to create conditional formatting in custom formula that will give BG color to the row based on task status in cell.
in-progress = BG green
for review = BG Blue
Done = BG Grey
I have done 2 & 3 using the following formula:
Done:
Conditional Formatting>Custom Formula> `=indirect("F"&Row())=100` Range> `C2:C1006,D2:E13,F2:F1006,G14:G16,D17:E1006`
For Review it's =99
Now I need in-progress to be = >0 and <99
I hope the questions is clear, thank you.
Answer will be:
=$F:$F>0 Range> C2:F1006
What you are describing should be able to be done through the conditional formatting interface: Format > Conditional Formatting
You can add multiple condition rules for a given range so you would add
Text is exactly: "in-progress" (case sensitive); Format: background color green
Text is exactly: "for review" (case sensitive); Format: background color blue
Text is exactly: "Done" (case sensitive); Format: background color grey
When using conditional formatting, I find it best to use data validation as well (Data > Validation). If you choose the validation criteria as "list of items" and choose the option to display in-cell button, you can create a dropdown menu in each cell for your range, keeping you from having to type it each time
If you are absolutely set on creating a formula from scratch using apps script, take a look at this post on a similar topic and see if it could be adapted for your purposes. This is probably not the most effiect way to tackle the problem however.
As another thought, it sounds like you may be trying to create some kind of version of a work tracker. For something a little more intuitive, you may want to consider a Kanban app such as the free Kanbanchi which integrates with Google Drive nicely.
Edit:
With the new google sheets, you are able to do conditional formatting based on a custom formula. This means that you can base the color of a range based on a specific cell reference. Here are the 3 custom Formulas you could use:
=IF($A$2 = "In Progress", 1,0)>0
=IF($A$2 = "For Review", 1,0)>0
=IF($A$2 = "Done", 1,0)>0
Where $A$2 is the cell for reference that will contain the status. The only downside to this method is that you have to set the formula for each line. Because of this, you may want to make a "template" doc that you copy when you need a new document.
For more information on how to use the advanced conditional formatting features, take a look at this help article.