Google Sheets custom formula in conditional formatting - google-sheets

I'm trying to add a custom formula to a cell range if its text value is exactly as a text in a specific cell.
This is my formula:
"=EXACT(B9,'חישובים לסיכום'!B13)"
and this is my screen shot:
Although the texts are the same, it doesn't work.

Google spreadsheets custom formulas won't reference other sheets directly, but the workaround is to use INDIRECT, which takes a cell reference as a string, so try this:
=INDIRECT("Sheetname!B13")=B9

Related

How to display both the formula and the result of the formula in one cell?

I would like to have a cell in Google Sheets to display the entire summation for example:
5+5 = 10
If I do the following:
=5+5
The cell will only show 10 it doesn't show the 5+5.
Another way I have tried is:
="5+5 = " &5+5
While this works, if I need to modify the formula I have to change the formula in the quotes and after the & sign.
Is there a way to simplify this so that if I need to change the formula, I only have to touch the formula once in the cell?
google-sheets
You can do this via FORMULATEXT
In A1,
=REGEXREPLACE(FORMULATEXT(A1),".*?&",)&"="&(5+5)
It will display:
(5+5)=10
You only need to modify the math and details are retrieved through FORMULATEXT and REGEX is used to remove FORMULATEXT itself. Furthermore, there won't be circular reference as the docs say,
If the cell passed into FORMULATEXT references the cell that contains the FORMULATEXT formula, then FORMULATEXT will properly handle this and avoid a circular reference.
excel
You just need to use RIGHT and FIND instead of REGEXREPLACE.
try:
=SUBSTITUTE(FORMULATEXT(A1)&"="&A1, "=";;1)
arrayformula would be:
=IFNA(BYROW(A1:A10; LAMBDA(xx; SUBSTITUTE(FORMULATEXT(xx)&"="&xx; "=";;1))))

I made a custom formula for conditional formatting in excel which is working perfectly but it doesn't work the same way in google sheets

So I have 3 sheets in excel, 1 with some info that I need to use, and 2 "maps", one of the maps has the codes from Sheet1 in it, the other one has names but other than that the text they are identical.
I'll call the first sheet (with the info) InfoSheet, the map with the codes Map1, and the map with the names Map2.
Now I need the cells in Map2 to format and change cell color if the code for that cell from Map1 is also present in InfoSheet, if not to keep the same color,
I managed to do this by using a New rule under conditional formatting, "Use a formula to determine which cells to format" and used the formula:
=NOT(ISNA(VLOOKUP('Map1'!$N$61,InfoSheet!$E:$E,1,FALSE))), then selected a color and everything works just fine...
Now I need to do the same but I google sheets and I can't figure it out how to add the same conditional formatting with that rule, cause from what I tried the formula isn't working.
Since you refer to a different tab/sheet you have to use the INDIRECT function.
Please try the following formula
=NOT(ISNA(VLOOKUP(INDIRECT("Map1!$N$61"),INDIRECT("InfoSheet!$E:$E"),1,FALSE)))
Functions used:
INDIRECT

Highlighting using Conditional Formatting in Google Sheets

In Google Sheets, I have tried multiple ways to get the following to occur. I need the conditional formula to be IF(C3:C1000 contain text,and E2:E1000 is missing a date, then E2:E100 needs to be highlighted).
Apply to range:
E2:E1003
Format Rules:
Format cells if...
Custom Formula is
IF($C2:$C1003="text",$E2:$E1003="empty")
Formatting Style
Highlight in Yellow
I've tried rewriting that text multiple ways and nothing
And I can't get it to highlight any of the cells in Column E that are empty.
try like this:
=IF((LEN(C3))*(E3=""), 1)

How to make a custom conditional formatting formula point to the contents of a cell reference

I have a spreadsheet with a custom formula that changes the colour of different cells based on the value in the dates column. I also frequently have to change the formula based on different times of the month.
I would like the formula to point to a cell eg A1 so that whenever I change the contents of A1, the custom formula itself will change.
Currently the custom conditional formatting formula is =E2>=TODAY() -21
I alternate between this and =AND(E2>DATE(2019,3,23),E2<DATE(2019,4,20))
I've tried to use =INDIRECT(A1) as the formula, with A1 cell content =E2>=TODAY() -21 but this doesn't work. I would really appreciate any tips on how to get this working.
custom formula:
=IF((($A$1="=E2>=TODAY()-21")*(E2>=TODAY()-21))+
(($A$1="=AND(E2>DATE(2019,3,23),E2<DATE(2019,4,20))")*((E2>DATE(2019,3,23))*(E2<DATE(2019,4,20)))),1)
demo spreadsheet

Google Sheets Conditional Formatting based on two cells

I have a sheet where I would like to turn a row a color based on the value of two cells. I already have conditional formatting based on one cell of the cells I want to use for the two cell formatting.
I am using =AND($J:$J="Cancel",$L:$L="Yes") for the two cell formatting but it doesnt seem to work. Not sure if the first one =$J:$J="Cancel" is negating the formatting of the other or if if my formula is just bad.
Any advice would be appreciated.
if the trick is that you want the whole row to be colored that way, then all you need to modify is the "range" to apply it too, so you enter something like the start column and then just give it a row number as the second half of the range, without the column argument: A1:10001
That exact formula you listed =AND($J:$J="Cancel",$L:$L="Yes") worked for me when using the "custom formula" option:

Resources