SPLIT, TEXT, and Text Functions in Google Sheets
SheetHub3 min
You import data from another system and it arrives in one column: "John Smith | jsmith@email.com | (555) 123-4567 | East Region."
You need the name in column A, email in B, phone in C, region in D. Manually splitting 500 rows takes forever. SPLIT does it instantly.
Split by comma:
Split by pipe (|):
Returns
Format as date:
Format as percentage:
First 3 characters:
Last 4 characters:
Middle characters (start at position 5, take 3):
Count characters:
Remove extra spaces:
Remove non-printable characters:
Ampersand (&) is the simplest:
With TEXT function for formatting:
JOIN with delimiter:
Combine SPLIT with TRANSPOSE to split into rows instead of columns:
Use TRIM before SPLIT to handle inconsistent spacing:
Extract email from "Name <email>":
Forgetting that SPLIT spills. Make sure cells to the right are empty, otherwise you get a #REF! error.
Numbers become text. SPLIT outputs text, even if the content looks like a number. Use VALUE() to convert back:
Does SPLIT work in Excel? No. Excel has TEXTSPLIT (Microsoft 365) or Text to Columns (all versions). SPLIT is Google Sheets only.
Can I split text into rows instead of columns? Yes, wrap with TRANSPOSE:
SPLIT — Divide Text Into Columns
Syntax
=SPLIT(text, delimiter, [split_by_each], [remove_empty_text])Examples
Split by space:=SPLIT(A1, " ")=SPLIT(A1, ",")=SPLIT(A1, "|")Real Scenario
Full name "John Smith" → First and last name:=SPLIT(A1, " ")John in one cell, Smith in the next.
TEXT Function — Format Numbers as Text
Syntax
=TEXT(number, format)Examples
Format as currency:=TEXT(1234.5, "$#,##0.00") → $1,234.50=TEXT(A1, "mmmm d, yyyy") → July 14, 2026=TEXT(0.15, "0%") → 15%LEFT, RIGHT, MID — Extract Characters
=LEFT(A1, 3)=RIGHT(A1, 4)=MID(A1, 5, 3)LEN, TRIM, CLEAN — Clean Text
=LEN(A1)=TRIM(A1)=CLEAN(A1)UPPER, LOWER, PROPER — Change Case
=UPPER(A1) → JOHN SMITH
=LOWER(A1) → john smith
=PROPER(A1) → John SmithCONCATENATE and JOIN — Combine Text
=A1 & " " & B1=A1 & " sold " & TEXT(C1, "$#,##0") & " worth of products"=JOIN(", ", A1:D1)Pro Tips
=TRANSPOSE(SPLIT(A1, ","))=SPLIT(TRIM(A1), " ")=TRIM(MID(A1, FIND("<", A1)+1, FIND(">", A1) - FIND("<", A1) - 1))Common Mistakes
=VALUE(A1).
SPLIT is Sheets-only. SPLIT does not exist in Excel. Use Text to Columns (Data tab) or TEXTSPLIT (Excel 365).
Related Functions
- QUERY Function — Process cleaned text data with SQL-like queries
- FILTER Function — Filter your cleaned and structured data
FAQ
=TRANSPOSE(SPLIT(A1, ",")).
How do I keep leading zeros? Format the cell as "Plain Text" before entering data, or use: =TEXT(A1, "00000") for ZIP codes.Topics
Topics in this article
Explore related topics and continue reading similar content.
Share this article
Discussion
Preparing the comments area...