What merging cells does and why you might want it
Merging cells in Google Sheets combines two or more adjacent cells into a single larger cell. The content from the leftmost cell stays; content in the other cells disappears. The merged cell spans across multiple columns or rows, which is useful when you want a title or label to sit above several columns of data, or when you're building a form or report layout that needs visual breathing room.
Merged cells look cleaner on a printed page or when you're sharing a spreadsheet as a document. They're common in templates, invoices, and summary tables where you want headers or section titles to stretch across the width of your data. That said, merged cells can make sorting, filtering, and formula work harder, so they're best used sparingly and only in the parts of your sheet that don't need to move or calculate.
Key Takeaways
- Select the cells you want to merge by clicking and dragging across them, then use the merge icon in the toolbar or the Format menu.
- When you merge cells, only the content in the top-left cell is kept; all other content is deleted, so copy it elsewhere first if you need it.
- Merged cells can interfere with sorting and filtering, so avoid merging cells in data ranges where you plan to rearrange or filter rows.
- You can merge cells horizontally (across columns), vertically (down rows), or both at once, depending on your layout needs.
How to merge cells using the toolbar
The fastest way to merge cells is through the toolbar. First, select the cells you want to merge by clicking on one cell and dragging to the last cell you want included. You can select cells in a straight line horizontally, vertically, or in a rectangular block.
Once your cells are selected, look for the merge icon in the toolbar — it looks like a small grid with cells joining together, usually near the text formatting buttons. Click it, and a dropdown menu appears with four options: "Merge all", "Merge horizontally", "Merge vertically", and "Unmerge". Choose the option that matches what you're doing. "Merge all" combines everything into one cell. "Merge horizontally" combines cells left to right within each row. "Merge vertically" combines cells top to bottom within each column. If you've already merged cells and want to separate them again, select the merged cell and choose "Unmerge".
How to merge cells using the Format menu
If you don't see the merge icon in your toolbar, or if you prefer using menus, you can merge through Format. Select your cells, then click Format in the top menu, scroll down to Merge cells, and choose your merge type from the submenu.
This route is identical to the toolbar method — it just takes one extra click. Some people find it easier to remember because the word "merge" is right there in the menu name. The result is the same regardless of which method you use.
What happens to your data when you merge
Before you merge, understand what you're about to lose. When you merge cells, Google Sheets keeps only the content in the top-left cell of your selection. Everything in the other cells is deleted permanently. If those cells contain data you need, copy it to another location first.
For example, if you select cells A1 through D1 and merge them, and A1 contains "Name", B1 contains "Age", C1 contains "City", and D1 contains "State", only "Name" will remain after the merge. The words "Age", "City", and "State" will be gone. This is why merged cells work best for headers or labels where you're intentionally putting one piece of text across multiple columns, not for combining data from multiple cells.
Why merged cells can cause problems with sorting and filtering
Merged cells and data operations don't always play well together. If you merge cells in a column that you later want to sort or filter, Google Sheets may refuse the operation or behave unpredictably. Sorting works by rearranging entire rows, and merged cells that span multiple rows can confuse that process.
The safest approach: keep your actual data — the rows and columns you plan to sort, filter, or use in formulas — free of merged cells. Use merged cells only in header rows, title sections, or areas of your sheet that are purely for display. If you have a data table with headers, merge cells in the header row if you want, but don't merge cells within the data itself.
Common uses for merged cells
Merged cells shine in a few specific situations. A title at the top of a sheet often spans the full width, so merging cells A1 through E1 and putting "Q3 Sales Report" there looks intentional and organized. Section headers in a form or template work the same way — merge a row to create a visual break between sections.
Invoices and receipts often use merged cells to position company names, dates, or totals in the right place on the page. If you're building a template that someone will print or export to PDF, merged cells help you control the visual layout. Just remember that the moment you add actual data to that sheet — rows of transactions, customer records, anything you might sort — move away from merged cells in those areas.
How to unmerge cells and get your layout back
If you've merged cells and changed your mind, or if you need to sort your data and the merged cells are in the way, you can unmerge them. Select the merged cell, click the merge icon in the toolbar, and choose "Unmerge". The cell splits back into its original separate cells. The content that was in the merged cell stays in the top-left cell; the other cells come back empty.
Unmerging doesn't restore content that was deleted during the original merge. If you merged cells A1 through D1 and lost "Age", "City", and "State", unmerging won't bring those words back. That's why it's worth thinking through your merge strategy before you do it — especially if the cells you're merging contain data you might need later.
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 straight line or forming a rectangle. If you select cells that have gaps between them, the merge option won't work. Select a continuous block of cells instead.
What happens to formulas in merged cells?
If a cell contains a formula and you merge it with other cells, the formula stays in the merged cell and continues to calculate. However, if the formula is in one of the non-top-left cells being merged, it will be deleted. Always keep formulas in the top-left cell of your merge selection if you want them to survive.
Can I merge cells in a shared spreadsheet?
Yes, you can merge cells in a shared sheet just as you would in your own sheet. However, if multiple people are editing at the same time, merging can sometimes cause display issues or conflicts. It's safest to merge cells when you're the only one actively editing, or to coordinate with collaborators first.
Does merging cells affect how my data exports?
When you export a sheet to Excel or CSV, merged cells usually export as merged cells (in Excel) or as a single cell with the content in the top-left position (in CSV). The exact behavior depends on the file format. If you're exporting to CSV and need all your data to be in separate cells, unmerge before exporting.