I am trying to get some graphs via googlefinance in my sheets.
=SPARKLINE(GoogleFinance(A4; "price"; TODAY()-180; TODAY()))
works totally fine but
=SPARKLINE(GOOGLEFINANCE(A4,"price", TODAY()-30,TODAY()),{"charttype","line";"color","green"})
gives me parsing errors. If I try it in another sheet, it works.
your sheet is german so you need to use:
; insted of , in formulas
\ instead of , in arrays {}
so formula will be:
=SPARKLINE(GOOGLEFINANCE(A4; "price"; TODAY()-30; TODAY());
{"charttype"\"line";"color"\"green"})
Related
Using IMPORTXML in google sheets. I want to extract part of the result into one cell.
=IMPORTXML(B1,"//div[#class='orca-rating SwtJyda color-yellow tbody-6']/span")
I got the result spread over several columns. B8:F8
The inspect element is like this. I only want the value "2". It is in cell B8.
I think this can be done using substring-after. But I could not get the correct result.
In your situation, how about the following samples?
=REGEXREPLACE(JOIN("",IMPORTXML(B1,"//div[#class='orca-rating SwtJyda color-yellow tbody-6']/span")),"[^0-9]","")
=REGEXEXTRACT(JOIN("",IMPORTXML(B1,"//div[#class='orca-rating SwtJyda color-yellow tbody-6']/span")),"\((.*)\)")
References:
REGEXREPLACE
REGEXEXTRACT
I use this formula. That works too.
=INDEX( IMPORTXML(B1,"//div[#class='orca-rating SwtJyda color-yellow tbody-6']/span"),3)
But tanaike's formula is very good.
I have a google form linked document with 2 sheets (1 with a linked form, 1 without). If I try using some formulas (SUMIF or QUERY) in the sheet that is not linked I get a "Formula parse error", additionally the syntax highlighting bugs out when typing a SUMIF formula.
For reference, this is the exact sheet and formula I am trying:
However, If I copy and paste the exact contents of this sheet to another google sheets document, then the SUMIF just works. Does having a google form linked sheet in the same document affect the other sheets?
you sheet has non-english locale therefore you need to use semicolon ; instead of commas , in formula syntaxes
if you use ; in non-english sheets = all is ok
if you use ; in english sheets = all is ok - all ; are autocorrected into ,
if you use , in english sheets = all is ok
if you use , in non-english sheets = you got a syntax error
also keep in mind that arrays {} have its own syntax universe...
in english sheets you use , to stack stuff next to each other
in english sheets you use ; to stack stuff under each other
in non-english sheets you use \ to stack stuff next to each other
in non-english sheets you use ; to stack stuff under each other
anyway, if you are not sure what to use either check the settings or you can take a hint from the formula tooltip helper box:
Working with the Base and Data tabs from this sheet: https://docs.google.com/spreadsheets/d/1OsSWQ_48VrcTU3pXGeJ_1syluKPVeVRune39UA9I3x4/edit?usp=sharing
Expected result is textjoin of all colors matching SKU separated by comma in column C on Base tab.
Expected result shows in Column D, done manually.
All formulas i've tried either put everything in one cell (C2), gives an N/A error(C4), just pulls the first result (C5) or it is just completely blank.
Please help? If you cannot, then thank you for reading anyway.
I did it on a new Sheet on the Spreadsheet that i took the liberty to create (hope it's ok)
For getting the colors I used QUERY: so it came out as QUERY(Data!B:G,"select G where B = '"&A2&"'". After that I just fed that to your JOINTEXT formula
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:
This code calculates a sum of string lengths in the range H1:V5 using G as a row index and C as a column index. It works perfectly in Excel:
{=SUMPRODUCT(LEN(INDEX(H1:V5,N(IF({1},ROW(G2:G5))),N(IF({1},C2:C5+1))))*ISNUMBER(G2:G5))}
But when I try it in Google Sheets it doesn't work although Google Sheets recognizes all commands. Is it possible to convert my formula to Google Sheets? Or maybe there is some workaround to get the same result there?
Open with Google Sheets returns incorrect result:
=ARRAY_CONSTRAIN(ARRAYFORMULA(SUMPRODUCT(LEN(INDEX(H1:V5,N(IF({1},ROW(G2:G5))),N(IF({1},C2:C5+1))))*ISNUMBER(G2:G5))), 1, 1)
Unfortunately the construct index...n(if({1}... is peculiar to Excel.
The vlookup function in Google sheets is very versatile and you can use that instead:
=SUMPRODUCT(len(vlookup(row(H1:K5),{row(H1:K5),H1:K5},C1:C5+2,false))*isnumber(G1:G5))