Text.Split in Power Query splits a text value into a list of substrings using a delimiter you specify. It is the function behind the Split Column feature and is useful when you need to break apart names, comma-separated tags, file paths, or any structured string inside a custom column. You do not need any special setup beyond a Power Query editor (Excel or Power BI Desktop) and a column of text to work on.

What You'll Need

  • A workbook or report open in Excel or Power BI Desktop with Power Query available.
  • A table or query loaded into Power Query with at least one text column.
  • Basic familiarity with the Power Query Editor and the formula bar.

Step-by-Step

  1. Load your data into Power Query. In Excel, select your table and go to Data > From Table/Range. In Power BI Desktop, use Home > Transform data to open the Power Query Editor. The exact menu labels can differ slightly by version, device, or region.
  2. Choose the text column. Click the column header that contains the strings you want to split. Confirm the column type is Text; if it shows ABC/123, right-click the header and set Change Type > Text.
  3. Open the Split Column menu. With the column selected, go to the Home tab and click Split Column > By Delimiter. This opens a dialog where you pick the delimiter and how the split should behave.
  4. Pick the delimiter. Choose from the common list (comma, semicolon, equals, space, tab, custom) or select Custom and type the exact character or string. For a comma-separated list, choose Comma. For a pipe character, choose Custom and type |.
  5. Choose the split method. Under Split at, select Each occurrence of the delimiter to split at every occurrence, or Left-most delimiter / Right-most delimiter to split only once. Each occurrence is the usual choice for lists.
  6. Decide how to handle extra columns. Under Advanced options, choose Split into Columns to create multiple new columns, or Split into Rows to turn each piece into a new row. Split into Rows is often better for tags or categories because it keeps the table narrow.
  7. Click OK. Power Query adds the new columns or rows and records the step in the Applied Steps pane. The underlying formula will use Text.Split, for example: Text.Split([Column1], ",").
  8. Use Text.Split directly in a custom column (optional). Go to Add Column > Custom Column and enter a formula such as Text.Split([Tags], ","). The result is a list value, not text. To turn the list back into readable text, wrap it with Text.Combine, for example Text.Combine(Text.Split([Tags], ","), " | ").
  9. Check the result and rename. Review the new columns or rows, rename them by double-clicking the header, and set the data type to Text. Then close and load the query with Home > Close & Load.

Common Mistakes

  • Using the wrong delimiter. A comma followed by a space is not the same as a comma. If your data has ", " you may need to split on comma and then trim the results with Text.Trim.
  • Expecting Text.Split to return text. It returns a list. If you put it in a custom column without Text.Combine, you will see list values that are hard to read and may fail to load.
  • Splitting into columns when you need rows. Splitting a tag list into columns creates a wide table with many nulls. Split into Rows keeps the data tidy and easier to filter.
  • Forgetting to set the column type to Text. If the column is typed as a number or date, Text.Split may error or behave unexpectedly.
  • Ignoring empty values. Splitting an empty string can produce a list with one empty item. Use Text.Split and then filter out blanks if needed.

Tips

  • Use Text.Split with Text.Trim to clean up spaces around each piece: List.Transform(Text.Split([Column1], ","), Text.Trim).
  • For a fixed number of parts, Text.SplitAny can split on multiple delimiters at once, for example comma, semicolon, and pipe.
  • Test your delimiter on a few sample rows before applying it to the whole column. A quick way is to add a custom column with Text.Split and inspect the list values.
  • If you need only the first or last piece, use Text.BeforeDelimiter or Text.AfterDelimiter instead of splitting the whole string.
  • Keep the Applied Steps pane clean by renaming steps; this makes it easier to debug later.

Troubleshooting

  • The split does not happen. Check that the delimiter matches exactly, including case and spaces. Try a custom delimiter and paste the exact character from a sample cell.
  • You get an error about a list. This usually means Text.Split is used where a single text value is expected. Wrap it with Text.Combine or expand the list.
  • Extra columns appear with nulls. This is normal when rows have fewer delimiters than the maximum. You can remove empty columns or use Split into Rows instead.
  • The query is slow. Splitting into many columns on a large table can be heavy. Prefer Split into Rows or filter the data before splitting.
  • Some rows split incorrectly. Look for inconsistent delimiters such as a comma vs. a semicolon, or a stray space. Clean the text first with Text.Trim and Text.Clean.

Frequently Asked Questions

What does Text.Split return?

It returns a list of text values. For example, Text.Split("a,b,c", ",") returns {"a","b","c"}. To use the result as text, combine it with Text.Combine.

Can I split on multiple delimiters at once?

Yes, use Text.SplitAny, which accepts a list of delimiters, for example Text.SplitAny([Column1], {",", ";", "|"}).

How do I split a column into rows instead of columns?

Use Split Column > By Delimiter and under Advanced options choose Split into Rows. This creates one row per piece.

Why do I get a list in my custom column?

Because Text.Split returns a list. Wrap it with Text.Combine to turn it back into a single text value, or expand the list into new columns.

Does Text.Split work with numbers?

It works on text. Convert numbers to text first with Text.From, or set the column type to Text before splitting.

Can I keep the delimiter in the result?

Text.Split does not keep the delimiter. If you need it, use Text.BeforeDelimiter and Text.AfterDelimiter with the optional index, or reconstruct the string manually.