Yes, Google Sheets can split text on a character using the Split text to columns feature or the SPLIT function. The quickest way is to select your data, go to Data > Split text to columns, and choose a custom separator like a comma, semicolon, or any other character. For more control, use the SPLIT function in a formula, which lets you specify the exact character and works dynamically as your data changes.
Why Split Text on a Character?
Splitting text on a character is one of the most common data-cleaning tasks in spreadsheets. You might have a column of full names like “John Smith” and want separate first and last names. Or you might have product codes like “SKU-12345” and need the numeric part alone. Splitting on a delimiter—the technical term for the character you split on—turns messy, combined text into structured, usable columns. This is essential for sorting, filtering, pivot tables, and mail merges. Google Sheets offers two main ways to do this: a menu-driven tool for one-time splits and a function for formula-based splits that update automatically.
Method 1: Split Text to Columns (Menu)
The simplest method uses a built-in menu command. It’s perfect when you want to permanently split data into separate columns without writing formulas.
- Select the cell or column containing the text you want to split.
- Click Data in the top menu, then choose Split text to columns.
- A small menu appears at the bottom of your selected data. By default, Sheets tries to detect the separator automatically. To choose your own character, click the dropdown and select Custom.
- Type the character you want to split on (for example, a comma, a semicolon, or a hyphen). The data immediately splits into adjacent columns.
This method overwrites the original data with the split results in the columns to the right. If you need to keep the original column, copy it to another column first. It works with any single character, but it does not support splitting on multiple different characters at once—you’d need to split sequentially or use a formula.
Method 2: The SPLIT Function
For a more flexible and dynamic approach, use the SPLIT function. It takes text and a delimiter, then returns the pieces into separate cells automatically. This is ideal when you want the split to update if the original text changes, or when you need to split on a character that appears multiple times.
The syntax is: SPLIT(text, delimiter, [split_by_each], [remove_empty_text])
- text – the cell reference or text string you want to split.
- delimiter – the character (or characters) to split on, in quotes.
- split_by_each – optional; TRUE (default) treats each character in the delimiter as a separate separator, FALSE treats the whole delimiter as one string.
- remove_empty_text – optional; TRUE (default) removes empty cells, FALSE keeps them.
Example: If cell A1 contains “apple,banana,cherry”, then in cell B1 enter:
=SPLIT(A1, ",")
This returns “apple” in B1, “banana” in C1, and “cherry” in D1. If you later change A1 to “apple,banana,cherry,date”, the split expands automatically to include the new item.
To split on a hyphen, use =SPLIT(A1, "-"). To split on a space, use =SPLIT(A1, " ").
Choosing the Right Separator
The separator you choose depends on your data. Common ones include:
- Comma (
,) – for CSV data or lists like “red, green, blue”. - Semicolon (
;) – often used in European CSV files where commas are decimal separators. - Tab – for data copied from tables or TSV files.
- Space – for splitting full names into first and last names.
- Pipe (
|) – a safe delimiter if your text contains commas or spaces. - Custom strings – like ” – ” (space hyphen space) to split on that exact pattern.
When using the SPLIT function, remember that the delimiter is case-sensitive. If you need to split on a character that appears in multiple forms (like both comma and semicolon), you can use the REGEXREPLACE function first to standardize, or use SPLIT with split_by_each set to TRUE and a delimiter like “,;” which splits on either character.
Common Problems and Solutions
Here are issues users often run into and how to fix them:
- Data spills into columns that already contain data. The split will overwrite existing cells. Always ensure there are enough empty columns to the right, or copy the data to a new area first.
- Split doesn’t work with multiple characters. The menu method only splits on a single character. Use
SPLITwithsplit_by_eachset to FALSE to split on a multi-character delimiter, like=SPLIT(A1, " - ", FALSE). - Empty cells appear in the split. By default,
SPLITremoves empty cells. If you want to keep them, setremove_empty_textto FALSE:=SPLIT(A1, ",", TRUE, FALSE). - Split on a character that is also a regex metacharacter. The
SPLITfunction treats the delimiter as a regular expression by default. If you want to split on a literal dot or asterisk, you need to escape it with a backslash. For example, to split on a period, use=SPLIT(A1, "\."). - Split on a line break. Use
=SPLIT(A1, CHAR(10))to split on newlines.
SPLIT vs. Other Functions
Google Sheets also offers LEFT, RIGHT, and MID to extract text based on position, but they don’t split on a character. REGEXEXTRACT and REGEXREPLACE can pull out patterns, but they are more complex. The SPLIT function is the dedicated tool for delimiter-based splitting. In Microsoft Excel, the equivalent is the Text to Columns wizard (Data > Text to Columns) or the TEXTSPLIT function (available in Excel 365). Excel’s TEXTSPLIT works similarly to SPLIT but uses a different syntax: =TEXTSPLIT(A1, ",").
Frequently Asked Questions
Can I split on multiple different characters at once?
Yes, using the SPLIT function with split_by_each set to TRUE (the default). For example, =SPLIT(A1, ",;") will split on either a comma or a semicolon. Note that this treats each character as a separate delimiter, so it won’t split on the two-character sequence “,;” as one delimiter.
How do I split a column into rows instead of columns?
To split into rows, use the FLATTEN function combined with SPLIT. For example, if A1 contains “a,b,c”, enter =FLATTEN(SPLIT(A1, ",")) in a cell, and it will list each item in a separate row. This is useful for converting comma-separated lists into a vertical list.
Why does my SPLIT formula show an error?
Common causes: the delimiter is not in quotes, the delimiter is a regex metacharacter that needs escaping, or the cell range is too small. If you see a #VALUE! error, check that you used the correct syntax and that the delimiter actually exists in the text. Also, ensure you have enough empty cells to the right for the results to spill into.
Can I split on a character that appears multiple times?
Yes, SPLIT will split on every occurrence of the delimiter. For example, if A1 contains “a-b-c-d”, =SPLIT(A1, "-") returns four separate cells: a, b, c, d. If you only want to split on the first occurrence, you’d need to use REGEXREPLACE or a combination of FIND and LEFT/RIGHT.
Does the menu split work on the entire column at once?
Yes, if you select an entire column (click the column letter), the split will apply to every cell in that column that contains the separator. If you select only a range, it applies only to that range. The results appear in the columns immediately to the right of each original cell.
Tips and Alternatives
For one-off splits, the menu is fastest. For ongoing data, use SPLIT in a formula so your split updates automatically. If you need to split on a character that is not a single character, like ” – ” (space hyphen space), use SPLIT with split_by_each set to FALSE. Another alternative is to use Find and replace (Ctrl+H) to replace the separator with a tab, then use Data > Split text to columns with tab as the separator—but that’s more steps. For advanced users, REGEXEXTRACT can pull out specific parts of text without splitting the entire string, which is useful when you only need one piece. Remember that splitting is permanent if you use the menu; the SPLIT function is non-destructive because it leaves the original text intact.
Related
- Random 5 Digit Number: How to Generate One
- How to Calculate Budget Balance
- Casio Calculator with Fractions: How to Use & Which to Buy
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Delete a Page in Word and Google Docs EasilyTo delete a page in Microsoft Word, use Ctrl+G, enter \page, select Close, then press Delete; in Google…
- How to Insert an Image in a Single Cell in Excel: A GuideTo insert an image in a single Excel cell in Microsoft 365 for Windows, select the cell, choose…
- How to Get Rid of Green Highlight in ExcelTo get rid of green highlighting in Excel, first identify what it marks: click another cell to move…
- Best Way to Forecast in Excel: 5 Practical OptionsFor most monthly or quarterly business data, the best way to forecast in Excel is Data > Forecast…
- How to Present PowerPoint While Reading Your NotesTo present PowerPoint slides while reading your notes, turn on Presenter View and use a second display: your…
- Excel Linear Equation Solver for y = mx + b: A GuideTo calculate a value from y = mx + b in Excel, put the slope m, the intercept…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.