Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

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 RESPUESTAS 7
LordNeilLord
Aurora

Hey @premkav 

 

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

RishiK
Alteryx
Alteryx

@premkav have a look at the attached workflow.

grazitti_sapna
Cástor

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.

grazitti_sapna
Cástor

@premkav  thanks.

Sapna Gupta
Etiquetas
Autores con mayor cantidad de soluciones