Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Extracting a number

Highlighted
7 - Meteor

How to extract 19 from 2019456532?

 

I know of findstring, but that gives me the position of the digit.

 

Thank You for your help.

 

Shounak

Highlighted
7 - Meteor

HI Shounak,

 

Can you be more specific please with what you want. What are you trying to extract? Is it that you always want the 3rd and 4th digit of a string?

If that is the case one of the many ways you can do this is to use the Substring function.

Highlighted
17 - Castor
17 - Castor

Hi the @Ghosh 

 

This Substring formula using FindString and Length as parameters will give you what you looking for

 

substring("2019456532",findstring("2019456532","19"),length("19"))

Dan

Highlighted
7 - Meteor

thank you for the solution. I managed to get it frm substring function, but the findstring function paired together works great too.

Labels