Module 6 covered text formatting — how characters look inside cells. This module goes one level deeper: formatting the structure of cells and sheets themselves. Borders give tables visual clarity. Number formats control how numeric values display without changing their underlying value. Cell Styles apply complete, consistent formatting with a single click. And Themes apply a unified colour and font palette across the entire workbook. Together, these tools transform a functional spreadsheet into a professional, polished document.
Borders are lines drawn on the edges of cells — top, bottom, left, right, or diagonal. They are the primary structural tool for making tables readable on screen and in print. Unlike gridlines (which are a display aid and do not print by default), borders are part of the cell formatting and always print.
| Border Option | What It Applies | Best For |
|---|---|---|
| Bottom Border | A line under the selected cells only | Separating a header row from data; underlining a subtotal |
| Top and Bottom Border | Lines above and below the selection | Highlighting a total row that sits within a table |
| All Borders | Borders on every edge of every selected cell — creates a full grid | Making every cell in a table clearly delimited — the most commonly used border option |
| Outside Borders | A single border around the outer perimeter of the entire selection only | Framing a table or section without gridlines inside it |
| Thick Box Border | A thick outer border with no inner borders | Emphasising a key figure or summary box |
| Bottom Double Border | A double line below the selection | Grand totals in financial statements — the accounting standard |
| Thick Bottom Border | A single thick line below the selection | Subtotals and section separators |
| No Border | Removes all borders from the selection | Clearing existing borders |
For full control over line style, colour, and which specific edges have borders:
Number formatting controls how a value displays without changing the underlying value that Excel stores and uses in calculations. The number 1500.5 can display as 1500.5, R 1,500.50, 150050%, 15 Jan 1904, or countless other formats — but Excel always stores and calculates with the same underlying value.
| Format | What It Does | Example (value: 1500.5) |
|---|---|---|
| General | Excel's default — displays numbers as typed, without fixed decimal places or thousands separators. Switches to scientific notation for very large numbers. | 1500.5 |
| Number | Displays as a plain number. Configurable decimal places and thousands separator. | 1,500.50 |
| Currency | Adds a currency symbol and 2 decimal places. Symbol position depends on locale. Negative values can show in red or with brackets. | R 1,500.50 |
| Accounting | Similar to Currency but aligns currency symbols and decimal points vertically in a column — the preferred format for financial reports. Zero displays as a dash (-). | R 1,500.50 |
| Date | Displays the number as a date. Various formats available (short, long, custom). | 05/06/1904 (1500.5 as a date) |
| Time | Displays as a time value (HH:MM, HH:MM:SS, AM/PM). | 12:00 PM |
| Percentage | Multiplies the value by 100 and adds a % sign. Enter 0.15 and format as % to display 15%. Enter 15 and format as % to display 1500% (a common mistake). | 150050% |
| Fraction | Displays the decimal value as a fraction. | 1500 1/2 |
| Scientific | Displays in scientific/exponential notation. | 1.50E+03 |
| Text | Treats the cell value as text, even if it is a number. Numbers in Text format cannot be summed. Left-aligns the value. | "1500.5" (stored as text) |
| Button | What It Does | Shortcut |
|---|---|---|
| Accounting Number Format ($) | Applies Accounting format with the local currency symbol | Ctrl+Shift+$ |
| Percent Style (%) | Applies Percentage format with 0 decimal places | Ctrl+Shift+% |
| Comma Style (,) | Applies Number format with thousands separator and 2 decimal places, no currency symbol | — |
| Increase Decimal (.0→.00) | Adds one decimal place to the current format | — |
| Decrease Decimal (.00→.0) | Removes one decimal place from the current format | — |
When the built-in formats do not meet your needs, you can create a Custom Number Format using format codes. Custom formats are one of Excel's most powerful and underused features.
| Code | Meaning | Example |
|---|---|---|
0 | Digit placeholder — always shows a digit, uses 0 if no digit exists at that position | 0000 → 0007 (for the value 7) |
# | Digit placeholder — shows a digit only if one exists; suppresses insignificant zeros | #,##0 → 1,500 (for the value 1500) |
. | Decimal point | #,##0.00 → 1,500.50 |
, | Thousands separator when placed between digit placeholders | #,##0 → 1,500 |
% | Multiplies by 100 and adds % sign | 0.00% → 15.00% (for value 0.15) |
"text" | Literal text inside double quotes is displayed exactly as typed | "R "#,##0.00 → R 1,500.50 |
@ | Text placeholder — shows whatever text is in the cell | "Dept: "@ → Dept: Finance |
d, dd, ddd, dddd | Day: 1, 01, Mon, Monday | dd/mm/yyyy → 15/01/2025 |
m, mm, mmm, mmmm | Month: 1, 01, Jan, January | dd mmmm yyyy → 15 January 2025 |
yy, yyyy | Year: 25, 2025 | mmm-yy → Jan-25 |
h, hh, m, mm, s, ss | Hours, minutes, seconds | hh:mm:ss → 08:30:00 |
[Red], [Blue], [Green] | Applies a colour to the formatted value | [Red]-#,##0 → negative numbers display in red |
A custom format can have up to four sections separated by semicolons, each controlling how a specific type of value displays:
"R "#,##0.00;[Red]"(R "#,##0.00")";"—";"@"| Need | Custom Format Code | Output (value: 1500) |
|---|---|---|
| Rand with 2 decimals | "R "#,##0.00 | R 1,500.00 |
| Rand thousands, no decimals | "R "#,##0 | R 1,500 |
| Thousands abbreviated | #,##0,"k" | 2k (for 1500, shows 2k because ,k divides by 1000) |
| Leading zeros (employee/account codes) | 0000000 | 0001500 |
| SA date (full) | dd mmmm yyyy | 15 January 2025 |
| SA date (short) | dd/mm/yyyy | 15/01/2025 |
| Day and month name | dddd, dd mmmm | Wednesday, 15 January |
| Positive green, negative red | [Green]#,##0.00;[Red]-#,##0.00 | 1,500.00 in green / -250.00 in red |
| VAT % display | 0"%" | 15% (enter 15, not 0.15) |
Cell Styles are pre-built, named combinations of formatting — font, size, colour, border, number format, and alignment — that you can apply with a single click. They ensure consistency across a workbook and make mass formatting changes easy: update the style definition and every cell using that style updates automatically.
| Style Category | Examples | Best For |
|---|---|---|
| Good, Bad and Neutral | Good (green), Bad (red), Neutral (yellow) | Status indicators, performance flags, pass/fail results |
| Data and Model | Calculation, Check Cell, Explanatory, Input, Linked Cell, Note, Output, Warning Text | Financial models — these styles show users which cells to edit (Input = yellow), which are formulas (Calculation = grey), and which show results (Output) |
| Titles and Headings | Title, Heading 1, Heading 2, Heading 3, Heading 4, Total | Section headings and titles in reports; Total style for sum rows |
| Themed Cell Styles | 20% - Accent 1 through 60% - Accent 6 (6 colours × 3 shades) | Colour-coding sections, categories, or data groups using the document theme palette |
| Number Format | Comma, Comma[0], Currency, Currency[0], Percent | Quickly applying standard number formats with consistent appearance |
A Theme is a coordinated set of colours, fonts, and effects that applies to the entire workbook at once. Changing the theme instantly updates all themed colours, fonts, and chart styles throughout the workbook — making it easy to match corporate branding or change the look of a report in seconds.
| Component | Controls | How to Change Independently |
|---|---|---|
| Theme Colors | The 10 base colours used throughout the workbook — the colour palette that appears in Font Color, Fill Color, and chart colour pickers | Page Layout → Themes → Colors → choose a preset or Customize Colors… to enter specific hex codes for all 10 slots |
| Theme Fonts | Two fonts: the Heading font and the Body font. Used by Cell Styles for headings and body text. | Page Layout → Themes → Fonts → choose a font pair or Customize Fonts… |
| Theme Effects | The visual style applied to shapes and SmartArt (shadows, glows, bevels, etc.) | Page Layout → Themes → Effects |
Conditional Formatting automatically applies formatting to cells based on their value or content — highlighting cells that meet specific criteria without any manual action. It is covered in full in Module 24; this section introduces the concept and the most commonly used options.
The most frequently used conditional formatting — highlights cells based on their value:
| Rule | Highlights cells where… | Example Use |
|---|---|---|
| Greater Than | Value is greater than a specified number | Highlight all sales above R50,000 in green |
| Less Than | Value is less than a specified number | Flag all stock levels below 10 units in red |
| Between | Value falls between two numbers | Highlight scores between 50% and 74% in yellow (borderline pass) |
| Equal To | Value exactly matches | Highlight all cells containing "Overdue" |
| Text that Contains | Cell text contains a specified string | Highlight all rows where the Status column contains "Late" |
| A Date Occurring | Date falls in a specific period (today, this week, last month, etc.) | Highlight all deadlines that fall this week in orange |
| Duplicate Values | Value appears more than once in the range | Find duplicate ID numbers or entries in a list |
Format as Table (also called "Excel Table") converts a data range into a structured Excel Table with automatic formatting, filtering, sorting, and formula capabilities built in. It is the fastest way to make a data range look professional while also gaining powerful analytical features. Excel Tables are covered in full in Module 9; this section covers the formatting aspect.
Q1: A financial report shows a grand total row. What two types of border formatting are standard accounting convention for a grand total, and how do you apply them?
✓ The accounting convention for a grand total uses: (1) a single thin top border to indicate "sum of the values above" and (2) a double bottom border (Bottom Double Border) to signal the final figure. Apply by selecting the total row cells → Home → Font → Borders dropdown → Bottom Double Border for the double underline. For the top border: Borders dropdown → Top and Bottom Border — or use Format Cells (Ctrl+1) → Border tab → set the top border to a thin solid line and the bottom to a double line precisely.
Q2: A cell contains the value 0.15 and you want it to display as 15.00%. What number format do you apply, and what would happen if you entered the number 15 and then applied the same format?
✓ Apply the Percentage format with 2 decimal places: select the cell → Home → Number → Percentage (%) → then click Increase Decimal twice to get 2 decimal places (or Ctrl+1 → Number → Percentage → set Decimal places: 2). The value 0.15 displays as 15.00%. If you entered 15 and applied the same format, it would display as 1500.00% because Percentage format multiplies by 100 — 15 × 100 = 1500. The correct practice is to always store percentages as their decimal equivalent (0.15 for 15%) and let the Percentage format handle the display.
Q3: You want to create a custom number format that shows Rand amounts as "R 1,500.00" for positive values, "(R 250.00)" in red for negative values, and a dash for zero. Write the custom format code.
✓ The four-section custom format: "R "#,##0.00;[Red]"(R "#,##0.00")";"—". The first section (before the first semicolon) formats positive values as R 1,500.00. The second section formats negative values in red with brackets around them. The third section replaces zero with a dash. Apply via Ctrl+1 → Number tab → Custom → paste the code into the Type field → OK. This is the standard accounting/financial display format used in SA corporate reporting.
Q4: Your company wants all spreadsheets to use a specific shade of dark green (#1A4D1A) as the corporate colour and Calibri as the corporate font. How do you set this up so it can be applied to any workbook with one click?
✓ Create a custom theme: (1) Page Layout → Themes → Colors → Customize Colors → update the relevant colour slots with #1A4D1A → name the colour set "Corp Colors" → Save. (2) Page Layout → Themes → Fonts → Customize Fonts → set both Heading and Body fonts to Calibri → name "Corp Fonts" → Save. (3) Page Layout → Themes → Save Current Theme → name "Corp Theme" → Save. Share the .thmx file with colleagues. Anyone who places this file in their Document Themes folder can apply it via the Themes gallery with one click, and all theme-aware colours and fonts update throughout the workbook.
Q5: You have a sales spreadsheet with revenue figures in column C (C2:C200). You want all cells where the revenue is below R10,000 to automatically highlight in red. How do you set this up?
✓ Select C2:C200 → Home → Conditional Formatting → Highlight Cells Rules → Less Than → type 10000 in the value field → in the format dropdown, choose "Red Fill with Dark Red Text" (or choose "Custom Format…" to create a specific red background) → click OK. Any cell in C2:C200 where the value is less than 10000 immediately displays with a red highlight. The formatting is dynamic — if a value rises above R10,000, the red formatting disappears automatically without any manual intervention.
Q6: What is the difference between using the "Total" Cell Style and applying bold + border formatting manually to a total row?
✓ The "Total" Cell Style is a defined, named style that applies a complete set of coordinated formatting (bold font, top and double bottom border, specific size) in one click. The key advantage: if you later modify the "Total" Cell Style definition (right-click style → Modify), every cell using that style throughout the entire workbook updates simultaneously. Manual bold+border formatting is unlinked — you must find and reformat each total row individually if the design changes. For workbooks with many total rows, Cell Styles provide major maintenance advantages. Additionally, Cell Styles from one workbook can be merged into another workbook via Home → Cell Styles → Merge Styles, making it easy to apply a consistent look across multiple files.