We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Update Column with condition

ksarker
7 - Meteor

How to update Column C with EXP and REV word 

 

1. if Column A first two digits are 15 then Column B # then replace Column C with "REV". 

2. if Column A first two digits are 17 then Column B # then replace Column C with "EXP".

 

Column AColumn BColumn 
154589#n/a
17456#n/a
154589#n/a
4 REPLIES 4
binuacs
21 - Polaris

@ksarker One way of doing this

 

binuacs_3-1678813616167.png

 

FinnCharlton
13 - Pulsar

Hi @ksarker , here's a way to do this with a Formula tool:

 

FinnCharlton_0-1678813665954.png

Hope this helps!

ksarker
7 - Meteor

thanks both of them are helpful. but if i have more information such as below with two more rows then how to implement these formulas without having any change into last two rows (EXP, REV) because now it's changing all other items into NULL. I want to keep last two rows as it is no changes for last two rows.  

Column AColumn BColumn
154589#n/a
17456#n/a
154589#n/a
6504ABCEXP
4809XYZREV

 

 

BS_THE_ANALYST
15 - Aurora
15 - Aurora

@ksarker you just need to change @FinnCharlton 's logic slightly:

BS_THE_ANALYST_0-1678828802800.png

 

 

All the best,
BS

LinkedIN

Bulien
Labels
Top Solution Authors