Excel tutorial
/

Formatting

Beginner

How to merge cells in Excel: Merge & Center and a safer alternative

How to merge and unmerge cells in Excel, why merging breaks sorting, filters and SUMIF, and the safe alternative: Center Across Selection.

Merging turns several cells into one big cell. It is most often used for a report title: “Sales by branch” sits centered above the whole table.

It looks nice, but it is a risky tool. Merged cells get in the way of sorting, filtering, copying and formulas. In this topic you’ll learn both sides: how to merge, and when not to.

Книга1 - Excel
—☐✕
fx
ABCDE
1Sales by branch — Q1 2025
2BranchJanuaryFebruaryMarch
3Tashkent120135150
4Samarkand809288
5Bukhara647075
6
Готово
A1:D1 merged into one cell: the title spans the full width of the table (sales in million soums)

Merging cells

1

Type the title in A1 and select the cells across the table’s width — A1:D1.

Книга1 - Excel
—☐✕
A1fxSales by branch — Q1 2025
ABCDE
1Sales by branch — Q1 20251
2BranchJanuaryFebruaryMarch
3Tashkent120135150
4Samarkand809288
5
ГотовоКоличество: 1

2

Click Главная → Объединить и поместить в центре. The four cells become one and the text moves to the center.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить
Буфер обмена
Calibri ▾11 ▾
Шрифт
Выравнивание
Общий ▾
Число
Условное форматированиеФорматировать как таблицуСтили ячеек
Стили
ВставитьУдалитьФормат
Ячейки
АвтосуммаСортировка и фильтрНайти и выделить
Редактирование
A1fxSales by branch — Q1 2025
ABCDE
1Sales by branch — Q1 2025
2BranchJanuaryFebruaryMarch
3Tashkent120135150
4Samarkand809288
5
ГотовоКоличество: 1

3

For other options, click the small arrow next to the button and pick one from the list (they are explained below).

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить
Буфер обмена
Calibri ▾11 ▾
Шрифт
Выравнивание
Общий ▾
Число
Условное форматированиеФорматировать как таблицуСтили ячеек
Стили
ВставитьУдалитьФормат
Ячейки
АвтосуммаСортировка и фильтрНайти и выделить
Редактирование
A1fxSales by branch — Q1 2025
ABCDE
1Sales by branch — Q1 2025
2BranchJanuaryFebruaryMarch
3Tashkent120135150
4Samarkand809288
5
ГотовоКоличество: 1

4

To undo: select the merged cell and click Объединить и поместить в центре again, or choose Unmerge Cells from the list. The value goes back to the top-left cell.

Four options: what each one does

  • Merge & Center — turns the selected cells into one and centers the text horizontally. For titles.
  • Merge Across — merges each row separately. Select A1:D3 and you get three separate merged rows, not one big block.
  • Merge Cells — merges without changing the alignment.
  • Unmerge Cells — splits a merged cell back.

Why experienced users avoid merging

In a merged block only the first cell holds the value; the rest are empty. That causes problems:

  • Sorting fails with: “To do this, all the merged cells need to be the same size.”
  • Filtering shows only the first row of the block — the other rows seem to vanish.
  • SUMIF, COUNTIF, VLOOKUP see empty cells and skip rows.
  • You can’t select a single column — the selection expands into neighboring columns. Copy and paste throws errors too.
  • Excel tables (Ctrl + T) and PivotTables don’t work with merged cells at all.
Книга1 - Excel
—☐✕
E2fx=СУММЕСЛИ(A2:A7;"Tashkent";C2:C7)
ABCDEF
1RegionMonthSalesTashkent total
2TashkentJanuary1201202
31February135
4March150
5SamarkandJanuary80
6February92
7March88
8
Готово
A2:A4 are merged, but “Tashkent” is stored only in A2, while A3 and A4 are empty (1). So SUMIF returns 120 instead of 405 (2)

Pro level: Center Across Selection — centered without merging

There is a safe way to center a title above a table. It looks exactly like Merge & Center, but the cells stay separate — sorting, selecting columns and copying all work as usual.

  1. Select A1:D1 (the text must be in A1).
  2. Press Ctrl + 1 → Alignment tab.
  3. In the Horizontal list choose Center Across Selection and click OK.

Limitation: it works horizontally only. For repeating values in a column (Region), type the value on every row instead of merging; PivotTables have a dedicated “Merge and center cells with labels” option for grouped labels.

Книга1 - Excel
—☐✕
A1fxSales by branch — Q1 2025
ABCDE
1Sales by branch — Q1 2025
2BranchJanuaryFebruaryMarch
3Tashkent120135150
4Samarkand809288
5
ГотовоКоличество: 1
Format Cells → Alignment: Merge cells is unticked, Horizontal is set to Center Across Selection

Pro level: “repairing” a merged column

1

Select the merged Region column (A2:A7) and choose Объединить и поместить в центре → Unmerge Cells. Each block keeps its value only in the first cell; the rest are empty.

2

Keep the selection and choose Главная → Найти и выделить → Go To Special....

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить
Буфер обмена
Calibri ▾11 ▾
Шрифт
Выравнивание
Общий ▾
Число
Условное форматированиеФорматировать как таблицуСтили ячеек
Стили
ВставитьУдалитьФормат
Ячейки
АвтосуммаСортировка и фильтрНайти и выделить
Редактирование
A2fxTashkent
ABCD
1RegionMonthSales
2TashkentJanuary120
3February135
4March150
5SamarkandJanuary80
6February92
7March88
8
ГотовоКоличество: 2

3

Choose Blanks and click OK — now only the empty cells are selected.

Книга1 - Excel
—☐✕
A3fx
ABCD
1RegionMonthSales
2TashkentJanuary120
3February135
4March150
5SamarkandJanuary80
6February92
7March88
8
ГотовоКоличество: 2

4

The active cell is A3. Press =, then ↑ (the cell above) and Ctrl + Enter — the formula goes into every blank cell at once. Each one picks up the value above it.

Книга1 - Excel
—☐✕
A3fx=A2
ABCD
1RegionMonthSales
2TashkentJanuary120
3TashkentFebruary135
4TashkentMarch150
5SamarkandJanuary80
6SamarkandFebruary92
7SamarkandMarch88
8
Готово
Now every row has its region — sorting, filters and SUMIF work correctly

5

Finally, copy column A and paste it in place with Paste Special → Values — the formulas turn into plain text and won’t “break” the next time you sort.

Try it in the simulator

Column A has already been unmerged: the region appears only in the first row of each block. Type =ЕСЛИ(ЕПУСТО(A2);D1;A2) in D2 and fill it down to D7 — every row should now show the full region name.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1RegionMonthSalesRegion (full)
2TashkentJanuary120
3February135
4March150
5SamarkandJanuary80
6February92
7March88
8
9
10
11
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

36 / 154