How to Merge Cells in Google Sheets (and When Not To)

How to Merge Cells in Google Sheets (and When Not To)

Quick answer: Select the cells, then click Format → Merge cells and choose Merge all, Merge horizontally or Merge vertically. Or click the merge button in the toolbar. To undo, choose Format → Merge cells → Unmerge.

Merging cells combines several cells into one bigger cell. It’s handy for a title stretching across a table, or a heading that covers several columns.

How to merge cells on a computer

  1. Select the cells you want to combine by clicking and dragging.
  2. Click Format → Merge cells.
  3. Choose an option (explained below).

Shortcut: the merge cells button in the toolbar (an icon with arrows pointing inwards). The small arrow beside it shows the other options.

The three merge options

OptionWhat it doesGood for
Merge allCombines the whole selection into one cellBig titles
Merge horizontallyMerges each row separatelyHeadings across columns, row by row
Merge verticallyMerges each column separatelyLabels running down several rows

Watch out: if more than one of the selected cells contains data, Sheets keeps only the top-left value and discards the rest. It warns you first. Copy anything important elsewhere before merging.

On the Google Sheets phone app

  1. Tap a cell, then drag the blue dots to select the range.
  2. Tap the merge icon in the toolbar at the bottom (you may need to tap the A formatting icon to find it on some versions).

How to unmerge

Select the merged cell and choose Format → Merge cells → Unmerge, or click the toolbar merge button again. The content stays in the top-left cell.

When not to merge

Merged cells inside a data table can break sorting and filtering, and make formulas confusing. For a title that just needs to look centred across columns, a cleaner trick is to put the text in the first cell and use centre alignment with the cells left unmerged, or keep titles above the table where they won’t interfere.

Next step: turn your table into a visual with our guide on making a pie chart in Google Sheets.