Split text into columns
=SPLIT(A2,", ",FALSE)Google Sheets · result on the sample sheet: 5 rows (B2:B6)
Describe what you need and get a working SPLIT formula for Google Sheets, tested on real data before you copy it. SPLIT breaks text into pieces at a delimiter and puts each piece in its own cell to the right.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=SPLIT(A2,", ",FALSE)Google Sheets · result on the sample sheet: 5 rows (B2:B6)
=SPLIT(A2," - ",FALSE)Google Sheets · result on the sample sheet: 5 rows (B2:B6)
=REGEXEXTRACT(A2,"^([A-Z]+)-(\d{4})-(\d+)$")Google Sheets · result on the sample sheet: 5 rows (B2:B6)
=TEXTSPLIT(A2,,", ")Excel · result on the sample sheet: 5 rows (C2:C6)
=TOCOL(ARRAYFORMULA(SPLIT(B2:B5,", ",FALSE)),1)Google Sheets · result on the sample sheet: 8 rows (D2:D9)
=SUM(--TEXTSPLIT(B2,","))Excel · result on the sample sheet: 5 rows (C2:C6)
=TEXTSPLIT(A2,CHAR(10))Excel · result on the sample sheet: 5 rows (B2:B6)
=TEXTBEFORE(B2,"/")/TEXTAFTER(B2,"/")Excel · result on the sample sheet: 5 rows (C2:C6)
You describe the task in plain English, and it writes the formula, using SPLIT where that's the right tool, for your table or a sample one. The formula is run in our engine in Google Sheets mode before you see it, so you get its result, not just a guess.
SPLIT breaks text into pieces at a delimiter and puts each piece in its own cell to the right.
Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the SPLIT function page has a practice exercise.