In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

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

premkav
6 - Meteoroid

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 REPLIES 7
LordNeilLord
15 - Aurora

Hey @premkav 

 

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

rkapoor
Alteryx
Alteryx

@premkav have a look at the attached workflow.

grazitti_sapna
17 - Castor

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
6 - Meteoroid

Thanks. This works ..

premkav
6 - Meteoroid

Thanks RishiK

premkav
6 - Meteoroid

Thanks grazitti_sapna

Both the solutions are good.

grazitti_sapna
17 - Castor

@premkav  thanks.

Sapna Gupta
Labels
Top Solution Authors