如何计算 google 电子表格中的字符串

How to evaluate a string in google spreadsheet

我想知道这在 google 中是否可行 sheet:


cell A2 has string  100*2 + 50

How to get the result in another cell, such as A3 = evaluate(A2) and get 250?

我在这里分享了 public google sheet “stringEvaluate”:

https://docs.google.com/spreadsheets/d/10NzbtJhQj4hQBnZXcmwise3bLBIAWrE0qwSus_bz7a0/edit#gid=337388679

必填

从另一个字符串单元格中获取数学结果

我的尝试

=query(A2)   This gives the same string, does not evaluate

尝试:

=INDEX(QUERY(, "select "&A2), 2)