Free Trial

Alteryx Designer Desktop Discussions

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

Text to column for File Name

SH_94
11 - Bolide

Hi Community ,

 

I would like to ask how can i perform the separation on the filename as per screenshot below.I was unable to separate it by using delimiter " ". May i know what are the formula that i need to input in this case?

 

Jacob_66_0-1616691070935.png

 

Many thanks for your help.

 

6 REPLIES 6
Luke_C
17 - Castor
17 - Castor

A space delimiter (" ") or '\s' should work in the text to columns tool (it wouldn't remove the .xlsx but that's easy enough to get rid of). Tough to say why that's not working with just a screenshot of the data, if possible can you provide more info such as the configuration in your text to columns tool, or sample data/workflows?

 

Regex or text parsing formulas would also work, but you would need to confirm that the file names will always be in that format (2 letters, 3 letters, 4 numbers) for a sustainable approach.

SH_94
11 - Bolide

Hi @Luke_C ,

 

Kindly refer to the screenshot below for your reference. I have also attached the excel file on the desired output for your reference.

 

Jacob_66_0-1616692185636.png

 

Jacob_66_1-1616692216378.png

 

 

 

Luke_C
17 - Castor
17 - Castor

just type a space, no need for the quotes. Or enter \s which does the same thing as a space. 

SH_94
11 - Bolide

Hi @Luke_C ,

 

I had tried the method but it looks like still the same. As the number 7549 will always still together with xlsx . The result will be EM   HUN    7549.xlsx.

 

Do you have any idea on how to fix this?

Luke_C
17 - Castor
17 - Castor

You can use a replace function. See attached with an example of that. It also includes a regex example as well. 

SH_94
11 - Bolide

Hi @Luke_C ,

 

Thank you so much for the sharing. It is working now.

 

 

Thanks again.

Labels
Top Solution Authors