gs-conditional-formatting

Google Sheets script conditional formatting for whenNumberLessThanOrEqualTo(string)

时间秒杀一切 提交于 2019-12-11 11:01:57
问题 In Google sheets, I've added some conditional formatting related to various letter codes. Here, A-D are red, E-F are yellow, and G and later are green: This works how I expect and want. In trying to do the same thing via an apps script, this doesn't seem to be supported, because there's stricter type checking than in the UI: SpreadsheetApp.newConditionalFormatRule() .whenNumberLessThanOrEqualTo('D') .setBackground('#ff0000') .setRanges([range]) .build()); This shows the error message: Cannot

Conditional Formatting with Custom Formula referencing the cell itself

天涯浪子 提交于 2019-12-10 03:15:12
问题 I have a google spreadsheet which has columns for each day (with the date in the top cell) and in each cell a string indicating status. I need to apply conditional formatting to cells based on the criteria of the date of the column being in the past AND the text inside the cell starting with the substring "OK". It seems that I must use a Custom Formula in order to deal with the date part, but then how would I reference the content of the cell itself? I've tried referencing the cell using CELL

Conditional formatting coloring errors when comparing text values in column to top row

↘锁芯ラ 提交于 2019-12-08 04:28:10
问题 I'm trying to make my Google spreadsheet (that is populated with textual responses from Google Forms) to color the background of the "wrong" cells red. I have the correct answer for each column at the very top in row 1. These are all alphabetical text, not numerical answers. IF the value is NOT EQUAL to the top of the column, that cell is colored. So the " wrong " response in the below example will be colored, as it isn't the same text as the top row: ____ A ___ B ___ C ___ D __ 1 ans1 ans2

Multiple column conditional formatting

允我心安 提交于 2019-12-07 23:06:56
问题 I have searched for an answer to this, but I cannot find one anywhere. I am trying to set a background color of an individual cell based on the contents of that cell and another cell. For example, I want A1 to have a background color of green if that specific cell is blank AND if B1 does not have an "x" in it. If either condition is not met, i.e. there is something in A1 or B1 does not have an "x", I don't want A1 to be highlighted. I then want to apply this to the entire column A, and have

Bold conditional formatting script for Google Spreadsheets

余生长醉 提交于 2019-12-06 16:19:29
问题 What I want to do is essentially what this user wanted to do here: I need a script that formats the cells in column A bold, but only the cells that contain the word 'Hello'. However I have no knowledge of Google Apps scripts at all, and I need an answer put in much simpler terms than what I could find there or anywhere else. Any help is appreciated; thank you! 回答1: To start, from your spreadsheet, open "Tools / Script Editor...". When the dialog opens, choose to "Create Script For...

How to speed up heavy conditional formatting rules

拜拜、爱过 提交于 2019-12-06 00:01:54
问题 At our marketing company/agency, we're using a master tracker in Google Sheets to keep track of all paid advertising campaigns that we are handling for our clients. The document is getting longer and longer, and the variety of conditional formatting rules we are using is getting heavy and slow upon any change made to the document. Five employees are using the document at any given time, making changes to the "STATUS" column upon any change to the campaign – if it is ready to upload, if it is

Format entire row if a particular cell in the row is not empty

牧云@^-^@ 提交于 2019-12-05 08:57:45
问题 I want to format the whole row depending on if a particular cell in that is empty or not. I want conditional formatting to go through all rows and say add a background color if column C in that row is not empty. How do I fix this? 回答1: For illustration assuming "whole row" is ColumnsA:Z inclusive, please try Format - Conditional formatting..., Custom formula is : =$C1<>"" with formatting of your choice and Range: A:Z . 回答2: I was able to do this by selecting the range I want the conditional

Conditional Formatting with Custom Formula referencing the cell itself

浪子不回头ぞ 提交于 2019-12-05 03:34:47
I have a google spreadsheet which has columns for each day (with the date in the top cell) and in each cell a string indicating status. I need to apply conditional formatting to cells based on the criteria of the date of the column being in the past AND the text inside the cell starting with the substring "OK". It seems that I must use a Custom Formula in order to deal with the date part, but then how would I reference the content of the cell itself? I've tried referencing the cell using CELL("contents",ADDRESS(ROW(),COLUMN()) but this returns an Error: Argument must be a range . With

Bold conditional formatting script for Google Spreadsheets

假如想象 提交于 2019-12-04 22:05:25
What I want to do is essentially what this user wanted to do here : I need a script that formats the cells in column A bold, but only the cells that contain the word 'Hello'. However I have no knowledge of Google Apps scripts at all, and I need an answer put in much simpler terms than what I could find there or anywhere else. Any help is appreciated; thank you! To start, from your spreadsheet, open "Tools / Script Editor...". When the dialog opens, choose to "Create Script For... Spreadsheet". You will end up with a sample script - we're going to edit it to do what you want. Change the

Format entire row if a particular cell in the row is not empty

£可爱£侵袭症+ 提交于 2019-12-03 22:12:25
I want to format the whole row depending on if a particular cell in that is empty or not. I want conditional formatting to go through all rows and say add a background color if column C in that row is not empty. How do I fix this? For illustration assuming "whole row" is ColumnsA:Z inclusive, please try Format - Conditional formatting..., Custom formula is : =$C1<>"" with formatting of your choice and Range: A:Z . I was able to do this by selecting the range I want the conditional formatting to apply to (for instance, A:P if you want to apply colour to columns A through P), and then selecting