How to merge multiple rows and columns in excel
Tutor 5 (73 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To merge multiple rows and columns in Excel, follow the built-in Merge commands in the Alignment group. Excel applies the merge to a selected rectangular range. Excel keeps the content of the upper-left cell and deletes the rest of the data in the merged area.
How to merge cells using the Ribbon
To merge cells using the Ribbon:
-
Highlight the block of cells you want to merge.
-
Go to the Home tab.
-
Locate the Alignment group.
-
Select one of these Merge options:
-
Merge & Center: Creates one large cell and places the text in the center.
-
Merge Across: Merges cells in each selected row independently.
-
Merge Cells: Creates one large cell without centering text.
-
-
Confirm the merge when Excel warns that only the upper-left value remains.
Windows and Mac provide the same steps. The Command key on Mac replaces the Control key in shortcuts.
How to merge rows and columns with keyboard shortcuts
To merge with a keyboard shortcut:
-
Select the cells.
-
Use:
-
Windows:
Alt→H→M→ select the merge action key. -
Mac:
Command+Option+M.
-
Excel assigns the action key after Alt → H → M:
-
C for Merge & Center
-
M for Merge Cells
-
A for Merge Across
Windows uses access keys, and Mac uses a single shortcut.
How to merge cells without losing data
Merging normally removes all values except the upper-left one. A helper formula preserves data before merging.
To keep text from several cells:
-
Insert a temporary cell beside the range.
-
Enter a combining formula:
=TEXTJOIN(" ",TRUE,A1:C1)
-
Copy the formula result.
-
Paste it as Values into the upper-left cell of the range you want to merge.
-
Apply the merge command.
-
Delete the temporary helper cell.
The function TEXTJOIN keeps all values and supports customizable delimiters.
How to unmerge multiple merged rows and columns
To unmerge merged cells:
-
Select the merged cell or select the entire sheet.
-
Go to Home → Alignment.
-
Select Unmerge Cells.
Excel converts the merged region back into individual cells. Excel leaves the content of the original merged cell in the upper-left restored cell.
How to merge rows and columns for formatting layouts
To design layout sections using merges:
-
Select the header area spanning the desired rows and columns.
-
Apply Merge & Center to create a grouped heading.
-
Format with bold, background color, or borders.
-
Repeat for each grouping block of the sheet.
Merged cells support large titles, dashboards, and grouped report structures. Excel processes merged cells as one element for alignment and spacing.
Common issues when merging and how to fix them
Cells contain data
Excel blocks merges when cells contain data that would be lost. The fix is to remove or relocate text using a function such as TEXTJOIN or manual cut-and-paste before merging.
Merged cells block sorting and filtering
Sorting and filtering require non-merged structures. The fix is to unmerge cells, fill values down, and reapply sorting.
Merged cells misalign rows during editing
Merged cells disrupt row heights when used widely. The fix is to replace merging with Center Across Selection.
What is “Center Across Selection”?
Center Across Selection spreads a value across cells visually without merging them.
To apply Center Across Selection:
-
Select the range.
-
Press Ctrl + 1 (Windows) or Command + 1 (Mac).
-
Go to the Alignment tab.
-
Change Horizontal to Center Across Selection.
-
Apply the setting.
Center Across Selection preserves sorting and filtering.
When to use merging
Merging helps create headings, report sections, and dashboard labels. Merging does not work well for databases, sorting, filtering, or structured tables.
When to avoid merging
Avoid merging when building models, entering large datasets, or running formulas that depend on uniform row and column sizes. Unmerged cells maintain structural consistency.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to show duplicates in red
Answers · 1
How to apply duplicate conditional formatting rule
Answers · 1
How to duplicate conditional formatting excel
Answers · 1
What is excel conditional formatting duplicates
Answers · 1