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