top of page

You are learning Power Query in MS Excel

How to split a single column into multiple columns in Power Query?

There are two main ways to split a single column into multiple columns in Power Query:

1. Split by Delimiter:

This method is ideal when your data has a consistent delimiter (like comma, space, colon, etc.) separating the values you want to split into separate columns.

Here's how to do it:

- Select the column you want to split.
- Go to the "Transform" tab and click "Split Column."
- In the "Split Column by Delimiter" window, choose the delimiter (comma by default) from the dropdown list.
- Optionally, under "Split at," you can choose "Leftmost delimiter" (default), "Each occurrence of the delimiter," or a custom option.
- Click "OK" to split the column.

2. Split by Positions:

This method is useful when your data has a fixed width for each value you want to separate.

Here's how to do it:

- Select the column you want to split.
- Go to the "Transform" tab and click "Split Column."
- Choose "By Positions" instead of "By Delimiter."
- In the "Positions" box, enter the positions where you want to split the column (e.g., 5, 10, 15 for splitting into 3 columns of 5 characters each).
- Click "OK" to split the column.

Additional Tips:

* You can rename the new columns after splitting by clicking on the header and typing a new name.
* Power Query offers advanced options for both methods, allowing you to specify how many columns to split into or handle empty values after splitting.
* Consider using the "Extract Before Delimiter" or "Extract After Delimiter" option under the "Add Column" tab if you only need to extract specific parts of the data based on a delimiter.

bottom of page