The ISBLANK formula should serve your purpose well.
Create a new rule in the conditional formatting menu. Set the range of your rule to D2:D so that the formatting is applied to column D. Then, in the Condition dropdown menu, select "Custom formula is." In the input field, enter =NOT(ISBLANK(C2:C)). (The = implies the rest is a formula. The NOT formula ...
Use ~ (tilde) to escape + (plus sign), = (equal sign) and also other special characters like * (asterisk) and ? (question mark) that are used as wildcards.
Apply conditional formatting rules - Docs editors Help
I had been struggling with this for a long time, but finally cracked it:
Use conditional formatting on the column with the dates and type the following as a custom formula:
where A1 is the first date in the column.
This will apply the conditional formatting to all weekdays with a value of 1 (Sunday) and 7 (Saturday).
The new Google Sheets allows you to do this, as described here. You have to first enable the new spreadsheets in your Google Driver settings as described in the article. Then you can select 'Custom formula is' from the conditional formatting options and enter any formula (do not forget to add the = prefix!). Cell references without $ prefixes are adjusted ...
Easy (but a bit tedious!) in new Google Sheets. For Conditional Formatting a new rule is required for each colour, roughly. (One colour can usually be skipped from rules and instead applied with normal formatting - which would be overidden where any of the conditions for CF apply.) So expect to repeat the basics of the following at least five times.
Say the ...
You can use a range as a parameter for the ISFORMULA() function.
e.g. If you want to highlight all cells containing formulas in the range A1:J10, then you can use the formula =ISFORMULA(A1:J10) and apply it to the range A1:J10.
Note that this works with normal ranges (e.g. B2:F30), but not with infinite ranges (e.g. B:F).
Conditional formatting: If checkbox ticked in cell A1, change color/strikethrough of cells from B1-F1.
Insert a checkbox from "Insert" tab to A1.
Select the cells (B1-F1) that needs to be of different color/strikethrough when a checkbox in A1 is ticked/ selected.
From tab above, "Format" > "Conditional formatting".
In 'Single color' tab, "Apply to ...
IMO better without "Text contains".
To avoid the possibility of conflicting rules, clear all conditional formatting from ColumnA (assumed because OP does not say where the data is), select it and apply a Custom formula is of:
Select your formatting and Done.
This will format blue-green as well as blue and Red ...
Here is what you can do:
RightClick B2 → select Conditional formatting → select Custom Formula is (from the List)
Enter the following formula in the textbox:
Check the Background Color and select green color
Click on Add another rule
Select Custom Formula is (from the List)
Enter the following formula in the textbox:
Writing a formula that satisfies your criteria is a matter of breaking down what your criteria are and implementing corresponding Sheets functions.
You have established that the formatting should be applied only if a cell is not empty. The EQ function tests whether or not one value (such as a referenced cell's) is the same as another. Since we want to test ...
Yes! Highlight the cells you want to format. Go to Format > Conditional Formatting.
Once you're in the conditional formatting dialog, choose "Custom Formula Is" from the select box (it's the last option). In the text field type:
X will be the column you're in and Y will be the row you want it to start at. So if you want to check the entire ...
Sooo close (I think!). Please try:
=min(D3:L3) returns a value but CF needs a TRUE to trigger. So we check "the current cell" (D3) to see whether its value matches that of the minimum in the range D3:L3. If it does we trigger the formatting.
I say "the current cell" because quite which that is depends on the Range: selection. Here it ...
You can achieve your desired results by putting a tilde, ~ in front of the asterisk as an escape character, if you put the conditional formatting rules in the order listed below.
First, create the one for orange when three asterisks occur using text contains and then specifying ~*~*~*. Select custom to pick an orange background. Then create the one for two ...
In case you need more precise times than in the accepted answer, you can use DATEDIF to specify a certain difference between dates.
Example: format cell A1 if date in A1 is older than 10 days.
Select cell A1
Go to Format/Conditional Formatting
Below "Format cells if..." choose "Custom formula is"
If the dates are in column A, select them, then do: Format > Conditional formatting... > Format cells if... > Custom formula and put
=and(isblank(A:A)=false, or(weekday(A:A)=1, weekday(A:A)=7))
weekday(A:A) returns 1-7, for day of the week, and
or(weekday(A:A)=1, weekday(A:A)=7) returns true, if it's Sunday (1) or Saturday (7).
An old thread, but it's worth noting that Google just launched this functionality into Google Sheets. This likely negates the need for external solutions for most users. More info: Google Apps Updates -
Conditional formatting improvements in Google Sheets
Use Google Apps Script or a Google Sheets Add-on as there is no built-in feature to set cell background color by color codes.
Google Apps Script is a tool that can be used to extended Google Sheets and other Google apps. It could be used to created add-ons.
There are two class methods that can be used to set the color of a single ...
Insert $ between A and 2 in the formula. As CF 'steps through' to test each cell in the range in turn the range is being automatically adjusted. So when for example testing A9 it is checking for the maximum in A9:A1007, which is indeed 14 - so it formats it.
As you (maybe) know, the fact that a method is "deprecated" does not mean it doesn't work - just that it might be removed in the future.
So you're probably not getting an error, but a warning, and your code should work as intended.
That being said, there is a replacement: It seems that setBackgroundColors has just been renamed to setBackgrounds, which it ...
I'm afraid that currently it's not possible to use cut & paste / drag & drop. Consider to send a feature request directly to Google through Google Feedback: Click on menu Help > Report a problem.
An alternative to using Cut and Paste is to use Insert Cells > Shift down
Right clic over the selected range
Click on Insert Cells > Shift ...