Excel Insert Date and Time Stamp: 5 Ways
In this article
- Why You Need a Date and Time Stamp
- Static vs. Dynamic Stamps: What’s the Difference?
- How to Insert a Static Date and Time Stamp
- How to Insert a Dynamic Date and Time Stamp
- Using Formulas to Create a Timestamp When a Cell Changes
- Formatting and Troubleshooting Common Issues
- Alternatives: Auto-Insert with VBA or Power Query
- Frequently Asked Questions
To insert a date and time stamp in Excel, use the keyboard shortcuts Ctrl+; for the current date and Ctrl+Shift+; for the current time. For a static stamp that never changes, these shortcuts are the fastest method; for a dynamic stamp that updates, use the TODAY() and NOW() functions.
Why You Need a Date and Time Stamp
Date and time stamps are essential for tracking when data was entered, when a file was last modified, or when a transaction occurred. Without a stamp, you lose the chronological context that makes spreadsheets reliable for audits, project timelines, and personal records. Excel offers several ways to insert these stamps, each suited to different needs—some remain fixed, others update automatically, and some can be triggered by actions like opening the file or changing a cell.
Static vs. Dynamic Stamps: What’s the Difference?
A static stamp is a fixed value—once entered, it does not change. This is ideal for recording when you actually typed the data. A dynamic stamp recalculates every time Excel recalculates the workbook (e.g., when you open it or change any cell). Dynamic stamps are useful for showing “last updated” times, but they can mislead if you need an exact entry time.
- Static date:
Ctrl+;(orCtrl+Shift+;for time) - Static date and time: Press
Ctrl+;, then space, thenCtrl+Shift+; - Dynamic date:
=TODAY()returns today’s date. - Dynamic date and time:
=NOW()returns the current date and time.
How to Insert a Static Date and Time Stamp
To insert a fixed timestamp, use the keyboard shortcuts. They are the simplest and most reliable method.
- Select the cell where you want the stamp.
- Press
Ctrl+;(semicolon) to insert the current date. - Press
Ctrl+Shift+;to insert the current time. - To insert both, press
Ctrl+;, then a space, thenCtrl+Shift+;.
The result is a static value—it will not change when you reopen the file or edit other cells. This is perfect for entry logs, invoices, or any record where the exact moment matters.
How to Insert a Dynamic Date and Time Stamp
Dynamic stamps update automatically. Use them when you want to show the current date/time every time the sheet recalculates.
- TODAY() returns the current date (no time).
- NOW() returns the current date and time.
For example, if you type =NOW() in cell A1, it will show the date and time at the moment of calculation. If you save and reopen the file tomorrow, it will show tomorrow’s date and time (unless calculation is set to manual). To force a manual recalculation, press F9.
Using Formulas to Create a Timestamp When a Cell Changes
You can create a timestamp that updates when a specific cell is edited, using a circular reference with iteration enabled. This is a common trick for audit trails.
- Go to File > Options > Formulas and check Enable iterative calculation. Set Maximum Iterations to 1.
- In cell B1, enter:
=IF(A1="","",IF(B1="",NOW(),B1)) - Now, whenever you enter data in A1, B1 will show the date and time of that entry. It will not change unless you clear A1 and re-enter.
This formula checks if A1 is empty; if not, it checks if B1 is empty—if so, it sets B1 to NOW(), otherwise it keeps the existing value. This creates a static timestamp that updates only when the input cell changes.
Formatting and Troubleshooting Common Issues
Sometimes the stamp appears as a number (e.g., 45213.5) instead of a date. That’s because Excel stores dates as serial numbers. To fix this, apply a date/time format:
- Select the cell(s) with the stamp.
- Press
Ctrl+1to open Format Cells. - Under the Number tab, choose a date or time format (e.g.,
mm/dd/yyyy hh:mm).
If your shortcut doesn’t work, ensure NumLock is off (for some keyboards) or that you’re using the semicolon key correctly. Also, check if the cell is formatted as Text—if so, the shortcut may insert a text string that doesn’t update.
Alternatives: Auto-Insert with VBA or Power Query
For more control, you can use a simple VBA macro to insert a static timestamp when a cell is double-clicked or when a workbook opens. For example, in the worksheet module, add:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
Target.Offset(0, 1).Value = Now
End If
End Sub
This automatically stamps the cell to the right of any change in A1. Power Query can also add a timestamp column when loading data, but that’s more for data transformation than manual entry.
Frequently Asked Questions
How do I insert a date that doesn’t change?
Use the keyboard shortcut Ctrl+; for date and Ctrl+Shift+; for time. These insert static values that remain fixed even after recalculation.
Why does my date show as a number?
Excel stores dates as serial numbers. To display them as dates, select the cell, press Ctrl+1, and choose a date format under the Number tab.
Can I make a timestamp update automatically?
Yes, use the =NOW() function. It updates every time the worksheet recalculates (e.g., when you open the file or change a cell).
How do I add a timestamp when a cell is edited?
Use a circular reference formula with iterative calculation enabled, as shown above, or use a VBA macro to automatically stamp the date/time in a specific cell when another cell changes.
What’s the difference between TODAY() and NOW()?
TODAY() returns only the current date (e.g., 6/15/2025). NOW() returns both the date and the current time (e.g., 6/15/2025 14:30).
Can I insert a timestamp in multiple cells at once?
Yes, select the range of cells, then press Ctrl+; to fill all selected cells with the same static date. For separate times, you’ll need to enter them individually or use a formula.