Confident CellsExcel practice Start free

Alignment, wrap and merging: practice exercises

Merge & Centre, Merge Across, Unmerge, Centre Across Selection, Wrap Text, indent, orientation. 7 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.

In the lesson

This lesson has a strip of Excel's Home tab buttons and the Format Cells dialog above a practice sheet: format the cells as you would in Excel, and each task is checked as you go.

Open the Alignment, wrap and merging lesson

How it works

Alignment is where text sits in its cell: left, centre or right, top or bottom, indented, turned at an angle, or wrapped onto several lines so a long heading fits a narrow column.

Merge & Centre joins cells into one, often to centre a title over a table. It's quick, but merged cells get in the way of sorting and selecting, so you'll also meet Centre Across Selection, which looks the same without merging.

Merge & Centre: an example

A report has its title in A1, and the table under it runs from column A to F. To centre the title over the table, select A1:F1 and click Merge & Centre. The six cells become one, A1, with the title in the middle.

The Merge & Centre ▾ list has three other choices:

  • Merge Across: merges each row of the selection on its own. Select A10:D12 and you get three wide cells, one per row.
  • Merge Cells: one cell, without centring.
  • Unmerge Cells: splits a merged cell back into its cells. The value stays in the top-left one.

Merging keeps only the top-left value. If other cells in the selection have something in them, Excel warns you that it will throw them away.

Windows: Home tab, Alignment group: Merge & Centre, and the arrow beside it for the list.

Mac: Home tab: Merge & Centre, and the arrow beside it.

Why people avoid merging

Merged cells cause trouble later. Excel won't sort a table with merged cells in it ("all the merged cells need to be the same size"), you can't select one column through a merged cell, and pasting into them fails. Unmerge first, then sort.

Centre Across Selection looks just the same, with no merge. Select A1:F1, open Format Cells (Ctrl+1), and on the Alignment tab set Horizontal to Centre Across Selection. The title stays in A1 and shows across all six columns.

Windows: right-click, Format Cells, Alignment tab, Horizontal list.

Mac: right-click (or Control-click), Format Cells, Alignment tab, Horizontal list. Or the Format menu at the top of the screen, Cells….

Wrap, indent and orientation

  • Wrap Text: a long heading such as Hours lost to sickness goes onto two or three lines, and the row gets taller, instead of running into the next cell.
  • Increase Indent and Decrease Indent: move text in from the left, a step at a time. Indent the items under a heading (Salaries and Training under Staff costs) so the list reads like an outline.
  • Top, Middle and Bottom Align: where the text sits in a tall cell. Bottom is the normal one.
  • Align Left, Centre and Align Right: across the cell.
  • Orientation ▾: turn the text. Angle Counterclockwise slants it up at 45°, Rotate Text Up turns it to 90°. Handy for narrow columns.

Windows: Home tab, Alignment group. The Alignment tab of Format Cells has all of these, with exact angles and indents.

Mac: Home tab, the alignment buttons, Orientation (the ab with an arrow) and Wrap Text.

What you'll practise

  1. Centre the title over the table: select A1:F1 and use Merge & Centre.
  2. Centre the title across A1:F1 again, but this time without merging: select A1:F1, open Format Cells…, and on the Alignment tab choose Horizontal: Centre Across Selection.
  3. The headings in A3:F3 are too long for their columns. Wrap them onto more than one line with Wrap Text.
  4. Show which items come under each heading: indent A5:A7 (under Staff costs) and A9:A10 (under Premises) by one step each, with Increase Indent. Leave the headings where they are.
  5. Sort the staff list by Employee, A to Z, with the filter button on A1. Excel won't sort a table with merged cells in it, so first unmerge E3:E4.
  6. Change the orientation of the headings in B3:F3 so the text slants upwards at 45 degrees.
  7. Centre the headings in A3:F3 both horizontally and vertically in their cells.