Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove text and add

yeruvab
7 - Meteor

I have question on how to achieve column name 'ABC' has a value Butterflies | Props,

add 'PRP: ' in front of text AND Remove anything before the | , example output like PRP: Props
 
6 REPLIES 6
kamal03
9 - Comet

Hi @yeruvab 

 

There are multiple ways to do this, one of them is to use a formula tool to substring the string.

 

Try the below formula :

 

'PRP:' + Substring([ABC], FindString([ABC],'|')+1,Length([ABC]))

.

 

 

binu_acs
21 - Polaris

@yeruvab One way of doing this

Trim(REGEX_Replace([Abc], '.*\|(.*)', 'PRP:$1'))

image.png

yeruvab
7 - Meteor

Thank you for your prompt reply, it worked :)

yeruvab
7 - Meteor

This worked like magic!! thank you so much :)

yeruvab
7 - Meteor

Thanks!

yeruvab
7 - Meteor

The data source is excel file and its not taking the empty cell as null.

 

Labels
Top Solution Authors