The googlefinance integration, documented here, in google spreadsheets does not seem to work for me:
Example:
GOOGLEFINANCE("GOOG","price",TODAY()-30,TODAY())
Google spreadsheets gives the cell a red corner and prints the following message:
Fel i formeltolkning. which in english means something along the lines of Error in formatting.
The following does however work: =GOOGLEFINANCE("GOOG").
Also I can open other spreadsheets from links where the exakt same syntax seem to work. What can cause this?
Change comma to a semicolon.
GOOGLEFINANCE("GOOG";"price";TODAY()-30;TODAY())
Some regions (Norway!) use a comma for decimals. The other option is to change settings:
File > Spreadsheet Settings > Locale...
Related
I tried using the Data Validation on the column H by applying the custom formula: =REGEXMATCH(H1, "^[a-zA-Z0-9]+$"); but to no avail, Google Sheets tells me that this formula is invalid.
Back in 2020 it worked. Did Google change something?
From the screenshot it looks like the sheet locale uses semicolon ; convention instead of ,
go with =REGEXMATCH(A1; "^[a-zA-Z0-9]+$")
I'm Trying it:
=FILTER('Orginal'!A:D, 'Orginal'!D:D="Complete")
Screens:
And i have Error. "formula analysis error"
What im doing wrong?
You are having a syntax error here:
Please use the following formula:
=FILTER('Orginal'!A2:D, 'Orginal'!D2:D="Complete")
update after finding solution
It turns out the solution had to do with the spreadsheet location.
The location of the spreadsheet can determine if the formulas have either a comma or a semicolon, as well as the format of the dates. To change your location of the spreadsheet, you can do it in:
file => spreadsheet settings => locale and change the locale there.
Yeah bad screen.. but i found it... it was problem with this:
It shoud be :
=FILTER(Orginal!A:D;Orginal!D:D="Complete")
i changed "," to ";"
I'm writing since I'm experiencing some issues with the following IMPORTXML formula in Google Sheets:
=IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml","/catalog/book[2]")
The formula works fine most of the times but approximately once a day it breaks, showing an error in loading the formula and giving #N/A as a result.
The workaround is changing anything in the URL (i.e. http -> https or 000webhostapp.com -> 000webhostapp.org) and then changing it back. Basically I think the workaround is forcing Google Sheets to reload the formula.
The same thing happens if I use this formula:
=IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml")
No problem instead with the following formulas:
=IMPORTXML("https://gist.githubusercontent.com/Ram-N/5189462/raw/46db0b43ad7bf9cbd32a8932f3ab981bd4b4da7c/books.xml","/catalog/book[2]")
=IMPORTXML("https://gist.githubusercontent.com/Ram-N/5189462/raw/46db0b43ad7bf9cbd32a8932f3ab981bd4b4da7c/books.xml")
I think the issue is due to the hosting (000webhostapp.com) I'm using but I can't figure why. Any ideas?
you can try to trick it like this:
=IFERROR(
IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml", "/catalog/book[2]"),
IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml", "/catalog/book[2]"))
or if the switch is too fast add 1 fake switch between like:
=IFERROR(IFERROR(
IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml", "/catalog/book[2]"),
IMPORTXML("http://xmltestmagicplan.000webhostapp.ORG/xml_test.xml", "/catalog/book[2]")),
IMPORTXML("http://xmltestmagicplan.000webhostapp.com/xml_test.xml", "/catalog/book[2]"))
I keep getting an error while using the IMPORTRANGE formula:
=importrange(“1uUbz2HAzgwBwY3zMXqcLJM_Z8qVQZHNP0wzRaNHceTc”, “Sheet1!A:B”)
I changed the name of my sheets several times to make sure everything matches but see a:
Formula parse error
and I am not sure what I am doing wrong. The original sheet has several tabs as well.
Can you see where the error is?
This worked for me:
=importrange(“1uUbz2HAzgwBwY3zMXqcLJM_Z8qVQZHNP0wzRaNHceTc”; “Sheet1!A:B”)
Maybe try it with a semicolon
Add the link format
eg
=importrange("https://docs.google.com/spreadsheets/d/1uUbz2HAzgwBwY3zMXqcLJM_Z8qVQZHNP0wzRaNHceTc","Sheet1!A:B") this should fix it
One other issue that can prevent import range from working is leading or trailing space in your sheet name. Make you check the sheet tab and clean out any leading or trailing spaces or your formula won't work. :-)
I burned an hour reading this thread and recreating my formula over and over again before I finally found the issue.
You have it as Sheet1!A:B, but you are missing the single quotes to identify the sheet name.
It should be 'Sheet1'!A:B instead.
The full formula is below:
=importrange(“1uUbz2HAzgwBwY3zMXqcLJM_Z8qVQZHNP0wzRaNHceTc”, “'Sheet1'!A:B”)
Make sure the sheet you're trying to import from is saved as a google sheet. I was trying to import an .xls file into a google sheet, and it wouldn't work. I re-saved the sheet as a google sheet and it fixed the problem immediately.
Problem
This formula does not work
=importrange(“1uUbz2HAzgwBwY3zMXqLJM_Z8qVQZHNP0aNHceTc”,“Sheet1!A:B”)
Reason why
You use curly double quotes “ ” instead of straight double quotes " "
SOLUTION
Change the quotes from curly to straight
=importrange("1uUbz2HAzgwBwY3zMXqLJM_Z8qVQZHNP0aNHceTc","Sheet1!A:B")
Be careful
If you have different locale you must also change , to ;
I'm having some trouble using the SPARKLINE function on Google Spreasheets. If I use the "default" formula, like =SPARKLINE(C9:N9), it works nicelly. But, everytime I try to add some extra options, like using columns instead of lines, for example =SPARKLINE(C11:N11;{"charttype", "bar"}), I get a "Error, Formula parse error." message.
Has anyone here had the same problem? Any idea of how can I fix it?
Thanks!
From https://productforums.google.com/forum/#!topic/docs/QzVhyW5bi-A
When you address the option like an object, then you should use a backslash: =SPARKLINE(C11:N11;{"charttype"\"bar"}