Cell Formatting: Fonts, Borders, Alignment and the Merge Problem
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
| Element | Treatment |
|---|---|
| Header row | Bold, white text on a dark fill, frozen |
| Data rows | Plain, no fill, 11pt |
| Text columns | Left-aligned |
| Number columns | Right-aligned — never override this |
| Borders | A single bottom border on the header, nothing else |
| Column width | AutoFit, then widen slightly |
| Emphasis | Bold 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.
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:
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.
- Try to sort by the Applied date. Excel refuses, naming merged cells.
- Add a filter with Ctrl+Shift+L. Open the Role dropdown — it lists both roles. Filter to one. Only one row returns, not three.
- Fix it: select the merged role cells → Home → Merge & Center to unmerge.
- Press F5 → Special → Blanks → OK.
- Type
=then press ↑. Press Ctrl+Enter. - Copy the column → Ctrl+Alt+V → Values → OK.
- Now fix the title: unmerge A1:E1, then select it and press Ctrl+1 → Alignment → Center Across Selection.
- Click C1. The Name Box says
C1and the cell is empty and usable — but the title still appears centred.
Format it properly
- Select the header row. Bold, dark fill, white font. Right-click the row number → Row Height → 22.
- Select all data → Alt+H+O+I to AutoFit columns. Widen each slightly.
- Apply a bottom border to the header row only. Leave the rest clean.
- Click B2 → View → Freeze Panes.
- Sort by date again. It works. Filter by role — all rows return.
Shortcuts
| Shortcut | What it does | When to use it | Example |
|---|---|---|---|
Ctrl + 1 | Format Cells | Center Across Selection lives here, and everything else | Select A1:E1 first |
Alt + H + O + I | AutoFit column width | After every paste — reveals truncated content and ##### | Ctrl+A first, then this |
Alt + H + 6 | Increase indent | Showing hierarchy without leading spaces | Sub-categories under a heading |
Alt + H + F + P | Format Painter | Copying a format to another range — double-click to apply repeatedly | Esc to stop |
Watch out
| Mistake | What you see | Fix |
|---|---|---|
| Merge & Center for titles | Sorting refuses; filters and pivots silently return partial results | Center Across Selection |
| Centring number columns | Digits don't align; comparison becomes slow and error-prone | Leave numbers right-aligned |
| Borders on every cell | Visual noise; the eye can't find the structure | Header border only |
| Leading spaces for indentation | " Sales" no longer matches in lookups | The Indent button |
##### in a cell | It looks like an error | The column is too narrow for a number — AutoFit it |
| Wrap text without setting row height | Rows become wildly uneven | Set a fixed row height and align to Top |
| Six colours in one sheet | Nothing stands out | One accent colour, one light tint |
| Formatting entire columns | File size balloons; Ctrl+End goes to row 1,048,576 | Format the used range only |
Practice
Practice
Scenario
Repair and format an inherited recruitment tracker.
Dataset: Recruitment Pipeline
Download starter fileBuild this deliberately broken version:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | (merge A1:D1) RECRUITMENT TRACKER Q3 | |||
| 2 | Role | Candidate | Source | Applied |
| 3 | (merge A3:A5) Java Developer | Anil K | 45900 | |
| 4 | Meera N | Referral | 45902 | |
| 5 | Rahul S | Naukri | 45905 | |
| 6 | (merge A6:A7) QA Engineer | Sneha R | 45901 | |
| 7 | Kabir M | Referral | 45908 |
Your task
- Try to sort by the Applied date. What happens?
- 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? - Unmerge A3:A7 and fill the blanks using Go To Special.
- Convert those formulas to values. Why is this step not optional?
- Unmerge the title and apply Center Across Selection instead. Click C1 — what does the Name Box show?
- Format the header row: bold, dark fill, white text, row height 22.
- Format column D as
dd-mmm-yyyy. AutoFit all columns and freeze at A3. - 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
