Smart Systems for Home

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

How to Separate Data 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

You can separate data in Excel by using the "Text to Columns" feature, which splits one column into multiple columns based on a delimiter like a comma, space, or tab. This tool is built directly into the spreadsheet software and requires no external plugins or formulas to function. To get started, ensure your data is in a single, contiguous column and that you are clear on what character will act as the divider between the pieces of information.

What You'll Need

  • Microsoft Excel (Desktop, Web, or Mac version).
  • A dataset with data in a single column that needs splitting.
  • A clear understanding of the delimiter separating your data (e.g., a comma, space, or dash).

Step-by-Step

  1. Select the data: Click on the single column header containing the data you want to split. If the data is not in a single column, you must first place it there by copying and pasting it into a new sheet or arranging your rows accordingly. Ensure there are no empty cells within the column that you intend to split, as this can cause the data to shift unexpectedly.
  2. Open the Text to Columns tool: Go to the "Data" tab located on the Excel ribbon at the top of the screen. In the "Data Tools" group, click the "Text to Columns" button. This action opens the Convert Text to Columns Wizard.
  3. Choose the file type: The wizard will open a dialog box asking for the format of your data. Since you are likely working with standard text data, select "Delimited" and click "Next." If your data is already separated by tabs or specific characters, this is the correct choice. Selecting "Fixed width" is generally only necessary if your data is aligned in columns with invisible spaces, which is rare for standard text files.
  4. Select your delimiter: On the next screen of the wizard, you will see a list of options for delimiters. Check the box next to the delimiter that matches your data. Common delimiters include:
  • Tab: Use this if your data comes from a database or another spreadsheet where cells are separated by tab stops.
  • Comma: Use this for CSV files or data formatted like "Last Name, First Name".
  • Space: Use this if you want to separate words by spaces, such as splitting a full name into First and Last names.
  • Semicolon: Common in European versions of Excel or specific database exports.
  1. Preview the split: As you check or uncheck these boxes, look at the "Data Preview" section at the bottom of the window. This section shows how your data will be split into different columns. If the split is incorrect, uncheck the box and try a different delimiter or combination of delimiters. For example, if you are splitting an address, you might need to select both "Tab" and "Comma" if the data format is inconsistent.
  2. Finish the wizard: Once you are satisfied with how the data is splitting, click the "Next" button to proceed to the third and final step. If you are happy with the default format, you can click the "Finish" button directly from this screen.
  3. Set the destination (optional): If you are splitting data that is currently in the middle of your spreadsheet and you are worried about overwriting existing data, you can click the "Destination" box in the final step of the wizard. Click the small arrow icon in that box, then click the cell where you want the new split data to begin. This ensures your original data remains intact until you are ready to delete it.
  4. Click Finish: Click the "Finish" button to complete the process. Excel will instantly split the original column into multiple columns based on the delimiter you selected.

Common Mistakes

One of the most frequent errors users make is forgetting to select the correct delimiter. If you select "Comma" but your data is actually separated by spaces, Excel will treat the whole line as a single string because it cannot find a comma to split on. Always double-check the "Data Preview" window to ensure the split lines up correctly with the content.

Another mistake is attempting to split data that is not in a single column. If you try to run the Text to Columns feature on a block of data that spans multiple columns, Excel will only process the first column and leave the others untouched. You must isolate the data into one column before proceeding.

Tips

Use the "Data Preview" window extensively. It is your best friend in this wizard. It allows you to experiment with different settings without permanently altering your data until you click "Finish.”

For complex data, such as an address that contains a street name, a street type, and a house number separated by spaces, it is often easier to use the "Find and Replace” feature first. Replace the spaces between the house number and the street name with a special character (like a pipe | or a dash -) that does not appear in your data. Then, run Text to Columns using that new character as the delimiter.

Troubleshooting

If the data does not split as expected, the first thing to check is the delimiter. Does the data actually contain the character you selected? Sometimes, invisible characters like non-breaking spaces or different types of dashes (en dash vs. hyphen) can cause the split to fail. You can check this by zooming in on the data and using the formula =LEN(A1) to see if the cell contains hidden characters.

If the split occurs but the data is shifted to the wrong columns, it is likely because the delimiter is not consistent throughout the column. For example, some entries might be separated by a comma and others by a tab. In this case, you may need to clean the data using the "Find and Replace” function to standardize the separators before attempting the Text to Columns method again.

Frequently Asked Questions

Can I separate data without using the wizard?

Yes, you can use the TEXTSPLIT function in Excel 365 or Excel 2021. This function allows you to split text into an array of cells using a specific delimiter. However, the Text to Columns wizard is compatible with all versions of Excel and is often easier for users unfamiliar with dynamic array formulas.

What if my data has quotes around it?

If your data is wrapped in double quotes, the Text to Columns wizard will include those quotes in the split results. You can remove the quotes in a separate step using the TRIM and CLEAN functions, or by using the "Find and Replace” feature to search for " and replace it with nothing.

Does this feature work on mobile versions of Excel?

The functionality is available on both the iOS and Android versions of Excel, though the interface may differ slightly. You will typically find the "Text to Columns” option under the "Data" tab in the mobile app’s ribbon menu.

Can I undo the split?

Yes, the split is a standard Excel operation, so you can simply press Ctrl + Z (or Command + Z on Mac) immediately after finishing to revert the changes and restore your original data.

What happens if the destination cell is already occupied?

If you do not specify a destination and the split would overwrite existing data, Excel will display a warning message. You can choose to overwrite the data or cancel the operation. It is always safer to click the destination arrow and select a new, empty area for the data.