Conditional Formatting based on column values - google-sheets

I'm trying to make a column change color whenever a specific range within that same column has the same character, per example, I want cells C1:C50 to change to the color green when all the cells in C10:C50 have the value 1 on them.
I've tried this custom formula, that doesn't seem to work.
=C10:C50=CHAR(10004)
Sorry if this is an easy fix, but have been looking for answers and haven't found something that suits my problem

This should get you what you're after:
Select the rows you want the conditional format to apply to.
Click format > conditional formatting
Click + Add another rule
Below "Format Rules" click the drop down and select Is equal to
Type what you want the box to be equal to in the input (for example, "1" in your case)
Click the "Done" button.
Behold your beautifully formatted sheet and the new found power that you wield!

try:
=COUNTIF(C$10:C$50, CHAR(10004))=50

Related

How do I format a cell, only when it's not empty, based on the input of another cell?

I'm working on a spreadsheet in Google Sheets for multiple people, and indicate in a column who the person the information on that row pertains to. I want to format cells on that column, only when they're not empty, based on what person is selected in another cell.
I can create functions to format things based on another cell's entry, but I don't know how to compound that with a function for not being empty. Sorry if this is super basic, I just can't figure it out.
Yep. This is a super simple thing to do.
1) Highlight the column where the person's name appears.
2) From the main menu, select Format, Conditional formatting.
3) In the sidebar click add a new rule. what you want to do is create one rule for each name that appears (or could appear) in that column.
4) Under "Format cells if, select "Text is exactly"
5) Type the name in the cell where it says Value or Formula
6) Choose a background colour to suit.
7) Click Done.
8) Repeat steps 3 to 7 for each person; but change the background colour in each case.
Here's an example.

Using Conditional Formatting to alter another sheet based on a string

I've been working on a dashboard in Google Sheets. When I select a text criterion from a dropdown on the dashboard (say the location Manhattan) I want to be able to highlight a row corresponding to that same text on a different sheet. The idea is that the dropdown is generated from the same sheet and I want to have this easier to read as a result.
I read from Conditional Formatting from another sheet that it's not possible (at least a few years ago) directly to reference another sheet in Conditional Formatting except by utilizing the INDIRECT function. From what I can tell, this does not work with text.
Is there a way around this or should I rethink how to make my highlighting a possibility?
I know I could just have the text in the dropdown change on a portion of the sheet and then base the conditional on that, but I was hoping to simplify this. This will affect three other sheets when I'm done with it, so less would be more. I have not experimented with add-ons at all at this point.
Assuming the dropdown is in A1 and row length in other sheet is A:Z then select ColumnsA:Z in the other sheet and Format > Conditional formatting..., for Format cells if... select Custom formula is and enter:
=$A1=indirect("Dashboard!A1")
with formatting of choice then click Done.

How to use conditional formatting in Google Sheets to highlight row based on value in cell

I have a google sheets document where I have cells A1:Z1. In AA1, I have a value total. If that value is greater than 5, I would like A1:Z1 to be highlighted in red. I then want to do this for every row down the sheet. Could somebody help be out with this? I tried using other answers here, but I can't get it to work.
First of all take a look at Use conditional formatting rules in Google Sheets.
On your computer, open a spreadsheet in Google Sheets.
Select the cells you want to apply format rules to (A1:Z1).
Click Format and then Conditional formatting. A toolbar will open to the right.
Under the "Format cells if" drop-down menu, click Custom formula is. If there's already a rule, click it or Add new rule > and then Custom formula is.
On custom formula put this =SUM(A1:Z1) > 5
Choose other formatting properties.
Click Done.
The result will be this.

Google spreadsheet: Remove conditional formatting, but keep the format

Is there a way to remove the conditional formatting from cells, while keeping the applied format intact?
The only way I've found is:
Copy the cells.
Clear formatting on the cells (ctrl + \)
Paste special -> Paste format only (paste over the said cells).
Copy a cell that has no conditional formatting
Select the cells with de conditional formatting you want to delete
Click Edit > Paste special > Paste conditional formatting only.
Yes, to remove individual conditional formats while leaving other formatting unchanged, in Google Sheets:
If the conditional format pane on the far right is present, close it by clicking the X in the top right of the pane.
Highlight the range of cells (or select a single cell if you want to remove conditional format for only 1 cell) that have conditional formatting applied. For this to work, at least one of the cells you've highlighted must have conditional formatting defined.
Right click the highlighted cells and select "Conditional Formatting" from the context menu.
A vertical panel on the right will appear with a list of conditional format rules that are present in the highlighted range.
Hover the cursor (do not click -- just hover) over the rule you want to delete. As you hover a trash can icon will appear.
Click the trash can icon to remove that particular conditional format.
Copy the required range to another sheet and paste special, values only. Then immediately paste special again, formatting only.
If you want to keep the work in the same place on the same sheet, just cut instead of copy, and then do the above paste operations to the same place.
The advantage of the first method is that by creating a copy you can't accidentally mess up your original and can always replace this when you are satisfied with the result.
I know this is an old question, but I tried the approaches suggested. They don't work. The conditional formatting 'çonditions' are also copied across.
My Solution is to copy and paste into excel and then copy the values back into google sheets.
When pasting into excel the 'conditions' don't get copied over.
Some Redditor saved the day!
Here's the link
function clearFormatting () {
var s = SpreadsheetApp.getActiveSpreadsheet();
var ss = s.getActiveSheet();
ss.clearConditionalFormatRules();
}
To add to the most-voted answer, you can actually do this on an entire sheet, in case that's helpful. (Mac keys shown here)
Command-a to Select All
Command-c to Copy
Command-\ to Clear Formatting
Command-Option-v to Paste Format Only
Without a script is possible with a hack: copy into say Word and back again.

Conditionally formatting multiple rows with the same conditions

I am looking to format 500+ rows of data and essentially, G5-K5 (in every row) needs to be highlighted a light color (any color) if J5 equals "Regular".
This same condition will exist in every row, so it should be simple - but I am not an excel master by any means. I just don't think it's necessary to create 500+ conditions for each row!
That is actually pretty simple.
You right click one of the cells to do the formatting(one with
regular for example) and select Conditional Formatting on the menu.
Then you make sure the Range is the cell you right clicked, select
"The text is exactly" in the list and type "Regular in the field
under it.
Select the color under that field and press the blue button.
After that you just need to press the paint format tool(the paint
roll) and drag all the cells you want to have the same
behaviour(probably the entire column of the right clicked cell).

Resources