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

the field contains 2 emails

CiaoPaola
7 - Meteor

Hi, 

the legacy table contains a single Email column that may contain 2 emails separated with a whitespace. 

The target table contains two Email fields : Email1 and Email2. 

 

I need to put the second email into the Email2 field. 

I cannot figure out how to do that. Can you help me? 

thank you

Paola

9 REPLIES 9
AkimasaKajitani
17 - Castor
17 - Castor

Hi @CiaoPaola 

 

You can use Text To Columns tool.

 

AkimasaKajitani_2-1624075500406.png

 

Set to "Split to columns"

Delimiters : you can input space or "\s".

 

AkimasaKajitani_0-1624075422467.png

 

Result : 

AkimasaKajitani_1-1624075492361.png

 

 

CiaoPaola
7 - Meteor

Hi Akim, cool solution indeed!

How can I select only the rows that contains 2 email addresses?

 

AkimasaKajitani
17 - Castor
17 - Castor

Hi @CiaoPaola 

 

If you have only one email at Email field, that workflow will work well.

 

AkimasaKajitani_0-1624076370115.png

 

If you have another situations, please let me know.

CiaoPaola
7 - Meteor

Hi Akim,

yes I have other typing mistakes such as: 

sample sample@email.com

sample@email. com

sample@ email.com

 

so before splitting the columns in 2 columns, I need to fix these typing mistakes first, don't I ? 

thank you

 

AkimasaKajitani
17 - Castor
17 - Castor

Hi @CiaoPaola 

 

I added the your sample and then I change the workflow.

If the 2 emails row contain miss type, the workflow will not work well.

But it is work well at your sample.

 

Workflow

 

AkimasaKajitani_0-1624078491343.png

I split the contain 2 email or not and then I replace space on the data stream that not contain 2 email.

After that, I union 2 data stream and split the space.

 

Input

AkimasaKajitani_2-1624078561572.png

 

Result

AkimasaKajitani_1-1624078514508.png

 

CiaoPaola
7 - Meteor

Just splendid Akim! 

You made my day!!

thank you so much

CiaoPaola
7 - Meteor

Akim, 

may I ask you another question re Phone numbers in another thread? 

AkimasaKajitani
17 - Castor
17 - Castor

Hi @CiaoPaola 

 

Yes, of course.

I or another community member will respond to you.

CiaoPaola
7 - Meteor

thanks a lot!

Labels