Comments on: Getting Google Spreadsheets to interpret string as formula
http://ask.metafilter.com/116572/Getting-Google-Spreadsheets-to-interpret-string-as-formula/
Comments on Ask MetaFilter post Getting Google Spreadsheets to interpret string as formulaThu, 12 Mar 2009 11:21:24 -0800Thu, 12 Mar 2009 11:21:24 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: Getting Google Spreadsheets to interpret string as formula
http://ask.metafilter.com/116572/Getting-Google-Spreadsheets-to-interpret-string-as-formula
I have hundreds of text strings entered through a form in a Google Spreadsheets which look like <strong>4*3 9*2 17*3 22 37*4 52</strong>. I can easily substitute " " for "+" and concatenate a "=" in front
<strong>=4*3+9*2+17*3+22+37*4+52</strong>. Now I have a text string which looks like a formula but isn't one.
How can I make Google Spreadsheets interpret this string as a formula? <br /><br /> <a href="http://ask.metafilter.com/87347/Getting-Excel-to-interpret-string-as-formula">These Excel solution</a> don't apply because I'm not always around when someone makes a new form entry.<br>
<br>
With <strong>=sum(split(A1,"+"))</strong> it's possible to interpret a string like <strong>4+9+17+22</strong> and get a correct result.<br>
<br>
However <strong>=multiply(split(A1,"*"))</strong> does not work for <strong>17*3</strong> ("<em>Wrong number of arguments</em>", even though split should create 2 arguments here). So a combination of splits, multiply and sum also fail.<br>
<br>
Is there another solution?post:ask.metafilter.com,2009:site.116572Thu, 12 Mar 2009 10:53:28 -0800AkeemGoogleSpreadsheetSpreadsheetsExcelTextStringFormulaSplitInterpretresolvedBy: adamrice
http://ask.metafilter.com/116572/Getting-Google-Spreadsheets-to-interpret-string-as-formula#1671137
=product(split(a1,"*")) does workcomment:ask.metafilter.com,2009:site.116572-1671137Thu, 12 Mar 2009 11:21:24 -0800adamriceBy: nyc_consultant
http://ask.metafilter.com/116572/Getting-Google-Spreadsheets-to-interpret-string-as-formula#1671612
Copy all the cells and paste them into excel. They get properly calculated. then copy and paste them back into google docs.comment:ask.metafilter.com,2009:site.116572-1671612Thu, 12 Mar 2009 17:16:06 -0800nyc_consultantBy: Akeem
http://ask.metafilter.com/116572/Getting-Google-Spreadsheets-to-interpret-string-as-formula#1672123
I was looking for a solution where I do not have to intervene to get a result. A lot of people can make an entry through the form and they like to see the results (displayed in a graph) immediatly. They can not wait until somebody drops by.<br>
<br>
As the product funtion works, I can now look for the correct order of splits, sum and multiply to do these calculations in 1 step.comment:ask.metafilter.com,2009:site.116572-1672123Fri, 13 Mar 2009 01:35:08 -0800Akeem