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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

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