Dates Are Numbers

Why Excel dates sort, subtract and sometimes lie: a self-study lesson for everyday council work.

Works request log Leave planner
§ Intro

How this deck works

Driving it

Click (or / Space) builds the current slide one step at a time, then moves on
undoes one step, then one slide
E edits any text in place (Ctrl+S saves a copy)
Rail (left) jumps between the 7 sections

The colour key, worth memorising

Amber is a cell we're inspecting
Green is a date behaving correctly
Blue is a result
Try it now: click anywhere to light up a cell ▸
One click, one build step. Notice the dates already sitting against the right edge; that detail matters later.
§ Intro

Prerequisite knowledge

Writing a simple formula

=D2-C2

You'll need to be comfortable writing a small formula with cell references for this part. If that's unfamiliar, work through the Your First Formulas deck, then come back.

Format Cells

right-click a cell → Format Cells (Ctrl+1)

You'll need to know that this dialog exists and how to open it. We'll use it to change how a cell is displayed; if you've never opened it, try it once now.

§ Intro

Meet the two datasets

Both sheets live and die by their dates. If you can make dates behave on both, you own this skill; that transfer is the test this deck keeps setting you.

Works request log, five open jobs

5 requests across the communities · logged date and due date for each.

Leave planner, the depot crew

4 staff · start date and days away. The Back column is empty; we'll build it.

§ The reveal

Every date is wearing a costume

Here is the secret this whole deck rests on. Pick a date, any date, and strip its formatting away: right-click, Format Cells, choose General. What's underneath isn't a date at all.

R-205's due date looks like an ordinary date format it as General and the costume comes off: underneath, it's the plain number 46248 put the Date format back; the value never changed, only its outfit did
Right-click the cell → Format Cells → General
46248 is the count of days since 1 January 1900
Formatting changes how a value looks, never what it is
§ The reveal

A counter that started in 1900

Excel numbers every single day. Day 1 was Monday, 1 January 1900, and the counter has ticked up by exactly one per day ever since. That's the entire system; there is nothing else to learn about what a date is.

1 Jan 1900
1
day one, a Monday
2 Jan 1900
2
one day later, one higher
1 Jan 2000
36,526
a century of counting
14 Aug 2026
46,248
R-205's due date
One day = exactly 1. That single fact powers everything on the next few slides.
§ The reveal

Subtract two dates, count the days

Because dates are numbers, ordinary subtraction just works. "How long does each job get?" is one small formula: due date minus logged date. Excel quietly does 46223 − 46209 and hands you the gap in days.

E2=D2-C2
the due date, which is really 46223 minus the logged date, which is really 46209 the answer comes back as a plain number of days fill it down: every job's window, no calendar counting on fingers
§ The reveal

Add days to a date, get a date

It works the other way too. Start plus days away gives the first day back, because adding 7 to a day number lands you exactly one week down the calendar. Let's fill the leave planner's empty column.

D2=B2+C2
the start date, day number 46237 plus 7 days away, plain calendar days 46244 comes back, and it arrives already dressed as a date fill down, and the whole crew's return dates write themselves
Bonus habit: =TODAY() is today's date, always current, so =TODAY()+14 is a fortnight from now, every time you open the file.
§ Sorting

Why real dates sort perfectly

Sort the log oldest to newest and it just works. No magic: Excel is sorting the day numbers, smallest to largest, and the costumes come along for the ride.

the Logged column, sorted oldest to newest here's what Excel actually compared: five plain numbers, ascending costumes back on. Oldest-to-newest was never about dates; it was smallest-to-largest all along.
46209 · 46216 · 46223 · 46230 · 46234, strictly climbing
This is the standard to hold every date column to. Next: what happens when a column can't meet it.
§ Sorting

The impostor: text dressed as a date

Not everything that reads like a date is one. Type 6.7.26 with full stops, or paste dates in from an email or an old system, and Excel shrugs and stores plain text. To your eye they're near-identical. Excel gives you one quiet tell.

real dates snug against the right edge of the cell, like every number does text hugs the left edge. A left-leaning date column is a column full of impostors.
Right-aligned: recognised, counted, a real day number underneath
Left-aligned: just characters. No day number, no maths, no honest sort.
Where impostors come from: full stops instead of slashes, pasted reports, ancient CSV exports.
§ Sorting

What sorting does to text dates

Here's the same five days twice: once as real dates, once as typed text. Sort both ascending. Text sorts like words in a dictionary, character by character, so everything starting with "1" clumps together and August lands before February.

Real dates, sorted
Text, "sorted"
the real column runs December, January, February, March, August: true chronology the text column put 14/8/2026 second and 5/1/2026 last, because "1" < "2" < "5" as characters worst of all, it looks tidy. Nobody notices until a report is built on it.
A date column that sorts strangely isn't "being weird". It's telling you some of its cells are text.
§ Formats

One number, many faces

Since the value and its look are separate, one day number can wear any face you like. Every line below is the same cell, the same 46248, dressed four different ways through Format Cells.

