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

return value, different length

tiverson
8 - Asteroid

Trying to return values from original list, without the [-] 510S_ items or the 510S_

The PC Group column is what I am trying to come up with

tiverson_1-1645117366980.png

 

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @tiverson 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1645117621429.png

 

Hope this helps : )

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

maybe something simple might be helpful...

IIF(Contains([Company],"[-]"),'',Replace(Replacechar([Company],"510S",''),"_",'')))

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @tiverson,

 

I would use a regex approach to parse out the numeric part:

 

JonathanSherman_0-1645117899055.png

 

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

binuacs
21 - Polaris

@tiverson 

IIF(REGEX_Match([Company], '^(510S)\_(\d+)'), REGEX_Replace([Company],'.+_(\d+)','$1'),Null() )

binuacs_0-1645118038725.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@tiverson ,

 

Thank you for marking my solution as "a" solve.  Please do try other solutions and you can mark as many of them as "SOLVES" as your time permits.  It encourages others to contribute and might make for an interesting discussion.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
tiverson
8 - Asteroid

I also need the characters returned, not just the numbers.  My original screenshot did not show all of my data.

 

tiverson_0-1645123223862.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @tiverson 

 

Provide excel with sample data.

tiverson
8 - Asteroid

My original post had all of the excel data

tiverson
8 - Asteroid

file attached

Labels
Top Solution Authors