Check if Excel cell text is numeric using formula only
Try multiplying the cell value by 1, and then running the IsNumber
and Trim
functions, e.g.,:
=IsNumber(Trim(A1)*1)
Assuming the value you want to convert is in A1 you can use the following formula:
=ISNUMBER(VALUE(TRIM(CLEAN(A1)))
Here the functions clean and trim are removing whitespace and none printable characters. The function value converts a string to a number, and with the converted string we can check if the value is a number.
The shortest answer I've got to my question is:
=N(-A1)
Thanks brettdj