FormulaCraft

How to split a cell into multiple rows in Excel and Google Sheets

Topic:Data cleaning & shaping

Heads up: Excel and Google Sheets do this differently.

Excel
=TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",100)),1*100-99,100))
Google Sheets
=TRANSPOSE(SPLIT(A2,","))

Verified example

Computed by a real spreadsheet engine on the sample data below.

CombinedSplit
Alpha,Beta,Gamma
Delta,Epsilon
Zeta
Eta,Theta,Iota
Kappa

=TRIM(MID(SUBSTITUTE(A2,",",REPT(" ",100)),1*100-99,100))Alpha

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Google Sheets: Use =TRANSPOSE(SPLIT(A2,",")) — SPLIT divides the cell by the delimiter into a row of values; TRANSPOSE flips that row into a column (rows).
  2. 2Excel (Power Query): Select your data → Data → From Table/Range → select the column → Home → Split Column → By Delimiter → choose your delimiter → Advanced Options → Split into Rows.
  3. 3Excel (formula fallback): Extract individual items with MID+SUBSTITUTE+REPT to pull the nth segment, though Power Query is far more practical for multi-row output.

Tips

Need the Google Sheets version instead? Open Sheets variant in workspace →

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if the cell has line breaks instead of commas?

Use CHAR(10) as the delimiter: =TRANSPOSE(SPLIT(A2,CHAR(10))) in Sheets, or split by 'New line' in Excel Power Query.

Can I split into rows and keep data from adjacent columns?

Power Query handles this best — after splitting into rows, Power Query automatically duplicates adjacent column values for each split row.

More on Data cleaning & shaping

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: