Group & Outline

Fold a big worksheet into its story — a self-study lesson you can turn around and teach.

🌏 Top End Cyber Pulse 🏜️ Alice Springs Cyber Pulse
§ Intro

How this deck works

Driving it

Click (or / Space) — build the current slide one step at a time, then move on
— undo one step, then one slide
E — edit any text in place (Ctrl+S saves a copy)
Rail (left) — jump between the 7 sections

The colour key — memorise this

Amber — the rows, columns or dialog fields we're selecting
Green — the subtotal and summary rows that come back
Blue — results, grand totals and the level buttons
Try it now — click anywhere to light up a cell ▸
One click = one build step. That's the whole trick.
§ Intro

Prerequisite knowledge

✔ SUM and cell ranges

=SUM(C2:C4)

This lesson assumes you can write a basic SUM over a range of cells, and read a reference like C2:C4 — "column C, rows 2 to 4".

✔ Sorting with Data ▸ Sort

Data ▸ Sort & Filter ▸ A→Z

Subtotals only work on data sorted by the grouping column. You'll need to know how to sort a table by one column for this part — if that's unfamiliar, pause here, look it up, and come back.

§ Intro

Meet the two datasets

NT Cyber Pulse 2026 — a door-to-door survey of 3,895 Territorians: what device they carry, and how they look after their accounts. One skill, two worlds — if you can fold both sheets, you actually understand it. (All numbers are synthetic, built for practice.)

🌏 Top End — 9 suburbs, 3 councils, 2,995 people
🏜️ Alice Springs — 3 suburbs × 3 age bands, 900 people

Full sheet also counts Android / iPhone / no-device owners and low cyber-awareness scores.

Keep an eye on Shares pwd and No MFA — those columns are hiding a worrying story we'll surface later.
§ The old way

The old way: build every total by hand

Before outlines, a "summary" meant this: insert a blank row after each council block, label it, and type a SUM for every column. Watch how much typing that is — for just 9 rows of data.

insert a blank row after the block, and label it by hand type a SUM for the block above — count the row numbers carefully now repeat for every column of every block — twelve formulas, each with its own hand-picked range and it's all fragile: insert one row and the ranges go stale — plus nothing folds away
§ The old way

The five pains of the hand-built summary

Every one of these is familiar to anyone who has wrangled a long sheet. None of them are your fault — and every one has a fix waiting in this deck.

Buried summary

The totals live somewhere in a sea of detail rows. Scrolling and squinting is the interface.

→ Collapse fixes this

Hand-rolled ranges

Every =SUM(C2:C4) was counted by eye — and goes stale the moment rows move.

→ The Subtotal dialog fixes this

Double counting

Sum a whole column that already contains total rows and everything is counted twice.

→ SUBTOTAL fixes this

Invisible hiding

Hiding rows by hand leaves no visible trace of what's hidden, or where, or how to bring it back.

→ Outline symbols fix this

Copy grabs everything

Copy your tidy collapsed "summary" and the hidden detail rows ride along into the paste.

→ Go To Special fixes this
§ Group & fold

Anatomy of an outline

An outline is Excel folding your rows into levels, like a paper map: level 1 is the whole Territory in one line, level 2 shows a line per council, level 3 opens the full detail. The controls live in a strip down the left edge of the grid — here's every part of it.

1 Level buttons

1 = grand total only · 2 = council totals · 3 = every row. One click sets the whole sheet's zoom level.

2 Brackets

Each vertical bar spans one group's detail rows — you can see what belongs together, and what's currently folded.

3 Fold buttons

The sits beside each group's summary row. Click it to fold that group; it becomes a + that unfolds it.

4 A folded view

Level 2: three council lines and a grand total. The 9 detail rows are hidden, not deleted — the row numbers still jump 2 → 6.

§ Group & fold

Group, one action at a time

Grouping draws one bracket. You pick the detail rows — not their summary row, and not the header — and tell Excel they belong together. We've already added the summary rows here; the smart way to fill them comes next section.

