Auto generating if 3 columns is not empty - google-sheets

=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?

Related

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.

Let user input a value in a cell containing a formula

I have a table that looks like this:
I'm not very familiar with google sheets yet, and I am looking for a way to allow users to input a value in one of the 4 cells containing a formula. Then the other cells would update according to the value the user entered in the cell he chose.
So if a user enters a value in B2 : B3 B4 and B5 would run the formula according to B2's value. And if then if he chooses to enter another value for B4 : B2 B3 and B5 would update accordingly.
I am not sure if what I have in mind is the correct way to do this, or if it is even possible at all. Any ideas on how to proceed?
I just answer according to my understanding, maybe I'm wrong to understand. I think you just paste your formula's in column c and allow your users to put values in B column, this is the way formula do automatic it for you. Sorry for bad English
I mean to put this in column c =B4/4 like bellow
and you get result like bellow
if you want to have custom inputs for values B2, B3, B4, B5 populate these cells with numbers and put your formulas in C column:
if you want to have custom inputs for values 4, 60, 30 then do it like this:

How to SET CELL VALUE without written any formula in it

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'")

Extract only the text if column in excel has both number and text

I have below two values in two excel row,
A1 _DC_SUBMISSION_STATUS_REPORT_20141016105520.pdf
A2 _DC_VALID_TRX_20141016105519.pdf
My expect result is
B1 _DC_SUBMISSION_STATUS_REPORT_
B2 _DC_VALID_TRX_
Need a formula for above requirement, Please help
=LEFT(A1,FIND("|",SUBSTITUTE(A1,"_","|", LEN(A1)-LEN(SUBSTITUTE(A1,"_","")))))

Resources