Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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)

RishiK
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