FileHomeInsertFormulasDataReviewView
Group ▾
Ungroup ▾
Subtotal
Outline
Keyboard: Alt+Shift+ groups the selected rows in one hit
select the three Darwin detail rows — leave the Darwin Total row out of it one command: Data ▸ Outline ▸ Group asked Rows or Columns? Rows. (Select entire rows first and this dialog never appears) the bracket lands: a bar over the details, a beside their summary row
§ Group & fold

Fold, unfold, and the level buttons

All three councils are grouped now. This is where the outline pays rent: the same sheet can be a one-line answer, a three-line report, or the full detail — and switching between them is one click, not ten minutes of hiding rows.

Level buttons work the whole sheet at once — no hunting for individual buttons.
Per group, the keyboard does it too: Alt+Shift+= show detail · Alt+Shift+ hide detail
click the beside Darwin Total → three rows fold into one. Hidden, not gone the became a + — click it and the detail comes straight back press level button 2 → every group folds at once: totals only press 3 → the full detail returns. Flip views as fast as you can click
§ SUBTOTAL()

SUBTOTAL, one argument at a time

The summary rows need formulas, and there's a purpose-built function for the job. It takes just two things: what to do, and which rows to do it to.

=SUBTOTAL(9, C2:C4)
what to do — 9 means SUM. (The full menu of numbers comes in two slides) which rows — just this block's detail: Casuarina down to Nightcliff the block's total lands in the summary row drag it across and label the row — every column gets a live block total
§ SUBTOTAL()

Why not SUM? The grand-total trick

The grand total has a problem: the range under it now holds detail rows and three council totals. Point a formula at the whole column and here's what each function does with it.

C15=SUM(C2:C13)  →
C15=SUBTOTAL(9, C2:C13)  →
SUM counts the detail rows and the subtotal rows — every person twice SUBTOTAL quietly skips any other SUBTOTALs inside its range… …so the grand total is right: 2,995 people, counted once
One habit to build: inside grouped data, totals are always SUBTOTAL, never SUM. Bonus: it also ignores rows hidden by filtering.
§ SUBTOTAL()

function_num — what to do at each cut

The first argument picks the calculation. Same formula shape every time — only the number changes. These are the ones worth memorising:

9
SUMTHE WORKHORSE
how many people, how many passwords shared — most totals are this
1
AVERAGE
the mean per suburb — e.g. average respondents per age band
2
COUNT
how many numeric entries a block has — a quick row-tally per group
4
MAX (5 = MIN)
the worst suburb in the block — the biggest No-MFA count
+100
109, 101, 102…
same jobs, but they also ignore rows you've hidden by hand — not just filtered ones
§ The Subtotal dialog

Before the shortcut: sort first

Everything so far, Excel can do for you — one dialog inserts every summary row, every formula and the whole outline. But it cuts a new subtotal every time the grouping value changes, so the same council scattered through the sheet gets several totals. One rule protects you.

✗ unsorted — Darwin appears twice, so Darwin gets two totals
✓ sorted by Council — one block, one total
The rule: sort by the grouping column (DataSort) before opening the Subtotal dialog.
§ The Subtotal dialog

The Subtotal dialog, one field at a time

Data ▸ Outline ▸ Subtotal opens one small dialog. Three questions — where to cut, what to calculate, which columns — and it does everything from the last three sections in one hit.

Subtotal
At each change in:
Council
Use function:
Sum
Add subtotal to:
Surveyed
Android
iPhone
No device
Shares pwd
No MFA
Replace current subtotals
Page break between groups
Summary below data
where to cut — every time the Council value changes, insert a subtotal what to calculate at each cut — Sum which columns get a total — tick the three we care about totals go below each block — then OK summary rows, formulas, grand total, brackets, level buttons — one dialog did all of it
§ The Subtotal dialog

Press 2. Read the Territory's story.

