Conditional Formatting based on other group of cells - google-sheets

Not sure if this can be done.
Is there a way to use conditional formatting such that if the second column is marked with an x as seen in the column below, the sheet will auto append a defined text to the first column?
E.g.
Column A | Column B
....#gmail.com | x
....#gmail.com |
....#gmail.com | x
....#gmail.com |
to
Column A | Column B
....#gmail.com(some text) | x
....#gmail.com |
....#gmail.com(some text) | x
....#gmail.com |

No.
At present the only Sheets' CF format options are Bold, Italic, Underline, Strikethrough, Font colour, and cell Fill colour.

Related

Excel, subtotal grouping, and determine existence of value

I have a worksheet; I have applied sub totals to this on ColA. I'd like some way of highlighting the text of the value in ColA if a value is found in text of other columns, for example, given this:
+-------+------+
| ColA | ColB |
+-------+------+
| Temp1 | val1 |
| | val1 |
| | null |
| | val3 |
| Temp2 | val2 |
| | null |
+-------+------+
I’d like to highlight Temp1 in red and Temp2 in green if the target value was val2
Is this possible with a bit of clever conditional formatting?
Should be possible. I imagine you have something like the picture below:
By using custom formula:
You could achieve the green cell by using formula (notice I use ";" as delimiter):
=AND($E$2=B2;NOT(ISBLANK(A2))) - here we use "="
and the red one by:
=AND($E$2<>B2;NOT(ISBLANK(A2))) - here we use "<>"
So the formula checks for two conditions:
That the cell in B column is equal to the "target value", cell E2. -> $E$2<>B2
At the same row, the cell shouldn't be empty in Column A. -> NOT(ISBLANK(A2))

google sheets if string matches and is last matching string in set of cells get value of cell nest to it

below is an example of the data in the table
+--------------+------+---------+
| Expense Name | Cost | mileage |
+--------------+------+---------+
| Costco Gas | 20 | 145200 |
| marathon gas | 2 | 145500 |
| oil change | 35 | 145600 |
| marathon gas | 25 | 145750 |
| A/C Work | 305 | 145800 |
| oil change | 36 | 150000 |
+--------------+------+---------+
Whenever the "Expanse Name" string equals "oil change" and it has the highest Mileage from the corresponding mileage I want that mileage to appear in a separate column.
So with this data I would search through the "Expense Name" column and find two that matched the string. From those two I want the one with the higher mileage(150000) to appear.
Another method that doesn't require dragging or array formulae is
=MAX(FILTER(C2:C, A2:A = "oil change"))
let us say expense name is in A1.
In D2 put the formula =COUNTIF("oil change",A2)*C2.
Grab the lower right hand corner handle of the cell and drag it down to copy throughout your data set (in your case D7).
One cell below (D8 in your example), say =MAX of the above cells, so in your case =MAX(D2:D7).
That cell contains your answer.

Highlighting duplicates over multiple rows using conditional formatting

I'm trying to create a Google spreadsheet to organise a seating plan. I've laid out the page with 11 separated smaller tables in a kind of grid format (for easier reading, as you can see it all without scrolling). Like this:
Table 1 | Table 2 | Table 3 |
Seat | Name | Diet | Seat | Name | Diet | Seat | Name | Diet |
1 | | | 1 | | | 1 | | |
2 | | | 2 | | | 2 | | |
I'm trying to create a conditional format to highlight cells where a name appears more than once.
So I created a conditional format with a custom formula as follows (the range covers the all tables):
COUNTIF($A$1:$O$42, A1)>1;
and I set the range to only the Name cells on the page.
However when I purposely set a duplicate the cells are not highlighted.
I thought that maybe my formula was wrong, so I put into a cell and pointed it at a duplicate cell and it returned TRUE.
So I'm at a loss a how to get it working.
Try this formula applied to range A3:O
=AND(ISTEXT(A3),COUNTIF($A$3:$O$42, A3)>1)
Example sheet is here: https://goo.gl/hChZbt

Conditional formatting comparing previous cell value in column while skipping blanks

In Google Sheets I have columns of numeric values and I would like to style a decrease in value as red. I have done so with a simple formula comparing the previous cell's value, but I cannot figure out how to get the last entered value in the column, skipping any blank cells.
| | A |
|---|---------|
| 1 | Numbers |
|---|---------|
| 2 | 100|
| 3 | 75| // Red (decrease from 100)
| 4 | 90|
| 5 | |
| 6 | 70| // Red (decrease from 90)
| 7 | 71|
| 8 | |
| 9 | 68| // Red (decrease from 71)
|10 | 65| // Red (decrease from 68)
My simple formula for A2:A is =AND(A1<>"",A2<A1) which works fine for A3 and A10. What I need is that last A1 in my formula to actually be the last valid cell value, no just the previous.
Please select ColumnA from A2 to wherever suits and Format, Conditional formatting..., Format cells if..., Custom formula is enter:
=and(A2<>"",A2<vlookup(1E+100,A$1:A1,1,1))
and for Formatting style choose red, Done.

Format column depend on date cell

How can I create a formula to color the font from the column if line 1 is today?
A | B | C
1 | 21/11/2014 | 22/11/2014 | 23/11/2014
2 | xx | xxx | xx
3 | xx | xxx | xx
4 | xx | xxx | xx
Can I create something automatic? Because I have many columns.
Format menu, Conditional formatting...
Select "Custom formula is", and enter:
=A$1=TODAY()
Check and select the desired text colour, and apply to all columns in your sheet (eg if your columns go to Z, then in Range type A:Z).

Resources