Make a date stamp for a filename
Turn November 4, 2026 into 20261104 for file names. Missing dates stay blank.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | OR(A8="",A8=0) | Checks for an empty cell or a 0 placeholder. | No |
| 2 | A8 | The real date. | November 4, 2026 |
| 3 | "yyyymmdd" | The pattern: 4-digit year, 2-digit month, 2-digit day. | "yyyymmdd" |
| 4 | TEXT( … ) | Writes the date in that pattern as text. | "20261104" |
| 5 | IF( … ) | Leaves the cell blank if part 1 says yes. | "20261104" |
Read it left to right. Without part 1, a 0 would show as a date in 1900.
=IF(OR(A8="",A8=0),"",TEXT(A8,"yyyymmdd"))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own dates. Paste real dates into the green column of the Template tab. The date stamps fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
The stamp is text, not a date. Keep your date column for date sums.
Microsoft's help: TEXT function
OTHER ROUTES YOU MIGHT LIKE

Write a readable month and year
November 4, 2026 → November 2026
Get the template →
Combine a name and date of birth
Ava Reed + November 4, 2026 → Ava Reed (DOB: 11/04/2026)
Get the template →
Write a date range without repeats
December 31, 2026 to December 31, 2026 → December 31, 2026
Get the template →
Show a letter date as November 5, 2026
11/5/2026 → November 5, 2026
Take this route →