Start Free Trial

Alteryx Designer Desktop Discussions

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

Help with Conditional Formula for a new column

Yeonsujen
8 - Asteroid

Hello,

I have the following table:

ID Number
12345678
12345678x
55555555
55555555a
55555555b


I need the following output:

ID NumberComment
12345678 
12345678xDuplicate
55555555 
55555555aDuplicate
55555555bDuplicate


All ID Number's have a "00000000" format (8 digits) and if there are any letters after this then the new column Comment should say "Duplicate". Is there a way to do this using the formula tool?

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Yeonsujen 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643202267604.png

 

Hope this helps : )

 

Yeonsujen
8 - Asteroid

Hi @atcodedog05,

This works perfectly! Thank you so much for your quick response 😀

Yeonsujen
8 - Asteroid

Hi @atcodedog05, I'm so sorry but I forgot to include this in my example above!

With your workflow, it works great if it's for duplicate ID Numbers but I need it more specifically for the ID Numbers with any letter afterwards. Please see the updated example below!

I have the following table:

ID Number
12345678
12345678
12345678
12345678x
55555555a
55555555
55555555
55555555b


I need the following output:

ID NumberComment
12345678 
12345678 
12345678 
12345678xDuplicate
55555555aDuplicate
55555555 
55555555 
55555555bDuplicate


Sorry for the error on my side! Please let me know if you're able to help, otherwise I'm happy to repost again with the more accurate example!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Yeonsujen 

Cheers and have a nice day!

atcodedog05
22 - Nova
22 - Nova

Hi @Yeonsujen 

 

Please find the updated solution

 

Workflow:

atcodedog05_0-1643206558578.png

 

Hope this helps : )

 

Yeonsujen
8 - Asteroid

@atcodedog05 You're the best!!! Thank you so much for your help (again!). Have a lovely day also 😁

Labels
Top Solution Authors