Google Sheet: COUNTA not recognizing blank cell generated by formula - google-sheets

Live Sheet: https://docs.google.com/spreadsheets/d/1KcZiQLad_LDQ41rxRZsayY3jUQ7a35k1vFv3Y0tuSEk/edit?usp=sharing
I use COUNTA to calculate non-blank cells in a column. But if a blank cell is generated by a formula, COUNTA will regard it as a non-blank cell. From the sheet above you can see even if I import the formula generated blank cell to another cell ( so when you click on the cell the formula won't show and it looks like a genuine blank cell ), COUNTA will still see it as a non-blank cell.
Is there anyway to workaround this?

Remove "":
=IF(C1,1,)

or you can do:
=IF(C1, 1, IF(,,))

Related

Google Sheets - How to concatenate values from different rows and columns if the cells meet certain criteria

I am trying to create a formula that concatenates cell values if the ticked box is TRUE Please see attached image click here to see the image
What I am trying to do is to concatenate in one string columns B and C from every row if the checkbox in column A is selected, and have them separated by a ",". You can in cell G2 an example of the final result I am trying to achieve.
You can find the google sheet in this link https://docs.google.com/spreadsheets/d/1hwm4Q89qj3ko2vJ4OASWmgz4VQr_uUaP7E7AmVdl8Ks/edit?usp=sharing
Thanks in advance.
try:
=ArrayFormula(TEXTJOIN(",",1,IF(A4:A,B4:C,)))
You can try this sheet formula first.
=IF(A4="","",IF(A4=TRUE,TEXTJOIN(",",True,B4,C4),""))
This formula has nested IF's just for additional checker to check if the first column has a value and would return blank just for it to be dynamic. You can drag the formula down to adjust the cells.
Sheet sample:

How to sum 3 cells only if one of both are not blank otherwise leave blank the cell in Google Sheets

I'm looking for a way to make sum only if one of both cells are not blank otherwise leave the sum cell blank. I'm working w/ Google Sheets.
Here is my formula for the moment: =SUM(L6;+K7;-J7) the same formula will be on 90 cells on the same column.
If anyone could help!
Sincerely!
You can you use the combination of IF() and AND() methods in google sheet :
=if(and(ISBLANK(A2),ISBLANK(B2)),"",SUM(A2:C2))

Filter() formula is stopping conditonal format from working

I have a filter() formula in cell A1 which I want to be red if the cell is empty.
The problem is the cell is always populated because of the formula in the cell. Is there anyway round this?
The conditional formatting rule format cells if... is empty will highlight a cell when it is truly blank or only contains whitespace. It does not make a difference whether the cell contains a hand-entered value or a formula.
When a filter() formula gets zero results, the formula cell will display an #N/A error. Error cells are not considered empty. To make the formula cell truly empty in the event of zero results, and let your conditional formatting rule work the way you want, use the iferror(filter()) pattern.

Google Sheets change cell background if cell matches another cell from another sheet

I have tried using the conditional formatting custom formula on this, but no such luck. Basically, in the "Location" sheet if the text in a cell in column A matches the text in a cell in Sheet "Jobs" column A, then change the background to blue.
In the Location tab/sheet, I tried a custom formula to compare the value to the value of column A in the Jobs sheet but keep getting an invalid formula error.
=A2:A="JOBS!A2:A"
Do I need to use a custom script instead?
Use INDIRECT. This will work with two sheets where Sheet1 A2:A is equal to JOBS!A2:A and JOBS!A2:A is not blank.
Apply to Range
A2:A
Custom Formula
=AND(A2:A=indirect("JOBS!A2:A"), A2:A<>"")

Getting the row number of a hyperlinked cell in open calc

I have a file with two spreadsheets, Sheet1 and Sheet2.
In Sheet1 I have cells that link to a specific cell in Sheet2. This is done, using OpenCalc's HYPERLINK function.
Let's assume I use the following function in Sheet1.A1:
=HYPERLINK("#Sheet2.D4","SomeText")
In Sheet1.A2 I would like to fetch the row number of the linked cell (Sheet2.D4), so the end result to be 4(as the 4th row from Sheet2 is linked)
How can I achieve this?
Thanks for the help!
If this is only for =HYPERLINK() formulas for such internal cell links, then it can be achieved with this formula:
=MID(FORMULA(A1),SEARCH("[0-9]+(?!.*\.)",FORMULA(A1)),SEARCH("[;,]",FORMULA(A1))-SEARCH("[0-9]+(?!.*\.)",FORMULA(A1))-1)
More universal would be a macro solution.
Greetings
Axel

Resources