Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

extract number from the string

Ekta
8 - Asteroid

Hello

 

 

1,234.59 MR I MIMa  qwerty                                  output 1,234.59

1,234.59 MR                                                                       1,234.59

 

 

4 REPLIES 4
marcusblackhill
12 - Quasar
12 - Quasar

Hey @Ekta !

 

A easy way to do that is using Data Cleansing tool, there you can select the column and mark the checkbox to remove letters.

 

Hope that helps

echuong1
Alteryx Alumni (Retired)

You can use regex.

 

(.*\d)\s\w.+ will grab everything before a space following a digit. You can also use text to columns.

 

echuong1_0-1610131016303.png

 

marcusblackhill
12 - Quasar
12 - Quasar

If you need help to configure:

 

1. Select the target field here

marcusmontenegro_0-1610131041098.png

2. Check this box

marcusmontenegro_1-1610131059850.png

 

If you need this in a different column, can duplicate the original column using formula tool and do that with the new one.

Ekta
8 - Asteroid

Thanks a lot 🙂 works for me 

Labels