How to split cell contents into columns or rows based on newline in Google sheet?
If you have a list of text strings which are separated with a carriage return, and now, you want to split the cell contents into columns or rows by the newline in Google sheet. How could achieve it as quickly as possible?
Split cell contents into columns or rows based on newline in Google sheet
To split the cell contents into columns or rows by carriage return, please apply the following formulas:
Split cell contents into columns based on carriage return:
1. Enter this formula: =split(A1,char(10)&",") into a blank cell where you want to output the result, and then press Enter key, the text strings have been split into multiple columns as following screenshot shown:
2. Then drag the fill handle down to the cells which you want to apply the formula, and all cell contents have been separated into multiple columns as you need, see screenshot:
Split cell contents into rows based on carriage return:
Please apply this formula: =transpose(split(join(char(10),A1:A4),char(10))) into a blank cell to output the result, and then press Enter key, all the cell contents have been split into multiple rows as following screenshot shown:
Split cell contents into columns or rows based on newline in Microsoft Excel
In Microsoft Excel, the utility Split Cells of Kutools for Excel can help you to split cell contents into columns or rows based on space, comma, semicolon, newline and so on.
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.