Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Is there a way to extract only the numbers within a string?

I need to extract the numbers only within this column.


Answers

  • Community Champion
    edited 11/03/22

    Hi @Maei,

    You can explore with something like this:

    =IFERROR(IF(AND(VALUE(LEFT(ColumnName@row, 2)) > 0), LEFT(ColumnName@row, 2)), IFERROR(IF(AND(VALUE(LEFT(ColumnName@row, 1)) > 0, ISTEXT(MID(ColumnName@row, 2, 1))), VALUE(LEFT(ColumnName@row, 1)), ""), ""))

    Replace "ColumnName" with the name of your column.

    Hope this helps!

    https://www.linkedin.com/in/zchrispalmer/

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions