The Google Sheets SPLIT function divides text around a specified character or string and places each fragment into a separate cell in the same row. For example, =SPLIT("apple,banana,cherry", ",") returns apple in one cell, banana in the next, and cherry in the third.
What Is the SPLIT Function?
SPLIT is a built-in text function in Google Sheets that takes a single text string and breaks it into multiple pieces based on a delimiter you specify. The result automatically spills horizontally across columns, so you don’t need to copy formulas or use array formulas. It is especially useful for cleaning imported data, parsing full names, or splitting comma-separated lists.
The official syntax is:
SPLIT(text, delimiter, [split_by_each], [remove_empty_text])
- text – the cell reference or string you want to split.
- delimiter – the character or substring that marks where to split (e.g., comma, space, or ” and “).
- split_by_each – optional. If
TRUE(default), each character in the delimiter is treated as a separate separator. IfFALSE, the entire delimiter string is treated as one unit. - remove_empty_text – optional. If
TRUE, empty cells are omitted from the result. IfFALSEor omitted, empty fragments are included.
How SPLIT Works: A Step-by-Step Example
Suppose cell A1 contains John Doe, Jane Smith, Bob Jones. To split by the comma and space, you could use:
=SPLIT(A1, ", ")
Because the delimiter is a comma followed by a space, and split_by_each defaults to TRUE, each character (comma and space) acts as a separator. This produces three cells: John Doe, Jane Smith, and Bob Jones.
If your delimiter is a multi-character string like " and ", you must set split_by_each to FALSE so that the whole phrase is treated as one separator. For example, with A1 containing red and blue and green:
=SPLIT(A1, " and ", FALSE)
This returns red, blue, and green in separate cells.
Choosing the Right Delimiter and Options
The most common mistake is forgetting that split_by_each defaults to TRUE. If you split by a comma and space, it works, but if your delimiter is a word like "and", you must set FALSE or the function will split on each letter ‘a’, ‘n’, and ‘d’ individually.
Also consider remove_empty_text. When data has consecutive delimiters (e.g., a,,b), the default behavior returns an empty cell between a and b. Setting remove_empty_text to TRUE skips those blanks, which is often desirable for cleaning messy data.
For example, with A1 = apple,,banana, =SPLIT(A1, ",", TRUE, TRUE) returns only apple and banana.
Common Problems and How to Fix Them
- #VALUE! error – Usually means the delimiter isn’t found. Check for extra spaces or wrong case.
- Unexpected splits – This happens when
split_by_eachis TRUE and your delimiter has more than one character. Use FALSE for multi-character delimiters. - Results overwrite existing data – SPLIT spills to the right, so make sure the adjacent cells are empty. If they aren’t, you’ll get a #REF! error.
- Leading/trailing spaces – Use
=TRIM()on the original text or combine withARRAYFORMULAto clean each result.
SPLIT vs. Other Text Functions
SPLIT is unique to Google Sheets; Excel does not have a direct equivalent. In Excel, you would use TEXTSPLIT (in Excel 365) or the Text to Columns wizard. In Google Sheets, you can also use REGEXEXTRACT or REGEXREPLACE for more complex patterns, but SPLIT is simpler for fixed delimiters.
If you need to split text into rows instead of columns, combine SPLIT with TRANSPOSE: =TRANSPOSE(SPLIT(A1, ",")).
Using SPLIT with Other Functions
SPLIT is often nested inside other functions. For instance, to count the number of items in a comma-separated list in A1:
=COUNTA(SPLIT(A1, ","))
This returns the count of non-empty items. You can also use INDEX to grab a specific item: =INDEX(SPLIT(A1, ","), 1, 2) returns the second item.
For dynamic data, combine SPLIT with ARRAYFORMULA to split multiple rows at once. For example, with names in A2:A10, =ARRAYFORMULA(SPLIT(A2:A10, ",")) splits each row into columns.
Frequently Asked Questions
Can SPLIT handle multiple different delimiters at once?
Yes, if you set split_by_each to TRUE (default), each character in the delimiter string is treated as a separate separator. For example, =SPLIT(A1, ",;") splits on both commas and semicolons.
Why does my SPLIT return #REF! error?
This usually means the result would overwrite cells that already contain data. Clear the cells to the right of where your formula is placed, or move the formula to a column with empty space.
How do I split text into rows instead of columns?
Wrap SPLIT in TRANSPOSE: =TRANSPOSE(SPLIT(A1, ",")). This will put each item into a separate row.
Does SPLIT work with numbers and dates?
Yes, but the results are always text. If you need numbers, use VALUE() on each cell, or multiply by 1.
Can I split by line breaks?
Yes, use =SPLIT(A1, CHAR(10)) where CHAR(10) is the line feed character.
Is there a limit to how many pieces SPLIT can return?
No hard limit, but Google Sheets has a column limit of 18,278 columns, so extremely long splits could hit that limit.
Alternatives to SPLIT
If SPLIT doesn’t fit your needs, consider these alternatives:
- Text to Columns – Menu: Data > Split text to columns. It does the same thing without a formula, but it’s static (doesn’t update if the original changes).
- REGEXEXTRACT – For complex patterns, use regular expressions to pull out specific parts.
- QUERY – With
SPLITinside a query, you can split and filter in one step.
For most cases, SPLIT is the fastest and most flexible option because it recalculates automatically when the source data changes.
Related
- Random Org Generate Code? How It Works
- Chrome Back Shortcut: Keys, Mouse, and Touch
- Best Time to Hire Data Entry Operators
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Apps Script If Statements: How They WorkIn Google Sheets Apps Script, an if statement runs code only when a condition is true; use else…
- Using QUERY in Google Sheets: Syntax, Examples, and TipsIn Google Sheets, use =QUERY(data, query, headers) to filter, sort, select, or summarize rows with a query-language string.…
- Custom Number Format Excel Shortcut and How to Use ItIn Excel for Microsoft 365 on Windows, select the cells and press Ctrl+1 to open Format Cells, then…
- Keyboard Shortcut to Insert a Checkbox in Microsoft WordIn Word for Microsoft 365 on Windows, type 2610 and press Alt+X to insert an empty checkbox symbol…
- Insert a Personal Signature in Word 365To insert a personal signature in Word 365, scan or photograph your handwritten signature, then choose Insert >…
- Insert a Signature Picture in Word: Step-by-StepTo insert a signature picture in Word, save a clear image of your handwritten signature, then choose Insert…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.