| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order date | Result | ||||||||||||
| 2 | 15/01/2024 | 2024 | ||||||||||||
| 3 | 20/02/2023 | |||||||||||||
| 4 | ||||||||||||||
| 5 | ||||||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in B2.
- gives 2023
The same for the second order.
- gives 1
Subtracting years gives the gap in calendar years.
- gives 1
MONTH does the same for the month.
Common mistakes
- A date stored as text gives a #VALUE! error. Real dates line up on the right of their cells.
- Working out an age by subtracting years. Someone born in December is not a year older in January; use DATEDIF.
- Formatting a cell to show only the year. That changes how it looks, but the full date is still there.
Practise it
Pull the year out of a date →Related functions