How to SET CELL VALUE without written any formula in it - google-sheets

I have values in
A2 = "2"
B2 = "1"
C2 = "3"
and formula in D2
Is it possible to set a value of Cell A3 equals to C2 without putting any formula in A3 and depending upon results of D2 and not using app script?
Like if:
D2 = if(A2>B2,than value A3= C2 eles keep blank

no, it's not possible without formula & without script. the formula would be:
=IF(A2 > B2, C2, )
however, you can add a column to the left of A column and then put this formula in A3 cell:
={"", IF(B2 > C2, D2, )}

For (almost?) all practical purposes "can't be done" but as a curiosity, and perhaps with some liberal interpretation of the requirements (and because tagged google-query-language), it might be considered technically feasible (if largely useless). Assuming the 'trigger' is for the formula in D2 to return 9, in A2 with A3 blank:
=query(C2:D2,"select C where D=9 label C '2'")

Related

Return 1,0 after looking through multiple scenarios if any are true

I need column J to look at multiple different scenarios and return 1,0 if any are true.
In J1 (and continuing down column J)
if B1 is a number and
B2 and B3 are blank and
the sum of G1:G3 is 2 or more
or
if B1 is a number and B2 is a number or if B2 is "-" and B3 is a number
then return 1
However, if in the range of H1:H3 there is a FALSE,
then an additional row must be added to the sum of G1:G3.
If B1 is "-" then J1 is empty
EXAMPLES:
B1 is a number, B3 is also a number, so J1 should read 1
B11 Is a number. B12:B13 are "-". So then we look to the sum of G11:G13. That equals 2, so J11 should read 1.
B23 is a number, and B24:B25 are "-". So then we look to the sum of G23:G25. However H25 is False, so now we look to the sum of G23:G26. If H24 is false too, then we would look to the sum of G23:G27.
One goal is to always add three applicable values from G, looking at H to determine applicable values.
I could split up these formulas into multiple columns if needed.
SAMPLE SHEET
I worked out this formula
=if(B1="-","",if(or(IF(AND(ISNUMBER(B1),SUM(G1:G3)>=2,B2="-",B3="-"),1),if(and(isnumber(B1),or(isnumber(B2),isnumber(B3))),1)),1))
But have no idea how to add the stipulation for column H when a FALSE is present.

With IF and IFERROR im gettnig #DIV/0

im tryig to setup a formula where for example
B2 will always be -1, cos B1 is empty
and lets say
E2 will aways return #DIV/0, cos from target E1 will be populated with some number and F1 will aways be blanck,
explation is simplified, but its about growth %
=if((B1/C1)-1=-1;"-";iferror((B1/C1-1)*SIGN(C1);"-"))
with that formula i manage to get b2 to display "-", but E2 draggig formula to it, displays #DIV/0
but if i use only
=iferror((B1/C1-1)*SIGN(C1);"-")
it manages to get the error and display "-"
what am i missing trying to combine if and iferror in this case? cant spot my mistake
try:
=IFERROR(IF((B1/C1)-1=-1; "-"; (B1/C1-1)*SIGN(C1)); "-")

Create 3 output results (rows) from one cell (Google Sheets)?

I found an issue, and I do not know if the title explains it precisely, but I somehow need to create 3 different output results (rows) based on the value in one;
I want to only enter one value in cells A2, A3, A4 (maybe have the cells merged?), the same in B2, B3, B4; C2, C3, C4 and D2, D3, D4. But in column E I need 3 output results for one value in B2.
What would be the most efficient way to do that?
Here is the sheet that I am working on:
https://docs.google.com/spreadsheets/d/1PYPjFr3Ny_ycDJ0PEgdd3y7VAW6J32RGtqqPLDIyXQ4/edit?usp=sharing
How can I do that with one formula based on value in B2 I will get 3 output results in column E that will concatenate string "MO_MED_" with B2 and add different endings _EDITABLE, _REQUIRED, _VISIBLE?
Just to make an explicit answer, the correct way to proceed here would be to use the CONCATENATE.

Make a cell empty instead of zero if its formula fails in Google Sheets

Lets say I have 3 cells with the following contents:
A1 = "" (Empty)
B1 = "" (Empty)
C1 = PRODUCT(A1, B1)
I assumed C1 would be empty given that A1 and B1 are empty. However, C1 displays 0 instead. What I want to do is make C1 empty if any/both of A1 and B1 is/are empty. Is there a way to do this? I read somewhere that spreadsheets treat empty cells as 0.
you can do it like:
=IF(LEN(A1&B1), PRODUCT(A1, B1), )
Just use If():
=IF(OR(A1="",B1=""),"",PRODUCT(A1,B1))
(Or use AND() if both need to be blank to return "".)

Auto generating if 3 columns is not empty

=ARRAYFORMULA(IF(B2:B<>""&C2:C<>""&D2:D<>"","I"&+row(1:1000),""))
When B2, C2 and D2, is not empty, A2 will generate I#.
However, I# auto generated to I1000 even B2, C2 and D2 are empty.
How can i fix this?
Thanks!
Change your formula to
=ARRAYFORMULA(IF( (B2:B<>"")*(C2:C<>"")*(D2:D<>""),"I"&+row(1:1000),))
and see if that works?

Resources