Smart Systems for Home

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

Split Text into Columns in Google Sheets: 5 Ways

· 5 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 text into multiple columns in Google Sheets, select the data, go to Data > Split text to columns, and choose a separator (comma, space, custom, etc.). This instantly divides the contents of one column into several, saving you from manual copying and pasting. You can also use formulas like SPLIT, LEFT, MID, and RIGHT for more control.

What You'll Need

  • A Google Sheets document with the text you want to split (e.g., full names, addresses, or product codes).
  • Empty columns to the right of your data, so the split results don't overwrite existing content.
  • Basic familiarity with Google Sheets menus (labels may vary slightly by version, device, or region).

Step-by-Step

  1. Select the column that contains the text you want to split. Click the letter at the top of the column to select the entire column, or click and drag to select a specific range.
  2. Go to the menu bar and click Data, then choose Split text to columns. A small menu will appear at the bottom of your selected range.
  3. In that menu, pick a separator. The default is “Detect automatically,” which guesses based on common patterns (commas, semicolons, periods, spaces). You can also choose “Comma,” “Semicolon,” “Period,” “Space,” or “Custom” to type your own delimiter (e.g., a pipe | or a hyphen).
  4. Your text will immediately split into adjacent columns. If you don't like the result, press Ctrl+Z (Windows) or Cmd+Z (Mac) to undo, then try a different separator.
  5. If you need to split only part of the text (e.g., first name from “John Smith”), use the SPLIT formula instead. In a new cell, type =SPLIT(A2, " ") (replace A2 with your cell and " " with your delimiter). This outputs the pieces into separate cells horizontally.
  6. For more advanced extraction, use LEFT, MID, or RIGHT. For example, to get the first 3 characters of cell A2, type =LEFT(A2, 3). To get characters 4 to 6, type =MID(A2, 4, 3). To get the last 2 characters, type =RIGHT(A2, 2).
  7. If your text uses a consistent delimiter (like a comma), you can also use Find and replace to swap it for a tab, then split. But the built-in split tool is simpler for most cases.

Common Mistakes

  • Not leaving empty columns: If columns to the right already contain data, the split will overwrite them. Always insert blank columns first if needed.
  • Choosing the wrong separator: If your text has multiple delimiters (e.g., “Smith, John, Jr.”), splitting by comma will create three columns, which may not be what you want.
  • Using formulas that spill into occupied cells: The SPLIT formula fills cells to the right; if those cells have data, you'll get a #REF! error.
  • Forgetting to convert formulas to values: If you delete the original column, the split formulas will break. Copy the split results and use Edit > Paste special > Values only to keep them static.

Tips

  • Use “Detect automatically” first—it handles most common cases like commas, semicolons, and spaces.
  • For custom delimiters like a slash “/” or a dash “-”, choose “Custom” and type the character exactly.
  • If your data has multiple spaces or inconsistent formatting, consider using TRIM to clean it up before splitting: =TRIM(A2).
  • To split into rows instead of columns, use the TRANSPOSE function with SPLIT: =TRANSPOSE(SPLIT(A2, ",")).
  • If you have a large dataset, the built-in split tool is faster than dragging formulas down.

Troubleshooting

If the split doesn't work as expected:

  1. Check that your selected range is correct. If you selected an entire column, the split will apply to all rows, which might cause errors in rows that don't have the delimiter.
  2. Undo the split (Ctrl+Z / Cmd+Z) and try a different separator. For example, if your text uses a comma followed by a space, “Comma” works, but “Space” would create extra columns.
  3. If you see #REF! errors, it means the formula is trying to write into cells that already have content. Delete or move that content, or adjust the formula range.
  4. If the split tool is grayed out, make sure you have selected a cell or range. It won't work if you're in a filter view or if the sheet is protected.
  5. If you're using a formula like SPLIT and it returns only the first piece, check that the delimiter is exactly right (case-sensitive, and spaces count).

Frequently Asked Questions

Can I split text into columns without using a formula?

Yes, use the built-in Data > Split text to columns feature. It's the easiest method and doesn't require formulas.

How do I split text by a custom delimiter like a pipe or a hyphen?

In the split menu, choose “Custom” and type the delimiter character (e.g., | or -).

What if my text has multiple spaces between words?

Use TRIM to remove extra spaces before splitting, or use “Custom” with a single space and then clean up the results.

Can I split text into rows instead of columns?

Yes, use =TRANSPOSE(SPLIT(A2, ",")) to split into a row, or use the “Split text to columns” feature and then copy and paste with transpose (right-click > Paste special > Transpose).

Why does my SPLIT formula show #VALUE! error?

This usually means the delimiter isn't found in the text. Check that the delimiter is spelled correctly and matches the actual characters in the cell.

How do I split a column of full names into first and last names?

Select the column, go to Data > Split text to columns, and choose “Space” as the separator. If names have middle names, you'll get more than two columns—adjust accordingly.