Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Kutools for Excel 22.00 HOT

300+ Powerful Features You Must Have in Excel

Kutools-for-Excel

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

Read More Download Buy now

Office Tab 14.00HOT

Adding Tabbed Interface for Office

Office Tab

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Read More Download Buy now

Kutools for Outlook 13.00NEW

100+ Powerful Features for Outlook

Kutools-for-Outlook

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Read More Download Buy now

Kutools for Word  9.00NEW

100+ Powerful Features for Word

Kutools-for-Word

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Read More Download Buy now

Classic Menu for Office

Bringing Back Your Familiar Menus

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

Read More Download Buy now

How to split cells into multiple columns or rows by carriage return?

Normally, in Excel, we can quickly split cell contents into multiple columns based on some specific characters, such as commas, semicolon, dot marks by using the Text to Columns feature. But, have you ever tried to split cell values into multiple columns or rows by carriage returns?

Split cells into multiple columns based on carriage returns with Text to Columns

Split cells into multiple rows based on carriage returns with VBA code

Split cells into multiple columns or rows based on carriage returns with Kutools for Excel

Combine multiple cells into one based on carriage returns with Kutools for Excel


arrow blue right bubble Split cells into multiple columns based on carriage returns with Text to Columns

If you have a list of cells contents which are separated by the carriage returns as following screenshot shown, in fact, the Text to Columns function could help you to split the cell values into multiple columns.

doc split by new line 1

1. Select the cells that you want to split their contents.

2. Click Data > Text to Columns, see screenshot:

doc split by new line 2

3. In the Convert Text to Columns Wizard, check Delimited option in step1, see screenshot:

doc split by new line 3

4. Then click Next button, in step 2, check Other option under Delimiters, and in the box beside the Other, press Ctrl + J keys into it, see screenshot:

doc split by new line 4

5. And then click Next button, in step3, select General option, and specify a cell for locating the result, then click Finish button directly to finish the operations.

doc split by new line 5

6. And the cell contents have been split into multiple columns as following screenshot shown:

doc split by new line 6


arrow blue right bubble Split cells into multiple rows based on carriage returns with VBA code

Sometimes, you need to split the cell values into multiple rows based on the carriage returns as following screenshot shown.

doc split by new line 7

There is no direct way for you to deal with this task in Excel, but, you can create VBA code to solve it.

1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: Split cells into multiple rows based on carriage returns

Sub SplitCells()
'Update by Extendoffice
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    lLFs = VBA.Len(Rng) - VBA.Len(VBA.Replace(Rng, vbLf, ""))
    If lLFs > 0 Then
        Rng.Offset(1, 0).Resize(lLFs).Insert shift:=xlShiftDown
        Rng.Resize(lLFs + 1).Value = Application.WorksheetFunction.Transpose(VBA.Split(Rng, vbLf))
    End If
Next
End Sub

3. Then press F5 key to run this code, and a prompt box will pop out to remind you select the data range that you want to split, see screenshot:

doc split by new line 8

4. And then click OK, and your selected data has been split into multiple rows based on the carriage returns.


arrow blue right bubble Split cells into multiple columns or rows based on carriage returns with Kutools for Excel

Kutools for Excel’s Split Cells utility can help you split cells into multiple columns or rows quickly and easily.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. 

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to split.

2. Click Kutools > Merge & Split > Split Cells, see screenshot:

3. In the Split Cells dialog box, select the Split to Rows or Split to Columns option under the Type section that you need, and then check New line under the Specify a separator section, see screenshot:

doc split by new line 10

4. Then click OK button, and a prompt box will pop out to remind you select a cell to output the result, see screenshot:

doc split by new line 11

5. Then click OK, if you choose Split to Columns option, all the selected cell values have been split into multiple columns by the carriage return, see screenshot:

doc split by new line 12

And if you choose Split to Rows option, your selected cell values will be split to multiple rows you like as following screenshot shown:

doc split by new line 13

Click to know more about this Split Cells utility…

Click to Download and free trial Kutools for Excel Now!


arrow blue right bubble Demo: Split cells into multiple columns based on carriage returns with Text to Columns

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

arrow blue right bubble Combine multiple cells into one based on carriage returns with Kutools for Excel

Combine multiple cells into one based on carriage returns:

Contrary to the above content, how could you combine multiple cell values which are separated by carriage returns into one cell in Excel? Here, I will talk about an easy tool-Kutools for Excel, with its powerful Combine feature, you can quickly combine multiple rows, columns, cells into one cell.

doc split by new line 14

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


arrow blue right bubble Demo: Combine multiple cells into one based on carriage returns with Kutools for Excel

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Related articles:

How to convert carriage return to comma in Excel?

How to quickly remove line breaks in Excel?


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • 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.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Xami · 2 years ago
    I have values in cell like "100/5" which is fetched by formula in one cell and would like to split the values in to two adjacent columns like "100" in one cell and "5" in another. Could you please suggest if I can do that with help of formula?
  • To post as a guest, your comment is unpublished.
    Ramesh · 2 years ago
    This is awesome.. very helpful.. Thank you so much.. :)
  • To post as a guest, your comment is unpublished.
    Partha · 3 years ago
    Hi, If this formula contains the option to insert instead directly split and paste in a transpose method, we do have range of rows, This option just split and transpose on existing data cells. If we get a option to insert and paste accordingly would be grateful otherwise the formula is very useful
  • To post as a guest, your comment is unpublished.
    Brian · 4 years ago
    This page has helped a lot, I used to VBA to separate the rows up. The problem that I have is that I have multiple columns. All the cells in the row either have one "row" or X number of "rows"of information in the other cells. If anyone knows how to do this it would be greatly appreciated.
    • To post as a guest, your comment is unpublished.
      Stephen · 2 years ago
      [quote name="Brian"]This page has helped a lot, I used to VBA to separate the rows up. The problem that I have is that I have multiple columns. All the cells in the row either have one "row" or X number of "rows"of information in the other cells. If anyone knows how to do this it would be greatly appreciated.[/quote]
      Stephen

      Even i'm looking for multiple Column having Alt+Enter data needs to convert to multiple rows with same data , needs copy the entire data of next columns as well in the new row
  • To post as a guest, your comment is unpublished.
    bento · 5 years ago
    Was looking for information like this and this page solved everything for me.

    Well done!

Feature Tutorials