Collapsed to level 2, the 2,995-person survey becomes four lines — and the folded sheet says something the full detail never could say this clearly.

42%
of respondents share a password with someone else — 1,260 of 2,995
56%
have no multi-factor authentication on a single account — 1,689 people
More than half the Top End sample could be phished with one stolen password. That's what a folded worksheet is for.
read down Shares pwd: 540 + 337 + 383 — 1,260 people share passwords read down No MFA: 1,689 people — and every council is over half four rows, one headline. Show this view to a room, not the 2,995-row one
§ The Subtotal dialog

Same move, new world: Alice Springs

The Alice sheet is shaped differently — each suburb has three age-band rows. The dialog doesn't care. Sort by Suburb, cut at each change in Suburb, and the outline appears. Then look inside the blocks.

Subtotal dialog: at each change in Suburb · use Sum · add to all four number columns
Every suburb tells the same story — now read just the 60+ rows…
206 of the 250 respondents aged 60+ have no MFA — 82%. The over-60s are the survey's most exposed group, in every suburb. This is the slide-ready finding.
same dialog, one change: cut at each change in Suburb three suburb totals and a grand total — outline included, as always the outline groups by suburb, but the detail rows still carry the age bands read across the 60+ rows: 69, 78, 59 without MFA — out of just 250 older respondents
§ The Subtotal dialog

Layer it, replace it, remove it

Three checkboxes and one button control the dialog's whole life cycle. Run it more than once and this is what decides what happens to the subtotals you already have.

1 Layer another level

Run Subtotal again with Replace current subtotals unticked — e.g. cut Alice by Suburb, then again by Age band. The new totals nest inside the old ones: a four-level outline, with level buttons 1–4.

2 Start over

Leave Replace current subtotals ticked and the new pass swaps out the old one — handy when you picked the wrong column or function.

3 Take it all away

Remove All deletes the inserted subtotal rows and clears the outline. Your original data comes back untouched — the whole thing was always just a layer on top.

Subtotal
At each change in:
Age band
Replace current subtotals
Summary below data
§ Beyond rows

Columns fold too

Rows aren't special. Here's a different cut of the survey world: phishing reports logged in each regional hub, month by month, with a quarterly total column after each block of months. Group the month columns and the bracket appears above the letters.

select the January–March columns — entire columns, from the letters Data ▸ Outline ▸ Group → the bracket runs above the columns. Same again for April–June fold both → a quarter view, and the folded sheet makes the trend impossible to miss
Q1 → Q2: phishing reports up 41% Territory-wide — and rising in every hub.
§ Beyond rows

Auto Outline: one click, whole structure

If your summary rows already contain formulas — SUBTOTAL or SUM pointing at the detail above them — Excel can read that structure. It follows the formulas to work out which rows belong to which total, and draws every bracket for you.

HomeInsertFormulasDataReview
Group ▾
Ungroup ▾
Subtotal
Outline
Auto Outline works when the formulas point consistently at their own detail block — which SUBTOTAL rows from the Subtotal dialog always do. Formula columns get column outlines the same way.
the summary rows hold =SUBTOTAL(9,…) formulas — so choose Group ▾ ▸ Auto Outline every bracket, every button, all three levels — from one click and zero selecting
§ Beyond rows

Copy only what you see

The folded view looks like four rows — but a normal copy takes the hidden detail rows along with it, and your tidy summary arrives with 9 stowaways. One old dialog fixes it.

…then copy and paste: clean summary, no stowaways
select the visible summary rows — remember, 9 hidden rows are lurking inside this selection Go To Special ▸ Visible cells only trims the selection to what's on screen the paste holds exactly the four rows you could see. This trick works on any sheet with hidden rows
§ Beyond rows

Taking it apart again

Three exits, from gentlest to most thorough. The thing to hold onto: an outline is a view laid over your data — none of these delete a single survey answer.

1 Ungroup one bracket

