Text to Columns Tool: Delimited Splitting into Columns vs Rows
Overview & Learning Objectives
Operational databases frequently bundle multi-attribute data into single delimited strings: full addresses separated by commas, product tags separated by pipes, or transaction baskets separated by semicolons. The Text to Columns tool parses these delimited strings by splitting them horizontally into new columns or vertically into normalized rows.
- Split delimited strings into discrete columns specifying delimiter characters.
- Understand and handle extra characters / overflow columns using truncation or root-cause handling.
- Split delimited strings into multiple rows to normalize multi-valued attributes into 1NF.
Industry Standard
Standard: Data warehouse modeling standards at Flipkart mandate using Text to Columns configured to "Split to Rows" when ingesting comma-separated order basket SKUs to normalize data into relational First Normal Form (1NF).
Real-World Example: ScoopCraft Ice Cream Multi-Flavor Order Unbundling
ScoopCraft unbundles online party tub orders where customers list multiple flavor selections in one comma-delimited cell.
| Order ID | Delimited Flavors String | Split Method | Resulting Records |
|---|---|---|---|
| ORD-501 | "Vanilla, Chocolate, Mango" | Split to Rows (Delimiter: `,`) | Row 1: Vanilla | Row 2: Chocolate | Row 3: Mango |
| ORD-502 | "Strawberry, Butterscotch" | Split to Rows (Delimiter: `,`) | Row 1: Strawberry | Row 2: Butterscotch |
| ORD-503 | "City-State-Pincode: MUM-MH-400050" | Split to Columns (3 Columns) | Col 1: MUM | Col 2: MH | Col 3: 400050 |
Configuration & Core Workflow
-- Configuration 1: Split to Columns
Column to Split: [Full_Address]
Delimiters: ,
Number of Columns: 3
Extra Characters: "Leave extra characters in last column"
-- Configuration 2: Split to Rows (Normalization)
Column to Split: [Flavor_Basket]
Delimiters: ,
Split to: "Split to rows"
Parameters Breakdown
Column to Split: The source string column containing delimited text.Delimiters: One or more characters used to split (e.g. `,`, `|`, `\t`).Split to Columns: Creates N new columns named `Field_1`, `Field_2`, etc.Split to Rows: Duplicates the entire record for each delimited token, creating a tall normalized table.
Sample Walkthrough (Q&A)
Question: What happens if a row contains 5 comma-separated values but you configured Number of Columns = 3?
Formula / Action: String: "A, B, C, D, E" with Number of Columns = 3
Result: Depends on the "Extra Characters" setting: either drops extra values or places "C, D, E" together in Column 3.
Explanation: Selecting "Leave extra characters in last column" prevents data loss when strings have variable token counts.
Common Mistakes & Limitations
- Entering multiple delimiter characters (e.g. `,-`) and not realizing Alteryx treats them as OR delimiters (splits on comma OR dash).
- Splitting to rows on massive million-row datasets without filtering first, causing record counts to explode 10x and exhausting server memory.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Clean Output Names | Follow with Select tool to rename Field_1, Field_2 | Select tool |
| Strip Whitespace | Follow with Data Cleansing on split fields | Data Cleansing |
Pro Tips & Modern Alternatives
- Use the `RegEx` tool configured to "Tokenize" when splitting on complex multi-character patterns or regex boundaries.
- Use `REGEX_REPLACE` or `GetWord()` in a Formula tool for simple first-word or last-word extractions.