Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Split Data into Multiple Columns in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To split data into multiple columns in Excel, use the Text to Columns wizard (Data tab > Data Tools > Text to Columns) or the Flash Fill feature. Text to Columns works best when your data has a consistent delimiter (like commas or spaces) or a fixed width. Flash Fill is ideal for splitting based on patterns without a delimiter. Both methods are built into Excel and require no add-ins.

What You'll Need

  • Microsoft Excel 2010 or later (the steps apply to Excel 2016, 2019, 2021, and Microsoft 365).
  • Your data in a single column, with each cell containing the text you want to split.
  • A blank column to the right of your data (to avoid overwriting existing data).

Step-by-Step

Method 1: Using Text to Columns (for delimiters like commas, tabs, or spaces)

  1. Select the column that contains the data you want to split. Click the letter at the top of the column to select the entire column, or select just the range of cells you need.
  2. Go to the Data tab on the ribbon.
  3. In the Data Tools group, click Text to Columns. A wizard will open.
  4. Choose Delimited (if your data is separated by commas, tabs, spaces, or other characters) and click Next.
  5. Select the delimiter(s) that match your data. Common options: Tab, Semicolon, Comma, Space, or Other (type a custom character). You can check multiple boxes if needed. The preview at the bottom will show how your data will split.
  6. Click Next.
  7. In the Column data format step, you can set the format for each new column (General, Text, Date). For most splits, leave it as General.
  8. In the Destination box, click the small icon at the right, then click on the cell where you want the first piece of split data to appear (usually the first cell of the column to the right). This prevents overwriting your original data.
  9. Click Finish. Your data will be split into separate columns.

Method 2: Using Flash Fill (for pattern-based splitting)

  1. Make sure your original data is in a column (e.g., Column A).
  2. In the cell to the right of the first data entry (e.g., B2), type the part of the text you want to extract manually. For example, if A2 contains "John Smith", type "John" in B2.
  3. Press Enter.
  4. Go to the Data tab and click Flash Fill (or press Ctrl+E). Excel will automatically fill the rest of the column based on the pattern you started.
  5. Repeat for each additional column you need (e.g., type "Smith" in C2 and use Flash Fill again).

Method 3: Using Power Query (for complex or repeated splits)

  1. Select your data range (including headers, if any).
  2. Go to Data > From Table/Range. If prompted, check "My table has headers" and click OK. This opens the Power Query editor.
  3. In Power Query, select the column you want to split.
  4. Go to Home > Split Column > By Delimiter (or By Number of Characters).
  5. Choose the delimiter and how to split (e.g., "Each occurrence of the delimiter").
  6. Click OK.
  7. Click Close & Load to put the split data back into your worksheet.

Common Mistakes

  • Overwriting original data: If you don't set the Destination correctly in Text to Columns, the split results will overwrite the column to the right, potentially erasing existing data.
  • Choosing the wrong delimiter: If your data uses a comma but you select "Tab", the split won't happen correctly. Always preview in the wizard.
  • Forgetting to include a blank column: If there is no blank column to the right, Excel will overwrite whatever is there. Always make room first.
  • Using Flash Fill without a clear pattern: Flash Fill needs a consistent pattern. If your data varies (e.g., some cells have middle initials), it may produce wrong results.
  • Splitting into too many columns: If your delimiter appears multiple times in a cell, you might get more columns than you expected. Use "Consecutive delimiters as one" option if needed.

Tips

  • Always work on a copy of your data or use an empty area to test the split first, especially if the data is important.
  • Use Text to Columns for one-time splits. If you need to repeat the split on new data regularly, consider using Power Query to automate it.
  • If your data has leading or trailing spaces, use the TRIM function after splitting to clean it up.
  • For dates split into day, month, and year, choose the "Date" format in the wizard and select the correct order (e.g., MDY for US dates).
  • If you split data that includes numbers, set the column format to "Text" if you want to preserve leading zeros (like zip codes).

Troubleshooting

  • Split didn't happen at all: Make sure you selected the correct range and clicked "Finish" in the wizard. Also check that the delimiter you chose actually exists in your data.
  • Data got overwritten: Undo with Ctrl+Z immediately. Then, insert a blank column to the right before running the wizard again, and set the Destination to the first cell of that blank column.
  • Flash Fill didn't work: Ensure you typed the example manually and pressed Enter. Then click Flash Fill again. If it still fails, try using Text to Columns instead.
  • Some rows split incorrectly: This usually happens when the delimiter appears inconsistently (e.g., some rows have an extra comma). Review your data for inconsistencies and clean it up, or use Power Query to handle exceptions.
  • Numbers are stored as text after splitting: Select the new columns, click the warning icon (yellow diamond) and choose "Convert to Number". Or, in the Text to Columns wizard, set the column format to "General" before finishing.

Frequently Asked Questions

Can I split data by a custom delimiter like a pipe (|)?

Yes. In the Text to Columns wizard, choose "Delimited" and check "Other", then type the pipe character in the box. In Power Query, you can type any custom delimiter as well.

How do I split data into columns when there is no delimiter?

If your data has fixed widths (e.g., first 5 characters are a code, next 10 are a name), use Text to Columns and choose "Fixed width". You can then set break lines in the preview. For pattern-based splits without a fixed width, use Flash Fill.

Will splitting data affect the original column?

If you set the Destination to a different column, the original column remains unchanged. If you leave the Destination as the original column, the original data will be replaced by the first split piece.

Can I split data into rows instead of columns?

Yes, but it's not a built-in one-click feature. You can use Power Query's "Split Column" and then use the "Transform" > "Unpivot" feature, or use a formula with TEXTSPLIT (in Excel 365) and then transpose. The easiest way is to copy the data, paste it transposed (using Paste Special > Transpose), and then split.

Why does my split result show #VALUE! errors?

This usually happens when using formulas like LEFT or MID on text that doesn't contain the expected number of characters. If you used Text to Columns, errors are unlikely. If you used formulas, check that the text length is sufficient for the extraction.

Is there a way to split data automatically when new rows are added?

Yes. Convert your data range to an Excel Table (Ctrl+T) and use Power Query to split the column. When you refresh the query (Data > Refresh All), new rows will be processed automatically. Alternatively, use formulas with TEXTSPLIT or LEFT/MID that reference the original cell, and they will update as new data is entered.