Alteryx Designer Desktop Discussions

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

Removing the first and the last letters

Tim6
8 - Asteroid

Hi there, 

 

 i'd like to remove the first 5 characters and the last 5 characters.

 

All Characters:

 

TBHHH12345678TBHHH

 

Can you please let me know what formula i can use to do this? 

 

Thank you,

Jessica

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Tim6 

 

Substring([field],5,8)

 

 of the string is always the same.  If you want to strip all letters, use a cleanse tool.  

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

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

Hi @Tim6, you could try something along the lines of the following:

Substring(
		Left([Field1],Length([Field1])-5)
		,5
		,Length([Field1])
)

 

Maskell_Rascal
13 - Pulsar

Hi @Tim6 

 

Try this:

Substring([Field1],5,Length([Field1])-10)

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Thanks!

Phil

Qiu
20 - Arcturus
20 - Arcturus

@Tim6 
A bit late for the party.

Some different with RegEx.

0122-Tim6.PNG

Labels