Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Rejex with conditions

mmustkee
10 - Fireball

Hi Team,

 

I have a column by the name of DC. I have below criteria. I want to create new column by DC1 and want as below:

if Dc is Null then put as " And Find"

If Dc is not numeric then put as "And Done"

if Dc is <>8 then " And Found" Otherwise DC.

Please refer attached or below:

DC
12345678
34567433
ac
bc
cc
tat
123adsfs
 
 
 
 
987654
56478
33333333
ac
abcfds
asdfcasd
 
 
98765432
xzx12345

Thanks for helping in advance.

 

Thanks,

mmustkee

 

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @mmustkee 

 

This formula might help you

IF IsNull([DC]) THEN  "And Find" 
ELSEIF !REGEX_Match([DC], "\d+\.?\d*") THEN "And Done" 
ELSEIF [DC]!="8" THEN "And Found" 
ELSE [DC] ENDIF

 

Workflow:

atcodedog05_0-1621329553109.png

 

Hope this helps 🙂

 

mmustkee
10 - Fireball

Yes, It worked

Thanks a lot.

Labels
Top Solution Authors