Bengaluru, IN

Welcome to the Bengaluru User Group

Click in the JOIN GROUP button in Home to follow our news and attend our events!

SOLVED

How to extact particular number from cell

Neeta_Latwal
7 - Meteor

How to extract 7 digit number placed before -firm paid, please help

 

00124565-1111225-1234567-firm paid
00124565-1234567-firm paid
00144565-1111227-1234567-2234568-firm paid
00144565-2234568-firm paid
6 REPLIES 6
JS1989
8 - Asteroid

Hey please try this, hope this helps :)

p-g
8 - Asteroid

You can leverage RIGHT and LEFT Functions in Formula Tool. Left(Right([Field1],17),7)

 

Alteryx_Left-Right_FormulaTool.png

kamal03
9 - Comet

Hi @Neeta_Latwal ,

 

There can be multiple ways to do this one of them is to use the RegEx tool.

 

Please try the below workflow using this expression:--

(\d{7})(?=-firm paid)

 

Neeta_Latwal.png

 

 

p-g
8 - Asteroid

You can also leverage Regex Tool to Parse, (\d{7})(?=-firm paid).

Alteryx_Regex_ExtractExample.png 

Neeta_Latwal
7 - Meteor

Thankyou every, able to run the query. really helpful.

 

FláviaB
Alteryx Community Team
Alteryx Community Team

Hi @Neeta_Latwal. Don't forget to mark the answers that helped you as a solution; that way, you can help other users who may have the same question. 😉

Flávia Brancato