ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to extract number from text cell

SahadhKuruniyan
Asteroide

I have to extract code from a cell. The text is not even so can't use text to filter. Is there any way we can extract the number

3 RESPUESTAS 3
apathetichell
Arturo

regex_replace([field[,"^(.*)_(\d+-\d+)_(.*)$","$2") is what I would start with...

FinnCharlton
Púlsar

@SahadhKuruniyan You want the text inbetween the underscores? Add a Regex tool, set it to parse mode and use the regular expression:

.+?_(\d+-\d)_.+

Hope this helps! 

SahadhKuruniyan
Asteroide

Thanks alot. However I bit confused here, Can you tell me what would be formula if I have to extract code between ()..eg (12423-4) and between(space....eg (2323-5 

Etiquetas
Autores con mayor cantidad de soluciones