How will I leave my cell blank if I have this formula?
=if(O2<>"",roundup(O2-E2,0),"")
Thank you
try:
=IF(ISBLANK(O2),,ROUNDUP(O2-E2, 0))
Related
I am trying to write a function that checks a cells value, and if that cell value is >0 it moves to the cell below, and checks that cell. Once it finds a cell that is not greater than zero then it posts the last cells value that was greater than zero.
i.e. C39 = 400 move to cell C40. C40 = 440 move to cell C41. C41 = 0, return cell value of C40.
Any insight would be greatly appreciated! :)
Try this:
=INDEX(
A:A,
MIN(
IFNA(MATCH(0, A:A, 0) - 1, ROWS(A:A)),
IFNA(MATCH(True, A:A = "", 0) - 1, ROWS(A:A))
)
)
This formula will return a cell with the minimal row number that is before the 1st 0, or it is before the first blank cell, or if there are no 0 and no blank cells it will return the last cell in a column.
Change A:A to C:C or whatever column you need.
How can I check in Google Sheets if each cell in a range e.g. B2:G2 contains a word e.g. holiday?
=ARRAYFORMULA(IF(IFERROR(REGEXEXTRACT(B2:G2, "holiday"))<>"", TRUE))
=ARRAYFORMULA(IF(SUM(IF(IFERROR(REGEXEXTRACT(B3:G3, "holiday"))<>"", 1))=6, TRUE))
Can someone help me to type this formula: =IF($F5>0,I4/$F5,0)
inside this formula: =IF(F5="","",[I-want-to-type-it-here])
The first formula =IF($F5>0,I4/$F5,0) is to calculate the profit margin, and the second is to leave the cell empty until I enter data in a different cell.
try it like this:
=IFERROR(IF($F5>0, I4/$F5, 0), )
=IF(F5="", ,
IF($F5>0, I4/$F5, 0))
=IF(F5="", , IFERROR(IF($F5>0, I4/$F5, 0),
IF($F3>0, I3/$F3, 0)))
I have a return value from a function in cell A1. Let's say it's 51.
How can I use this value as a row number. I don't want 51 in A1 but instead I want the value from cell A51 in cell A1.
Is there a formula?
Use indirect:
= indirect ("A"& 51)
This is the scenario:
In cell A1 I have value "12".
In cell B1 I enter value "1".
In cell C1 I want to have value of Column "A" and row defined in cell B1.
How can I display the value "12"?
=INDIRECT("A"&B1)
Help page for INDIRECT function: https://support.google.com/drive/answer/3093377?hl=en-GB