I want column A to highlight a specific colour only if C has a value of 0. I have tried but even if the cells are blank it still highlights them.
It is for quantity reasons to make column a1 stand out.
try this custom formula:
=AND(C1=0, C1<>"")
Related
I am looking for information about conditional formatting in Google Sheets. I would like to put the cell in column L in red if it exists twice AND if the data in the same row in column K is the same.
By searching on the internet, I found how to put the cell in red if it exists more than once but I don't see how to add in addition a check on the K column ( =NB.SI($L2:$L;$L2)>1 ).
Below is a screenshot of my Sheets file.
You can see that the cells turn red and the data in the K columns are different.
Could you help me with this please? I am not comfortable with conditional formatting at all.
Try this formula in conditional formatting setting
=if(COUNTIF(L:L,L1)>1,countif(K:K,K1)>1)
I have a Google Sheet which contains many columns. I have applied different formulas on Each column. Now many cells are giving #N/A error. I want to replace #N/A in whole sheet with blank cell or 0 value.
I tried to find solution but solutions available can be applied only on one column having one uniform formula.
How i can replace #N/A in whole sheet into 0 Value.
I have applied different formulas on Each column
wrap your formulas into IFNA()
if you want 0 values wrap it like this:
=IFNA(your_formula_here; 0)
I think there is no such feature
If you really want to 'hide' the #N/A display, you may consider setting both text and cell color to white using conditional formatting rules i
I've applied a custom formula conditional formatting that highlights the cell in column C if it matches with column K.
The formula I used is =MATCH(C3,$K$3:$K$988,0). However, it does not highlight if the content of the cell is a formula (the formula on the cell is =if(isblank(A47),"",C46+1)).here is a screenshot of the sheet with the formula
.
I tried typing the number manually, and it works, but won't work if it is a formula. If I type it manually, the format should be PLAIN TEXT so the conditional formatting will work. I tried to put in it AUTOMATIC, it does not work. Here is a screenshot of the sheet if I type the number manually
.
I'm not sure why this is happening because it works well in other sheets with the same formula. Please help me. Thank you!
Adding one to C46 produces a number. If the values in column K are formatted as text it won't match with them. If you want to keep the numbers in column K formatted as text, you need to convert the number you're looking up to text before doing the lookup. You can use
MATCH(text(C3,"#"),$K$3:$K$988,0)
or just
MATCH(C3&"",$K$3:$K$988,0)
https://docs.google.com/spreadsheets/d/12TsEEj3LQSIOv2m6LRRS6FCLvIkuUo_ECfQvK4gw4d8/edit?usp=sharing
I want to use conditional formatting to count the amount of times a name appears in Column H and make the corresponding name in Column B red if it shows up once and crossed out if it shows up twice.
How can I do this? I used COUNTIF but I don't know how to attach the formatting to a specific name/string in Column B so it just formats the next one on the list (I think).
Any advice or help would be greatly appreciated.
Clear any conditional formatting from ColumnB, select B3 to the end of your range to format and Format, Conditional formatting..., Format cells if... Custom formula is and
=countif(H:H,B3)=2
with strikethrough. Add another rule (same range) with Custom formula is and
=countif(H:H,B3)=1
with red fill and Done.
I'm trying to have a cell on Sheet A check if it's either > or < the value in a cell on Sheet B, then change its color accordingly. Under the custom formula I use: =A1>("SheetB!A1"), but it doesn't seem to work. I use the color Green for the > and the color Red for the <. Every time the rules are saved it will always display A1 on Sheet A in red.
Is the function wrong? Or is it not possible to have a Conditional Format even search across sheets?
For some reason (I confess I don't really know why) a custom formula in conditional formatting does not directly support cross-sheet references.
But cross-sheet references are supported INDIRECT-ly:
=A1>INDIRECT("SheetB!A1")
or if you want to compare A1:B10 on SheetA with A1:B10 on SheetB, then use:
=A1>INDIRECT("SheetB!A1:B10")
=A1>INDIRECT("SheetB!"&CELL("address",A1))
applied to range A1:B10.
You can do this by referencing the cell and row number in the current sheet, so as you drag-copy that conditional formatting to other rows it will reference the correct cells.
In the below equation I am coloring cells based on the exact same cell in some other sheet named "otherSheetName" in this example. If for example you want to color cell B2 in Sheet2 if the cell B2 in otherSheetName contains the text "I Like Dogs" you would go to cell Sheet2!B2 , click condition formatting, choose equation from the drop down and paste the below equation.
=IF(INDIRECT("otherSheetName!"&ADDRESS(ROW();COLUMN()))="I Like Dogs";1;0)
Comparing strings instead of numbers for a conditional formatting rule, you can use:
=EXACT(A1,(INDIRECT("Sheet2!A1")))
Case sensitive.
There is one trick/bug: if you have conditional formatting in Sheet1 that explicitly references itself (e.g., the formula is Sheet1!$C$2), you can copy the conditional formatting to Sheet2 with Paste special > conditional formatting and it will "work"... as long as you don't touch anything:
if you try to edit the conditional formatting in Sheet2, then you'll get an "Invalid formula" error.
if columns/rows change in Sheet1 such that they affect the conditional formatting (e.g., row/column inserts), this is not reflected in Sheet2 (keep in mind that the indirect trick mentioned by #AdamL will also not reflect column/row updates either, so it's a wash in this respect).
I was able to compare two sheet and highlight the differences on the second sheet using conditional formatting :
=A1<>(INDIRECT("Sheet1!"&Address(Row(),Column(),)))