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

Alteryx Designer Desktop Discussions

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

Replace Part of a String with Blank

Tommy_Alterax
8 - Asteroid

Hi Guys,

 

I have a set of data attached- Look at the variable "Level"

 

I would like to replace the first part of the string "20-120" with a blank (not text to columns if possible) - Is Regex ?

 

Secondly where there is a "PIR" replace this with a blank also - pleae note not all rows have a PIR

 

Regards,

             Tommy

 

 

 

 

2 REPLIES 2
kelsey_kincaid
12 - Quasar
12 - Quasar

Hi @Tommy_Alterax ,

Will there ever be values besides 20-120 and PIR that you want to replace with blank in your string? If not, you could create a formula with a nested REPLACE formula to replace those two values in your string.

 

TRIM(
REPLACE(
REPLACE([Level],'20-120 ',''),'PIR',''))

 

Tommy_Alterax
8 - Asteroid

Thanks I think that works !

Labels