We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Validate email address with Formula tool and output reports as Excel workbooks

45179902
8 - Asteroid

I'm trying to accomplish three things. I'm not very familiar with regular expression, and I continue to run into errors. I have a data table looks something like this:

 

CODEIDFirst NameLast NameEmail
E20220120220101JasonSullivanjsullivan@gmail.com
E20220120220102JosephRavenjrs@HOTMAIL.com
E20220120220103CallanMcDosky 
E20220120220104GeorgeLeez-li@school.edu

(all data presented are fictional)

 

1) I'm trying to validate if the email addresses are valid. I want to add a column that includes flags indicating whether the address is empty "Not Applicable", valid "Valid" or invalid ("Not Valid").

 

2) After that I want to output this data to an Excel workbook that should be created at output. I want the workbook's name to be "report-for-CODE.xlsx". In this example, it should be "report-for-E202201.xlsx".

 

3) I will connect to different data tables stored in Excel workbooks, and I want all the output files to be stored in the same directory.

 

How do I use a Formula tool to achieve the first two goals?

10 REPLIES 10
stevemarkovick
7 - Meteor

I’ve been trying to figure out a clean way to validate emails and output dynamic Excel reports in Alteryx, and your explanations (especially about regex and handling missing CODE values) really helped clear things up.
Also, huge thanks for sharing the screenshots and sample workflows — made it way easier to follow along.
Really appreciate how you addressed edge cases too, like blank fields and proper filename generation.

Labels
Top Solution Authors