How to Merge Cells (Combine Cells contents) in Excel Without Losing Data

We may combine cells and their contents in Microsoft Excel frequently. However, do you find out the easiest way to combine cell contents? Here we will talk about how to combine cell contents in Excel easily and quickly.

Combine multiple cells into one cell with Merge Command

Combine multiple cells into one cell with VBA code

Combine multiple cells into one cell with Kutools for Excel without losing data

Kutools for Excel: 120 Cool Tools and Advanced Features for Excel 2013, 2010 and 2007. Read more...
Office Tab: Enable Tabbed Editing and Browsing in Office, Just Like Chrome, Firefox, IE 8/9/10. Read more...
Classic Menu for Office: Bring Classic Menus and Toolbars of Office 2003/XP/2000 Back to Office 2007, 2010 and 2013. Read more...

arrow blue right bubbleCombine multiple cells into one cell with Merge Command

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

Learn more Free download

In Microsoft Excel, we always use Merge command to merge selected cells into one cell.

1. Select the range of cells that you want to combine.

2. Click Home > Merge & Center > Merge Cells. See screenshot:

doc-combine-cell-contents1

3. Then all selected cells will be merged into one cell, but only the contents in upper-left cell of selected cell range will be remained. See screenshots:

doc-combine-cell-contents2 doc-merge-multiple-workbooks-arrow2 doc-combine-cell-contents3

Most of us may not want this result, we need to merge the cell contents without losing the data. The following method can help you.


arrow blue right bubble Combine multiple cells into one cell with VBA code

The following VBA code can help you to combine multiple cells into one cell, and you can apply the code with following steps:

1. Select the range of cells that you want to combine.

2. Click Developer >Visual Basic, a new Microsoft Visual Basic for applications window will be displayed, click Insert > Module, and input the following code into the Module:

Sub JoinAndMerge()
Dim outputText As String
delim = " "
On Error Resume Next
For Each cell In Selection
outputText = outputText & cell.Value & delim
Next cell
With Selection
.Clear
.Cells(1).Value = outputText
.Merge
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlCenter
.WrapText = True
End With
End Sub

3. Then click doc-multiply-calculation-3 button to execute the code. All of the contents in multiple cells have been merged into one cell with spaces. See screenshots:

doc-combine-cell-contents2 doc-merge-multiple-workbooks-arrow2 doc-combine-cell-contents4

arrow blue right bubble Combine multiple cells into one cell with Kutools for Excel without losing data

If you have Kutools for Excel installed, you can combine cell contents of multiple columns or rows conveniently without using formulas. You can:

Kutools for Excel includes more than120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

1. Select the cells that you want to merge the data. And apply this utility by clicking Kutools > Combine.

doc-combine-cell-contents5

2. In the Combine Columns & Rows dialog box, specify the options that you need. See screenshot:

  • Select Into single cell under Merge selected cells.
  • Specify a separator for the combined data. You can separated each content with space, nothing, semicolon, or specific text. And you can also display the combined content in a new line.

doc-combine-cell-contents6

3. Then click OK, all of the data in multiple cells have been merged into one cell. See screenshots:

doc-combine-cell-contents2
Use Space as separator No separator (Nothing) Other separator (\)
doc-combine-cell-contents7 doc-combine-cell-contents8 doc-combine-cell-contents9

The Combine feature of Kutools for Excel can be much more helpful. Know more about the Combine feature...


Related Articles

How to Merge Columns without Losing Data in Excel?

How to Merge Rows without Losing Data in Excel?


Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase