Hi today i got a document shared by my friends. I've just found out that this document/spreadsheet doesn't work as normally. Some formula just doesn't work here.
for example , normally if i use :
={1,2,3}
it should normally create a row with 3 columns (3 cells each contains 1,2,3 respectively).
But in this document , i got : "formula parse error"
Also found out that when i try to use some formulas , for example the filter(), the help/documentation shows something really different.Pls check my screenshot, normally it uses comma (,) separator while this document using semicolon (;). I'm confused what is wrong ? I'm suspecting that this maybe about google sheet versioning. Am i correct ? or something else ?
If yes, how can i convert this old version document into the latest one ?
Thanks.
your sheet is not US-based, therefore you need to use:
={1\2\3}
ENGLISH SHEETS NON-ENGLISH SHEETS
ROW ARRAY , \
COLUMN ARRAY ; ;
FX ARGUMENT SEPARATOR , ;
language of the spreadsheet can be found in the settings:
I'm trying to count how many entries I have on a sheet within a month range.
=ARRAYFORMULA(COUNTIFS(MONTH(PHXOctober!D:D),MONTH("Oct"&1),PHXOctober!L:L,"Jeremy")) - This is the formula I'm using, and it seems to be counting correctly, but it's slightly off when I CTRL F everything from October.
Am I wrong for using MONTH("Oct"&1) in my function? I just want a count with everything that has my name on it for the full month of October.
your formula is correct and usage of MONTH("oct"&1) is also correct
try:
=COUNTA(QUERY(PHXOctober!D:L, "select D where L = 'Jeremy' and month(D)+1 = 10"))
So I just found out about ArrayFormula and am trying to convert my spreadsheet to utilize it, to be more efficient. Its worked wonderfully on all my columns except one, which is giving me trouble.
Currently, I have this formula in it (and copied to each cell):
=IF(C2="Immediate",
D2+1,
IF(C2="3 Day",
WORKDAY(D2,3,Holidays!$B$2:$B$11),
IF(C2="5 Day",
WORKDAY(D2,5,Holidays!$B$2:$B$11),
IF(ISBLANK(C2),
IFERROR(1/0)
)
)
)
)
It works wonderfully to calculate a date, based on a dropdown menu I have in another column. I cant figure out how to convert this to utilize ArrayFormula, as I get an error as soon as I add a second IF statement.
I can get the first statement to work with this formula:
=ARRAYFORMULA(IF(C2:C="Immediate",D2:D+1,))
But as soon as I try to add a second IF statement(such as with the formula below) I get an error.
How do I do this? I figure its probably simple but I cant figure it out!
Im trying to use a simpler formula to figure out where I am going wrong, and same thing will happen with the following formula so Im clearly doing something wrong!
=ARRAYFORMULA(IF(A1:A=1,"Hello",),IF(A1:A=2,"Goodbye",))
With only the first IF statement, it works. As soon as I add the second, I get #N/A
I know this is old but maybe try this formula:
={"Header_Cell_Name_Here";
ArrayFormula(
IFS(
$C$2:$C="","",
$C$2:$C="Immediate", $D$2:$D + 1,
$C$2:$C="3 Day", WORKDAY($D$2:$D,3,Holidays!$B$2:$B$11),
$C$2:$C="5 Day", WORKDAY($D$2:$D,5,Holidays!$B$2:$B$11)
)
)
}
IFS is a great alternative to IF. Rather than taking three arguments like you do with an IF statement:
IF(logical_expression, value_if_true, value_if_false)
an IFS statement can handle any number of conditions:
IFS(condition1, value1, [condition2, ...], [value2, ...])
Try this formula somewhere on row 1 of your sheet:
=ARRAYFORMULA(IF(A:A="",,IF(A:A=1,"Hello",IF(A:A=2,"Goodbye","Other Result"))))
you can use that formula
=ArrayFormula(IF(C2:C="",IFERROR(1/0),IF(C2:C="Immediate",D2:D+1,IF(C2:C="3 Day",WORKDAY(D2:D,3,Holidays!$B$2:$B$11),IF(C2:C="5 Day",WORKDAY(D2:D,5,Holidays!$B$2:$B$11),IF(ISBLANK(C2:C),IFERROR(1/0)))))))
here is an example
Your first formula, expanded to arrays, works perfectly well for me
=ARRAYFORMULA(IF(C2:C5="Immediate",
D2:D5+1,
IF(C2:C5="3 Day",
WORKDAY(D2:D5,3,Sheet2!$B$2:$B$11),
IF(C2:C5="5 Day",
WORKDAY(D2:D5,5,Sheet2!$B$2:$B$11),
IF(ISBLANK(C2:C5),
IFERROR(1/0)
)
)
)
)
)
This is the best arrayformula with multi if conditions I usually use
AND Operator
=Arrayformula(if(isblank(A2:A),,if((condition1) * (condition2) * (condition3),statement, if((condition1) * (condition2) * (condition3), statement, ))))
OR Operator
=Arrayformula(if(isblank(A2:A),,if((condition1) + (condition2) + (condition3),statement, if((condition1) + (condition2) + (condition3), statement, ))))
Example :
=Arrayformula(if(isblank(A2:A),,IF(((F2:F="Completed") * (J2:J <= 50)), $AT$3, IF(((F2:F="Completed") * (J2:J > 50) * (J2:J < 150)), $AT$4, IF(((F2:F="Completed") * (J2:J>150) * (J2:J < 250)), $AT$5, IF(((F2:F="Not_loaded") * (J2:J = 0)), $AT$6, 0))))))
Kindly note that braces are required to work correctly.
Hi guys a Simple question.
I got 3 columns
A, B, C
with Name , Sku , order no .
Example :
Daniel, 45785 , C2=if(A2>0, CONCATENATE("x",A2,TEXT(ROW(A1),"000")),"")
so "C2" combines the other two cells and give me an unique order number as "xDaniel001"
Now the problem is if Mr. Daniel enters 2-3 sku's, its will generate order number for each entry as "xDaniel002 " and so on.
So how can i Skip the order numbers if Daniel orders 2-3 In Column C
order number should be in sequence .
this is what the output should like
A , B , C
Daniel, 45785 , xDaniel001
Daniel , 54852 , ( formula return with no value )
Asha, 54824 , xAsha002
Craig , 24584 , XCraig003
Daniel , 89784, ( formula return with no value )
All suggestions are welcome :)
Thanks
Try in C2:
=ArrayFormula(IFERROR(IF(LEN(A2:A)*(MATCH(A2:A,A2:A,0)=(ROW(A2:A)-1)),"x"&A2:A&TEXT(MATCH(A2:A,UNIQUE(A2:A),0),"000"),)))
And with your qualification in comments, that a new ID must be produced on a new day:
=ArrayFormula(IF(LEN(A2:A)*(MMULT((ROW(A2:A)>TRANSPOSE(ROW(A2:A)))*(A2:A=TRANSPOSE(A2:A))*(B2:B=TRANSPOSE(B2:B)),SIGN(ROW(A2:A)))=0),"x"&B2:B&TEXT(MATCH(A2:A&CHAR(9)&B2:B,UNIQUE(A2:A&CHAR(9)&B2:B),0),"000"),))
I am using the new Google Spreadsheets that was rolled out a couple of weeks back. I'm using a following query to pull data out of another spreadsheet:
=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheet/ccc?key=blablathisisanexample", "samplesheet!A:D"), "select SUM(Col4) where ( Col1 >= date '2012-1-1' ) ")
The query works perfectly well if I remove the bit 'where ( Col1 >= date '2012-1-1' )'. It will pull data and sum it correctly.
But what's wrong with my where-col1-date filter thingy? It's written the way it was in previous version of Google Spreadsheet, and it gives no error messages. It just returns a header and no result, as if it didn't find a single date. The dates in the data file are in column 1, written in format 4/7/2014, for example. This used to work in the previous version and I'm at a loss now.
I have several suggestions here. But first: Let's copy the "2012-1-1" value to a particular cell, say F5, and write it with the exact same date format az in the original spreadsheet: 1/1/2012.
Use FILTER function:
=SUM(FILTER(IMPORTRANGE("https://docs.google.com/spreadsheet/ccc?key=blablathisisanexample", "samplesheet!D:D"), IMPORTRANGE("https://docs.google.com/spreadsheet/ccc?key=blablathisisanexample", "samplesheet!A:A")>=F5))
I admit that it's not that pretty because of the two ImportRange functions, but it works for sure, I tried it.
If you insist on using QUERY then try to replace the where condition as follows:
"select SUM(Col4) where ( Col1 >= " & F5 & ")"
I haven't tried this one, but the first one (with FILTER) should work.