I have a string of a numeric calculation in one cell. The input for the cell is ="1+2+3"
. So the cell is displayed like this:
Column A |
---|
1+2+3 |
How can I get the numeric outcome of the calculation (=6)?
I tried using the function VALUE
but it gives an error because it expects a string of a number, not a string of a calculation with operators.
I also tried manually setting the data format of the cell but it didn't change (automatically switched back).
How can I solve this?
Thank you!
=
to the beginning of your string so that Numbers sees it as a formula, but I'm guessing that's not what you're really asking. Can you clarify by editing your question.=
is already part of the cell's input.="1+2+3"
) instead of just using digits (i.e.=1+2+3
)?abc
- where "a" stands for 1, "b" stands for 2 and "c" stands for 3 - into the sum of what they stand for, in this case 6. I used theSUBSTITUTE
function to convert the string "abc" into the string "1+2+3" but don't know how to proceed to make it calculable. Probably there's a more elegant way to do this...