What merging a cell means and when you'd use it
Merging cells means combining two or more adjacent cells into a single larger cell. When you merge cells, the spreadsheet treats them as one unit instead of separate boxes. The content from the leftmost cell stays; content in the other cells is deleted during the merge.
You'd merge cells most often to create a title that spans across multiple columns, to label a section of your data, or to make a header row look cleaner. For example, if you have sales data for three months in columns B, C, and D, you might merge cells in row 1 across those columns and type "Q1 Sales" as a single centered label.
Merging is purely visual — it doesn't change how your data works or how formulas calculate. It's a formatting choice, not a structural one.
Key Takeaways
- Select the cells you want to merge by clicking the first cell and dragging to the last one, or by clicking the first cell and shift-clicking the last one.
- In Excel, go to the Home tab, click Merge & Center (or the Merge Cells dropdown), and choose Merge Cells; in Google Sheets, go to Format, then Merge Cells, then choose your merge type.
- When you merge cells, only the content in the top-left cell is kept; all other content in the merged range is deleted.
- You can unmerge cells the same way you merged them — select the merged cell, open the merge menu, and choose Unmerge Cells.
How to merge cells in Microsoft Excel
Start by selecting the cells you want to merge. Click on the first cell, then hold Shift and click on the last cell in the range you want to combine. The cells will highlight in blue to show they're selected.
Once your cells are selected, go to the Home tab at the top of the ribbon. Look for the Merge & Center button — it usually shows a small icon with cells joining together. Click the small arrow next to it to open a dropdown menu. You'll see three options: Merge & Center (which merges and centers the text), Merge Across (which merges but doesn't center), and Merge Cells (which merges without centering). Choose the one that fits what you need.
Excel will merge your cells immediately. If there was content in any cell other than the top-left one, Excel will warn you that it's about to delete that content and ask you to confirm.
How to merge cells in Google Sheets
Select your cells the same way as in Excel: click the first cell, then hold Shift and click the last cell. All the cells in that range will turn light blue.
Go to the Format menu at the top. Click Merge Cells. A submenu will appear with four options: Merge Cells (no alignment), Merge Vertically (stacks cells top to bottom), Merge Horizontally (combines cells left to right), and Unmerge. Choose Merge Cells for a standard merge, or pick Merge Horizontally if you're combining cells in a single row.
Google Sheets will merge your cells right away. Unlike Excel, Google Sheets doesn't warn you about deleted content — it simply keeps the top-left cell's content and removes the rest.
What happens to your data when you merge
When you merge cells, only the content in the top-left cell survives. Any text, numbers, or formulas in the other cells you're merging are permanently deleted. This is why it's important to check what's in each cell before you merge.
If you accidentally merged cells and lost data, use Undo (Ctrl+Z on Windows, Command+Z on Mac) immediately to reverse the merge and get your content back. Once you've done other work in the spreadsheet, undoing becomes harder or impossible.
Merged cells can also cause problems if you later try to sort or filter your data — many spreadsheet programs won't let you sort a range that contains merged cells. If you're working with data you might need to reorganize later, it's often better to leave cells unmerged and use formatting like bold text or background color instead.
How to unmerge cells
Select the merged cell by clicking on it once. The entire merged area will highlight.
In Excel, go to Home, click the Merge & Center dropdown, and select Unmerge Cells. In Google Sheets, go to Format, click Merge Cells, and select Unmerge. The cells will separate back into individual cells. The content that was in the merged cell stays in the top-left cell; the other cells become empty.
Common mistakes to avoid
The biggest mistake is merging cells that contain important data in cells other than the top-left one. Before you merge, scan each cell to make sure you're not about to lose something you need. If you're unsure, copy the content to a text file first, then merge.
Another common issue is merging cells in a data range you plan to sort or filter. Merged cells often break sorting and filtering features. If you need to reorganize your data, unmerge first, do your sorting or filtering, then merge again if you want.
Merging cells in a column that you use for calculations can also cause confusion. If you merge cells in a column and then write a formula that references that column, the formula might behave unexpectedly because the merged cell takes up multiple rows but counts as one cell.
Alternatives to merging when you want a cleaner look
If you want a title or label to span across columns without actually merging cells, you can use center alignment across cells instead. Select your range, go to alignment options, and choose "Center Across Selection" (Excel) or use the alignment tools in Google Sheets. This keeps your cells separate but makes the text appear centered across them.
You can also use background color, bold text, or borders to visually separate sections of your spreadsheet without merging. These formatting options give you a cleaner look while keeping your data structure intact and your sorting and filtering features working.
Frequently Asked Questions
Can I merge cells that aren't next to each other?
No. You can only merge cells that are adjacent — touching each other in a rectangle. If you select cells that aren't touching, the merge option will be grayed out or won't work. You have to select a continuous block of cells.
What happens to formulas when I merge cells?
If the top-left cell contains a formula, it stays. If any other cell in the merge range contains a formula, it's deleted. If you need to keep a formula, move it to the top-left cell before you merge, or don't merge at all.
Can I merge cells vertically and horizontally at the same time?
Yes. Select a rectangular range of cells (for example, B2 through D4) and merge them. The cells will combine into one large cell that spans both rows and columns. In Google Sheets, just use the standard Merge Cells option.
Why won't my sort or filter work after I merged cells?
Many spreadsheet programs don't allow sorting or filtering on ranges that contain merged cells. Unmerge the cells, sort or filter your data, then merge again if you want. Alternatively, use formatting like color or bold text instead of merging.
Can I merge cells in a protected or shared spreadsheet?
It depends on the permissions set up in that spreadsheet. If the sheet is protected and merging isn't allowed, you'll see an error message. If the sheet is shared, you can usually merge cells in your own copy, but check with whoever set up the sharing to see if there are restrictions.