Free Trial

Alteryx Designer Desktop Discussions

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

How to get a 4th character from the right of a string

premkav
Meteoroide

Hi

I have a column that contains a alpha numeric values with a "-". The position of this - varies across the values.

All i need is the 4th character from the right of the string. What is the way to get this. In excel I used the left right formula for the same.

Eg - 123abc-001 (In this case i need the -)

        234defgh02 (In this case i need g)

Regards,

Avinash Prem Kumar

7 RESPOSTAS 7
LordNeilLord
Aurora

Hey @premkav 

 

I would do Substring(ReverseString([Field1]),3,1)

RishiK
Alteryx
Alteryx

@premkav have a look at the attached workflow.

Hi @premkav , you can try this if it helps.

 

 I have mentioned 2 different ways to solve this problem.

 

grazitti_sapna_0-1594373211632.png

 

Thanks.

 

Sapna Gupta
premkav
Meteoroide

Thanks. This works ..

premkav
Meteoroide

Thanks RishiK

premkav
Meteoroide

Thanks grazitti_sapna

Both the solutions are good.

@premkav  thanks.

Sapna Gupta
Rótulos
Autores com maior número de soluções