Select the grouped rows ▸ Data ▸ Outline ▸ Ungroup (or Alt+Shift+). Removes that bracket only — totals and other groups stay.

2 Clear Outline

Ungroup ▾ ▸ Clear Outline wipes every bracket and level button at once. Careful: clear while groups are folded and those rows stay hidden — fix with Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows.

3 Subtotal ▸ Remove All

The deepest reset: clears the outline and deletes the subtotal rows the dialog inserted. The sheet returns to the raw 9 rows you started with.

HomeInsertFormulasDataReview
Group ▾
Ungroup ▾
Subtotal
Outline
§ Teach it

The cheat sheet — screenshot this one 📸

The workflow 1 Sort by the grouping column  →  2 Data ▸ Outline ▸ Subtotal  →  3 Fold with the level buttons  →  4 Go To Special ▸ Visible cells only ▸ copy

SUBTOTAL(n, range)

9SUM — the workhorse
1AVERAGE
2COUNT
4·5MAX · MIN
+100also skip hand-hidden rows

Keyboard

Alt+Shift+→Group selection
Alt+Shift+←Ungroup selection
Alt+Shift+=Show a group's detail
Alt+Shift+−Hide a group's detail

Remember

  • Sort before the Subtotal dialog
  • Inside grouped data: SUBTOTAL, never SUM
  • The − button sits at the summary row
  • Level 1 grand · 2 groups · 3 detail
  • Remove All undoes everything, safely
  • Folding hides rows — never deletes them
rows / fields we select
subtotal rows that come back
results & level buttons
works in every desktop Excel · Subtotal needs a plain range, not a Table
§ Teach it

When it goes wrong — the six usual suspects

Subtotal is greyed out

Your data is formatted as an Excel Table — the Subtotal command refuses to run on one.

Fix: Table Design ▸ Convert to Range, then try again.

"Darwin Total" ×2

The data wasn't sorted, so the same council appears in separate runs — each run gets its own total.

Fix: Remove All, sort by the grouping column, re-apply.

Grand total is double

A SUM was pointed at a range that already contains subtotal rows — everything counted twice.

Fix: use =SUBTOTAL(9, …) — it skips other SUBTOTALs automatically.

Rows vanished

The outline was ungrouped or cleared while groups were folded — the detail rows stayed hidden.

Fix: select across the gap ▸ Home ▸ Format ▸ Hide & Unhide ▸ Unhide Rows.

No + − symbols

The outline exists but the symbols are switched off for this worksheet.

Fix: File ▸ Options ▸ Advanced ▸ tick "Show outline symbols if an outline is applied".

Golden rule

Almost every mess traces back to the workflow order: sort → Subtotal → fold → copy visible. Re-run it in that order and the sheet heals.

§ Teach it

Now teach it

Your six talking points

  1. An outline folds rows into levels — hidden, never deleted. Level 1 grand · 2 groups · 3 detail.
  2. Two ways in: Group draws the brackets yourself; the Subtotal dialog draws them and writes the totals.
  3. Sort first — the dialog cuts at every change in the grouping column.
  4. Totals inside grouped data are SUBTOTAL(9,…), never SUM — they skip each other, so nothing double-counts.
  5. The − button lives at the summary row; level buttons fold the whole sheet at once.
  6. Copy a folded view with Go To Special ▸ Visible cells only.

Three challenges — click to reveal each answer

① Top End · Rows 2–13 hold detail and three council totals. What goes in the grand-total row so nobody is counted twice?
=SUBTOTAL(9, C2:C13) → 2,995 — SUM would say 5,990
② Alice Springs · You want subtotals by Age band instead of Suburb. What has to happen before the dialog opens?
Sort by Age band → then Subtotal ▸ At each change in: Age band
③ The whole sheet is open at full detail. Show only the council totals and the grand total — in one click.
Press level button 2 → every group folds at once

If you can fold 2,995 rows into the four that matter, you own it.

editing — click any text · Ctrl+S saves a copy · E to exit