Skip to content
SkillSopan
Lesson 2.510 minFree

Cell Formatting: Fonts, Borders, Alignment and the Merge Problem

Keys you'll useCtrl1AltHOI

After this lesson you can

  • Format a dataset so it reads clearly without looking decorated
  • Use alignment and wrap text correctly
  • Repair a workbook that merged cells have broken

Why this matters

Good formatting follows one principle: it should reduce the reader's effort, not demonstrate yours. And one button on the Home tab — the one that looks most useful — breaks sorting, filtering, pivot tables and lookups. This lesson covers both.

How it works

A standard that works for any business report

ElementTreatment
Header rowBold, white text on a dark fill, frozen
Data rowsPlain, no fill, 11pt
Text columnsLeft-aligned
Number columnsRight-aligned — never override this
BordersA single bottom border on the header, nothing else
Column widthAutoFit, then widen slightly
EmphasisBold or a light fill. Never both, never also a border.

Never centre a column of numbers. Centred numbers can't be compared vertically because the digits don't line up. Right alignment is the default for a reason.

Use Indent (Alt+H+6) rather than leading spaces for hierarchy. " Sales" is a different string from "Sales" — lookups will fail and you won't see why.

Screenshot 2.5.1 from this lesson

The merge problem, stated precisely

Merge & Center combines several cells into one, keeps only the top-left value, and genuinely empties the others.

What breaks as a result:

  • Sorting — Excel refuses outright: "To do this, all the merged cells need to be the same size"
  • Filtering — the dropdown lists the value, but filtering on it returns only one row
  • Pivot tables — merged headers produce blank field names
  • Lookups — the value exists in only one of the merged cells
  • Ctrl+Shift+↓ — navigation stops or behaves unpredictably

The replacement: select the cells, Ctrl+1 → Alignment → Horizontal → Center Across Selection. Visually identical. Nothing breaks. The cells stay separate and individually addressable.

There is essentially no situation in a working spreadsheet where Merge & Center is the better choice.

Repairing a merged dataset

Six steps, about fifteen seconds, and you'll use it more than you expect:

Formula
1. Select the range → Home → Merge & Center  (click to unmerge)
2. F5 → Special → Blanks → OK
3. Type  =  then press  ↑
4. Press Ctrl+Enter                    every blank fills from above
5. Copy → Paste Values                 makes it permanent

Do it

Build a deliberately broken recruitment tracker: a title merged across A1:E1, and role names merged down column A across groups of rows.

  1. Try to sort by the Applied date. Excel refuses, naming merged cells.
  2. Add a filter with Ctrl+Shift+L. Open the Role dropdown — it lists both roles. Filter to one. Only one row returns, not three.
Screenshot 2.5.2 from this lesson
  1. Fix it: select the merged role cells → Home → Merge & Center to unmerge.
  2. Press F5 → Special → Blanks → OK.
  3. Type = then press ↑. Press Ctrl+Enter.
  4. Copy the column → Ctrl+Alt+V → Values → OK.
Screenshot 2.5.3 from this lesson
  1. Now fix the title: unmerge A1:E1, then select it and press Ctrl+1 → Alignment → Center Across Selection.
  2. Click C1. The Name Box says C1 and the cell is empty and usable — but the title still appears centred.
Screenshot 2.5.4 from this lesson

Format it properly

  1. Select the header row. Bold, dark fill, white font. Right-click the row number → Row Height → 22.
  2. Select all data → Alt+H+O+I to AutoFit columns. Widen each slightly.
  3. Apply a bottom border to the header row only. Leave the rest clean.
  4. Click B2 → View → Freeze Panes.
  5. Sort by date again. It works. Filter by role — all rows return.
Screenshot 2.5.5 from this lesson

Shortcuts

ShortcutWhat it doesWhen to use itExample
Ctrl + 1Format CellsCenter Across Selection lives here, and everything elseSelect A1:E1 first
Alt + H + O + IAutoFit column widthAfter every paste — reveals truncated content and #####Ctrl+A first, then this
Alt + H + 6Increase indentShowing hierarchy without leading spacesSub-categories under a heading
Alt + H + F + PFormat PainterCopying a format to another range — double-click to apply repeatedlyEsc to stop

Watch out

MistakeWhat you seeFix
Merge & Center for titlesSorting refuses; filters and pivots silently return partial resultsCenter Across Selection
Centring number columnsDigits don't align; comparison becomes slow and error-proneLeave numbers right-aligned
Borders on every cellVisual noise; the eye can't find the structureHeader border only
Leading spaces for indentation" Sales" no longer matches in lookupsThe Indent button
##### in a cellIt looks like an errorThe column is too narrow for a number — AutoFit it
Wrap text without setting row heightRows become wildly unevenSet a fixed row height and align to Top
Six colours in one sheetNothing stands outOne accent colour, one light tint
Formatting entire columnsFile size balloons; Ctrl+End goes to row 1,048,576Format the used range only

Practice

Practice

Scenario

Repair and format an inherited recruitment tracker.

Dataset: Recruitment Pipeline

Download starter file

Build this deliberately broken version:

ABCD
1(merge A1:D1) RECRUITMENT TRACKER Q3
2RoleCandidateSourceApplied
3(merge A3:A5) Java DeveloperAnil KLinkedIn45900
4Meera NReferral45902
5Rahul SNaukri45905
6(merge A6:A7) QA EngineerSneha RLinkedIn45901
7Kabir MReferral45908

Your task

  1. Try to sort by the Applied date. What happens?
  2. Add a filter and open the Role dropdown. How many roles does it list? Filter to Java Developer — how many rows return, and how many should?
  3. Unmerge A3:A7 and fill the blanks using Go To Special.
  4. Convert those formulas to values. Why is this step not optional?
  5. Unmerge the title and apply Center Across Selection instead. Click C1 — what does the Name Box show?
  6. Format the header row: bold, dark fill, white text, row height 22.
  7. Format column D as dd-mmm-yyyy. AutoFit all columns and freeze at A3.
  8. Sort by date again and re-filter by role. Does everything work now?

What you should end up with

Step 1: Excel refuses, naming merged cells · Step 2: lists two roles, but filtering returns only 1 row where 3 should · Step 5: C1, still a usable cell · Step 8: both work

Quiz

Question 1 of 3 · Multiple choice

You need a report title centred across columns A to F without breaking sorting or filtering. What do you use?

Reading is free. Sign in to save progress.