Excel Name Sheet with Date: 3 Easy Ways
In this article
To name an Excel sheet with the current date, you can use a simple formula, a keyboard shortcut, or a quick VBA macro. The fastest no-code method is to copy a date into the sheet name box, but for an auto-updating name, you'll need a formula or a tiny script. This article walks through each approach, explains how they work, and helps you choose the right one for your workflow.
Why Put a Date in a Sheet Name?
Adding a date to a sheet tab is a common way to track versions, daily logs, or project milestones. It makes files easier to scan, especially when you have many tabs. For example, a sales tracker might have tabs named Sales 2025-03-14 or Report Mar 14. The date tells you at a glance which data is current, and it helps avoid overwriting older sheets.
There are two main scenarios: you want a static date (the day the sheet was created) or a dynamic date (updates to today's date every time you open the file). Each method below handles one or both.
Method 1: Manual Rename with a Typed Date
The simplest way is to type the date directly into the sheet tab name. Right-click the tab, choose Rename, then type something like 2025-03-14 or Mar 14. This is a static date—it won't change.
To speed this up, you can use a shortcut:
- Press Alt + H + O + R (this opens the Rename dialog on the ribbon).
- Type the date in your preferred format.
- Press Enter.
If you want the date to match today's date automatically, you can type =TODAY() in a cell, copy that cell, then paste it into the sheet name box. Excel will convert it to the actual date string. But note: this is still static—it won't update later.
Method 2: Formula to Create a Dynamic Date Name
Excel does not allow a formula directly in a sheet name. However, you can use a helper cell with =TODAY() and then reference it in a macro to rename the sheet. For a purely formula-based approach without VBA, you can't have a truly dynamic tab name. The closest is to use a cell that displays the date and then manually copy that cell into the tab name.
If you need the tab to update automatically, you'll need a tiny VBA macro. Here's a simple one that renames the active sheet to the current date:
- Press Alt + F11 to open the VBA editor.
- Go to Insert > Module.
- Paste this code:
Sub RenameWithDate()
ActiveSheet.Name = Format(Date, "yyyy-mm-dd")
End Sub
- Close the editor, then run the macro (Alt + F8, select it, Run).
This renames the active sheet to the current date in ISO format (e.g., 2025-03-14). To make it run automatically when the workbook opens, you can put a similar line in the Workbook_Open event, but that requires saving as a macro-enabled workbook (.xlsm).
How to Choose the Right Method
Your choice depends on how often the date should update and whether you're comfortable with macros.
- Static date, one-time: Manual typing or copy-paste from a cell. Fast, no setup.
- Static date, but you want it formatted: Use a cell with
=TEXT(TODAY(),"mmm dd")then copy that cell into the tab name. - Dynamic date (updates daily): Use a VBA macro that runs on open. This requires saving as .xlsm and enabling macros.
For most users, a static date is fine. If you're building a template for others, a macro might be overkill and can trigger security warnings.
Common Problems and How to Avoid Them
Sheet names have strict rules: they can't contain : \ / ? * [ ], and they can't be blank or duplicate another sheet name. Dates formatted with slashes (e.g., 03/14/2025) will fail because slashes are not allowed. Always use hyphens, underscores, or spaces.
Another issue: if you have many sheets, renaming with the same date will cause an error because names must be unique. You can add a suffix like 2025-03-14 (2).
If you use the VBA macro, remember that Excel might block macros for security. You'll need to trust the file or enable content. Also, the macro will overwrite any existing name—so don't run it on a sheet you've already named something else.
Excel vs. Google Sheets: Date in Tab Name
Google Sheets has a similar limitation: you can't put a formula in a tab name. However, you can use Google Apps Script to rename tabs dynamically. The script triggers on open or on edit, and it uses SpreadsheetApp.getActiveSheet().setName(). This is more accessible than Excel's VBA because it runs in the cloud and doesn't require saving as a special format.
For a one-off rename, both platforms allow manual typing. The main difference is that Google Sheets' script editor is web-based, while Excel's VBA is desktop-only. If you collaborate online, Google Sheets might be easier to automate.
Frequently Asked Questions
Can I use a formula like =TODAY() in a sheet name?
No, Excel does not allow formulas in sheet names. You can use a formula in a cell, then copy the result into the name box, but it won't update automatically. For automatic updates, you need a VBA macro.
Why does my date name show as ##### in the tab?
That happens when the tab is too narrow to display the full name. Hover over the tab, right-click, and choose Tab Color? No—actually, you can widen the tab by dragging the separator between tabs, or simply rename it to a shorter date format like Mar-14.
How do I add a date that updates every day without VBA?
You can't. Without VBA or Office Scripts, the tab name is static. You can use a cell with =TODAY() as a visible date on the sheet, but the tab name won't change automatically.
Is there a way to batch rename multiple sheets with dates?
Yes, you can write a VBA loop that renames each sheet with a date plus an index. For example, For i = 1 To Sheets.Count: Sheets(i).Name = Format(Date, "yyyy-mm-dd") & "_" & i: Next i. This ensures unique names.
What date format is best for sheet names?
Use ISO 8601 format (YYYY-MM-DD) because it sorts alphabetically and chronologically. Avoid slashes and spaces if you plan to use the name in formulas or references. Hyphens are safe.