Text to Columns issue
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
I tried using text to columns to separate a text data in a cell by a comma delimiter but its not catching all the comas to delimit. Is there away around it? Why is Alteryx missing the commas?
Thank you for the help in advanced.
Solved! Go to Solution.
- Labels:
- Parse
- Tips and Tricks
- Transformation
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@rmartinez4 Have you tried increasing the columns to 99 and then using a Data Cleanse tool as @ChrisTX mentioned?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, That works why is that the case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The tool is instructed to only find and split out the first 3 comma delimiters. All commas after that are not handled and left in the last split column (or dropped all together) depending on setup. By increasing the number of columns to split into, you're telling the tool to only split out the first X comma delimiters. If you know there will always be say 7 commas, then you set it and forget it. But if it will always vary and you don't know what the max would be, set a higher number and then delete all the null columns afterward.
Not sure if this is what you're looking for in terms of how it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, your answer makes sense. Thank you for the explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In the Text to Columns tool, the value in Number of Columns is important, but we may not know the correct number to use.
To get an idea of the number of commas in a field, you could use a Formula tool with code like this:
REGEX_CountMatches([your field], "\,")
Chris

- « Previous
-
- 1
- 2
- Next »