Cut the year, month and day out of a text code and rebuild a real date.
The bank file writes each value date as eight digits, such as 20240315. In B2:B6 turn each code into a real date.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
Create dates from year, month, and day components.
Month 13 is January of the next year — DATE does the calendar arithmetic for you.
Cut the year, month and day out of a text code and rebuild a real date.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | |
|---|---|---|
| 1 | Value date (text) | Date |
| 2 | 20240315 | |
| 3 | 20231231 | |
| 4 | 20240229 | |
| 5 | 20240701 | |
| 6 | 20250110 |
Text functions cut the code apart and DATE assembles a real date that can be sorted, subtracted and filtered. DATE quietly converts the text pieces to numbers. Building the date from parts avoids any guessing about whether 03/04 means March or April.