How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016
In the process of working with Excel, sometimes you want to merge cells together so that the cell is larger in size and better suited to the content. But you do not know how to merge cells in Excel without losing data. So let's see the instructions for merging cells in Excel 2016 that the article shares below, with Excel 2013 and 2010 you can do the same.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 1
Here are 3 ways to merge cells in Excel, you can combine cells in Excel without fear of data loss, please follow along.
Method 1: Merge cells in Excel using Merge & Center feature
This method of merging will help you to merge cells quickly if the cell does not have data or data only in the first cell in the cells to merge. You do the following:
Step 1: In the Excel file, select the cells to merge.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 2
Step 2 : Next, you select the Home tab , in the Alignment section select Merge & Center to merge the selected cells.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 3
So the cells you select will be combined into one cell and the data in the upper left cell will be centered in the newly merged cell.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 4
In addition, you have two other options to merge cells when you select the triangle icon next to Merge & Center :
- If you select Merge Across , the cells you have selected will be aggregated by row, the data in the first cell of each row you select will be retained and displayed from the first position of the merged cell.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 5
- If you select Merge Cells , the cells you have selected are merged into one cell and the data in the first cell in the upper left is kept but not centered as you choose Merge & Center.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 6
Method 2: Combine cells in Excel using VBA code
Using this method, the cells you select will be merged quickly and if your data in all the cells you want to merge will not lose data. You do the following:
Step 1 : In Excel file, select the cells to merge, next you choose View -> Macros tab or press Alt + F8 to open the Macro window .
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 7
Step 2: In the Macro window, enter a name for the Macro in the Macro name section and click Create .
Note: macro names must be written immediately without accents.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 8
Step 3: A Visual Basic for Applications window appears , copy the code below into Sub . End Sub. Then click the green Run icon or you select Run -> Run Sub / UserForm to run the Macro macro.
Dim Cll As Range, Temp As String On Error Resume Next If Selection.MergeCells = False Then For Each Cll In Selection If Cll <> "" Then Temp = Temp + Cll.Text + "" Next Cll Selection.Merge Selection.Value = Left (Temp, Len (Temp) - 1) Else Selection.UnMerge End If Selection.HorizontalAlignment = xlCenter Selection.VerticalAlignment = xlCenter
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 9
The message appears, click OK , then you turn off Visual Basic, so the cells you selected have been merged.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 10
If you want to merge other cells in the current Excel file, you just need to select (blacken) the cells to be merged, then select View -> Macros or combination of Alt + F8.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 11
The Macro dialog box appears, double click on the name of the Macro that you created above to run the Macro.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 12
So you have included the box.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 13
Method 3: Merge cells in Excel using Concatenate and Merge & Center Functions.
This will also help you to merge cells in Excel and not lose data, but you need to perform an additional step using the Concatenate function to merge data before using Merge & Center to merge cells. You perform the following steps:
Step 1 : You select any cell to enter the CONCATENATE function to combine data in the cells you want to merge.
This function is quite simple to use, if you do not know you can see more about using CONCATENATE here.
For example: You want to combine cells B7, C7, D7; In cell E7 enter the CONCATENATE function as follows = CONCATENATE (B7; ""; C7; ""; D7)
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 14
So you have included the data in cells B7, C7, D7 separated by a space, you can customize the CONCATENATE function as you like.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 15
Step 2 : After the data has been merged, you copy the data from the merged cell to the first cell in the cells to merge.
For example, you copy data in a cell containing CONCATENATE function, then select cell B7 (the first cell in the cells to combine), right-click and select Value in Paste Options to paste values only without pasting formulas jaw.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 16
Thus all data will be moved to the position of the first cell on the left, next you delete the CONCATENATE function.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 17
Step 3: Merge the box.
After you have transferred all the data to the first cell in the cells to merge, you select the cells to merge and choose Merge & Center or choose Merge Across or Merge Cell as you want to merge cells.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 18
So you will pool cells in Excel without losing data.
How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016 Picture 19
Above are 3 ways to merge cells in Excel, you can apply to merge cells in Excel as needed. Hope this article will help you. Good luck!
You should read it
- Merge cells in Excel
- How to merge cells in Excel 2003 2007
- How to split cells, combine cells in Excel
- How to merge cells in Excel with no data loss
- Complete tutorial of Excel 2016 (Part 5): Basics of cells and ranges
- Merge keyboard shortcuts in Excel
- How to merge cells in Google Sheets
- How to combine 2 or more cells in Excel without losing data
- How to merge and split cells in Word
- Mix text, merge messages, mix Excel tables into Word 2007 documents
- How to color formula cells in Excel automatically
- Instructions on how to split and merge cells in Word
May be interested
Adjust line spacing in Word - Instructions on how to adjust line spacing in Word 2007, 2010, 2013, 2016
How to add columns, delete columns, add rows, delete rows in Word 2007, 2010, 2013, 2016
Repeat titles in Word - Instructions on how to repeat titles in Word 2007, 2010, 2013, 2016
Page break in Word - Instructions on how to break a page in Word 2007, 2010, 2013, 2016
How to write fractions in Word - Instructions on how to write fractions in Word 2007, 2010, 2013, 2016
Insert special characters in Word documents