Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Findstring startpoint

Renjie
5 - Atom

I want to create a new field contains the information between the first "." and the second "." from "123.12345.123456"? I tried findstring but there was no start point like FIND in Excel. Thanks!

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Renjie,

 

I would use a RegEx expressiion like:

REGEX_Replace([Field1], ".*?\.(.*?)\..*", '$1')

This will find the stuff between the first and second "." characters.

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
AdamR_AYX
Alteryx Alumni (Retired)

Or alternatively you can achieve this with multiple formulas in one tool

 

MultipleFormulas.png

Adam Riley
https://www.linkedin.com/in/adriley/
Renjie
5 - Atom

Thanks!

MarqueeCrew
20 - Arcturus
20 - Arcturus

@AdamR_AYX,

 

If I were using a STRING function, I might use this:

 

Getword(ReplaceChar([Field1], ".", ' '),1)

By replacing the "." with a space, you can find the second word (1 is zero based and results in the 2nd word).

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels