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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Sub String and Find String together

Rajesh
6 - Meteoroid

Hi there,

 

I am trying to extract specific value from the cell.

 

From the cell Col AL4       | | 0996792463_0037932 | S61584 | 101 | 440061339 |

 

Using the formula in excel =TRIM(MID(AL4,5,SEARCH("|",AL4,4)-5))

 

it gives me the correct value = 0996792463_0037932

 

However when I am trying Alteryx 

 

Substring([AL],5,FindString([AL],"|",4)-5 

it is not working.

 

Need help

 

 

2 REPLIES 2
binu_acs
21 - Polaris

@Rajesh The FindString() function will always check the first occurrence of the character in the given string, in this case, this function will return the first occurrence of the char "|", that's why you are not getting the correct result, one way of achieving your expected output you need to trim the characters || from the string then try with the formula

binuacs_0-1685481655032.png

 

Rajesh
6 - Meteoroid

@binu_acs  Thank you so much this really works.

Labels
Top Solution Authors