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

I need to extract the numbers only within this column.


Answers

  • =Chris Palmer
    =Chris Palmer ✭✭✭✭✭
    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!