Share via

Excel does not recognize equations formated as "Number" as numbers

Anonymous
2024-10-09T16:04:28+00:00

>I have this cell, S1 in an excel spreadsheet, written as ' 1+1 ' (quote marks added for clarity, not present in Excel)

>Using Ctrl+1 i set the cell to be a "Number"

> It works, no errors, shows "Number"

>Set next cell to be ' =0+S1 ' (quote marks added for clarity, not present in Excel)

>Returns " #VALUE! "

>Create function " =IF(ISNUMBER(S1);"true";"false") "

>It returns " false "

>check again
>S1 is still a "Number" format

A have a table representing mass, where "n" grams is represented as "n*10^-3" kilograms, and reformatting several hundred values would be a total pain!

is There some way for an equation to be represented as a number, and then evaluated in a separate cell?

Such as: " =0+S1 " returning "2"

The error happens at step " =0+"1+1" ", why does Excel add quote marks on it's own and how do i make it stop?

( just " =S1 " returns " 1+1 ")

I've tried searching online for some Excel function that can solve equations represented in a "Number" cell, but i haven't found anything

Normally " =1+1 " returns " 2 ", and it still does if i copy and paste the equation in the formula bar

P.S.

No pictures or screenshots added because every time i try to paste or upload an image file into this thing, it says "upload failed" for some reason, and dragging and dropping doesn't work either.

Thanks!

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-10-09T16:32:12+00:00

You could do this:

Select T1.

On the Formulas tab of the ribbon, click Define Name.

Enter Eval in the Name box, and the formula =EVALUATE(S1) in the Refers to box.

Click OK.

Enter the following formula in T1:

=0+Eval

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-10-09T16:27:36+00:00

    I guess there really is no conveniet solution then, huh?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-10-09T16:14:00+00:00

    That is not going to work in any calcualation, 1+1 will be text, even though you can format as a number

    Was this answer helpful?

    0 comments No comments