46248
14/08/2026Short date
14-Aug-26d-mmm-yy
Friday, 14 August 2026Long date
Aug-26mmm-yy, for monthly reports
Change the costume as often as you like: right-click → Format Cells → Date (or Ctrl+1). The number underneath never moves, so no maths and no sort will ever break because of a format change.
§ Formats

Typing a date Excel understands

Whether you get a real date or an impostor is decided at the moment you press Enter. The rule on an Australian-set computer: day, month, year, separated by slashes. Then watch which way the cell leans.

14/8/2026
Recognised USE THIS
jumps to the right edge, becomes day number 46248
14/8
Recognised, year assumed
Excel quietly adds the current year; fine for quick entry, check the year
14.8.26
Text impostor
full stops aren't date separators; it stays left, stays useless
Fri 14 Aug ish
Text impostor
anything Excel can't parse is stored as the characters you typed
The after-Enter check: if the entry jumps to the right edge, Excel understood you. If it stays left, you've made text, and now is the cheapest moment to fix it.
§ Formats

Two traps, and the format that never lies

Two quiet ways a typed date can betray you, and the one way of writing dates that survives every computer, every region and every sort, even if it accidentally ends up as text.

3/7/2026: March or July?

On an Australian-set machine that's 3 July. On a US-set machine the same keystrokes mean March 7. Share the file and the meaning can silently flip.

The 1930 surprise

Two-digit years get guessed: 00 to 29 land in the 2000s, 30 to 99 land in the 1900s. Type 14/8/30 and you've written 1930. Always type the full year.

2026-08-14

Year, month, day. Excel reads it correctly in any region, no digit can be misread, and because the biggest unit comes first it even sorts correctly as plain text. The one format that never lies.

For anything that leaves your computer, a shared workbook, an export, a file name, write dates as year-month-day.
§ Repairs

Repairing a column of impostors

You've inherited a sheet and the dates lean left. Here's the drill, from quickest to most thorough.

1

Confirm the diagnosis

Left-aligned entries, a sort that scrambles, or a subtraction that throws #VALUE!: any one of these means text.

2

A few cells: retype

Click the cell, type the date properly with slashes, press Enter, watch it jump right. For a handful of impostors this is the fastest honest fix.

3

A whole column: convert

Select the column, then Data → Text to Columns → Next, Next → Date: DMY → Finish. Excel re-reads every cell as a day-month-year date in one pass.

Then re-sort and re-check the alignment. When the whole column snugs the right edge, the log is trustworthy again.
§ Cheat sheet

The cheat sheet, keep this one

14/08/2026 = 46248 = days since 1 Jan 1900 one day = exactly 1 · the format is only a costume

Date maths

=D2-C2days between two dates
=C2+14a fortnight after C2
=TODAY()today, always current

Typing dates

  • Slashes, not full stops: 14/8/2026
  • Always a four-digit year
  • Shared files: 2026-08-14
  • After Enter it should jump right

The tells

rightreal date, safe to trust
lefttext impostor
sort oddtext lurking in the column
#VALUE!maths touched a text date
cell being inspected
date behaving correctly
result
Format Cells: Ctrl+1 · works in every version of Excel
§ Wrap up

When it goes wrong: the usual suspects

#####

A row of hashes where the date should be. Nothing is wrong with the value; the column is too narrow for the costume.

Fix: double-click the boundary between the column letters.

#VALUE!

A subtraction or addition touched a cell that only looks like a date.

Fix: find the left-aligned impostor and retype it with slashes.

It shows 46248

The maths worked but the answer came out as a plain number: a date that lost its costume.

Fix: the value is right. Ctrl+1, choose a Date format, done.

14.8.26 just sits there

Full stops aren't date separators, so Excel stored your keystrokes as text.

Fix: retype with slashes: 14/8/2026.

The 1930 surprise

A two-digit year of 30 or more quietly lands in the 1900s.

Fix: always type the full four-digit year.

Golden rule

Right-aligned and it recalculates: a real date. In doubt? Subtract the cell from itself: a real date gives 0, an impostor gives #VALUE!.

§ Wrap up

Now teach it

Your six talking points

  1. A date is a day number: the count of days since 1 January 1900.
  2. The format is a costume: it changes the look, never the value.
  3. The alignment tell: real dates lean right, text impostors lean left.
  4. Date maths is plain maths: subtract to count days, add to move deadlines.
  5. Sorting sorts the numbers: which is why text dates scramble.
  6. Type slashes and full years, and use year-month-day for anything shared.

Three challenges, click to reveal each answer

① Works log · How many days did R-203, the Borroloola grader job, get?
=D4-C4 → 21 days
② Leave planner · When is K. Adams back at work?
=B5+C5 → 07/09/2026
③ Diagnosis · A cell shows 6.7.26. What does =A1-A1 return, and why?
#VALUE! → it's text, not a date; a real date would give 0

Underneath every tidy date is a number, counting quietly since 1900. Now you can see it.

Charles Darwin University TAFE | ICT, Cyber Security & Digital
editing — click any text · Ctrl+S saves a copy · E to exit