Conditional formatting based on another cell's text - google-sheets

I have a Google Sheets table of names and statistics that go along with said names. I'm trying to use a dropdown menu on a specific cell so that when I select a specific name from the dropdown, all of the cells that start with the same name will be highlighted.

Assuming the dropdown is in B2. Please select entire sheet and: Format > Conditional formatting..., Format cells if... Custom formula is and:
=regexmatch(A1,"^"&$B$2)
with highlighting of your choice and Done.
Since for all of the cells that start with the same name this could be slow.

custom formula: =IF(I1=H$4, 1)

Related

Conditional Formatting from Another Sheet's Checkbox

I'm trying to have Sheet 2's cell contents strikethrough if a cell in Sheet 1's checkbox has been selected using conditional formatting. I've been trying the custom formula =INDIRECT("'Sheet1'!A2")=TRUE but that seems to be doing nothing.
Here's a very basic example of what I want. Basically when an item on Sheet 1 is checked off I want the corresponding item on Sheet 2 to strikethrough.
https://docs.google.com/spreadsheets/d/13n8pdPnsX79nF2ISuTfIsbjzExuPGVtYbTU0MsBotLM/edit?usp=sharing
I figured out the issue, since I had another conditional formatting rule on the sheet 2 cell it wasn't working.

Google sheets - Relative conditional format based on cell above

I search in the deepest parts on the internet for a google sheets relative conditional formating based on the cell above value, which means, that whenever i add a new value in the cell below, it will automatically check the cell above value and format the cell according to it.
I've finally came to the solution explained below.
The result will be something like this:
I hope it works for you, weary traveller.
Select the range of cells that you want to format.
Go to >Format > Conditional Format > Add rule.
Under format rules select the option "Custom Formula is".
Paste the next formula if you want to check that your current cell is BIGGER THAN the cell above: =INDIRECT(ADDRESS(ROW();COLUMN())) > INDIRECT(ADDRESS(ROW()-1;COLUMN()))
OR the next formula if you want to check that your current cell is LOWER THAN the cell above: =INDIRECT(ADDRESS(ROW();COLUMN())) < INDIRECT(ADDRESS(ROW()-1;COLUMN())).
Select the color you like to apply, and click in DONE.
If the range of cells is A2:G, this rule will also work:
=AND(A2<>"",A2<A1) [RED]
=AND(A2<>"",A2>A1) [GREEN]

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.

Hide Rows Formula in Spreadsheet

Is there a formula on spreadsheet that will remove the rows if the value of the cell is empty? For example =if(A2 = "","hide row A1", "show A1"). I am using Google Form and Form Publisher addons to generate new spreadsheet base on the value that I have inputted on my forms.
Or is there any way to do this?
Generated PDF
Formulas are just Custom Functions return value(s), you need to solve that with Script or hide it manually.
Check that may help you
Hide Row in Google Sheets if Cell Contains "no" - Multiple Sheets
Filter Or Hide Row
Formulas just return a value or an array of values, they can't hide/show rows. You could use FILTER, QUERY among other combined Google Sheets functions to return just the need values.
Another alternate is the use of Google Apps Script
You cannot hide the row but can make its contents invisible. Use conditional formatting to change font color of entire row to 'white'

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.

Resources