Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formula Parse Error in Google Spreadsheet Sparkline

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!

like image 310
Oliver Drummond Avatar asked Feb 22 '15 05:02

Oliver Drummond


People also ask

How do you format Sparklines in Google Sheets?

SPARKLINE syntax with options=SPARKLINE(data-range,{option1,option1-value;option2,option2-value,...}) data-range – the data range you want to create the sparkline for. The data range must include more than two cells in a column or row. option – the customization setting for the sparkline chart.

Why am I getting an error in Google Sheets?

Google Sheets Error. This error occurs when one or more parameters in your formula are of a different type than what is expected. So if a function only accepts numbers as a parameter, but you have a text value in the cell being referenced, then you will end up with a #VALUE! error.


1 Answers

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"}

like image 172
Ed Gomoliako Avatar answered Sep 22 '22 19:09

Ed Gomoliako