Forum Discussion

JNelson's avatar
JNelson
Helper II
2 years ago
Solved

Remove text from column but leave numbers

Hi community!   I have a data set where I have a column [Litres] which should be a numerical value, however the people inputting the data sometimes put text. I know I could use a data validation on...
  • edhans's avatar
    2 years ago

    Easiest thing is a new column as you suggest, but use try/otherwise and not if/then/else.

     

    The formula is:

    try Number.From([Column1]) otherwise null)

     

    If the conversion to number returns an error, try/otherwise will return null. You can change that to 0 or whatever in the formula.