I have a Character object and i am trying to convert it into numeric object. Some of the rows in that column are Undefined values which are blank values.
When i create a variable and use the function =ToNumber() then at the undefined values i am getting #ERROR Message. How to remove that error message. At the undefined rows i need to display 00000 because i need to concatenate this object with other objects.
First of all, if you’re converting this to a number, you won’t be able to easily concatenate it to a character string. It works, but it’s not ugly. However, if you want it to be a number, try something like this:
=If IsNumber() Then ToNumber() Else 0
Then, if you want to concatenate it, you will want to convert it to a string with something like this:
=FormatNumber((If IsNumber([Flow #]) Then ToNumber([Flow #]) Else 0),“00000”)