Formula Errors

How to Add Static Date and Time Stamps in Excel When a Cell is Filled

Algirdas JasaitisAlgirdas Jasaitis Oct 28, 2026 868 views

Question details

The user wants to automatically insert a static date and time stamp in one cell immediately after another cell is filled, without the timestamp updating later.

How to Add a Static Date and Time Stamp When a Cell is Filled in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Setting up a data entry tracker or log where the exact time of entry needs to be recorded automatically upon filling a cell.
Observed behavior
Standard TODAY() and NOW() functions are volatile and constantly recalculate, which causes the original timestamps to be overwritten whenever new data is entered elsewhere in the worksheet.
Before you start

Ensure you know which column will receive the data input and which column will store the timestamps, as setting up self-referencing formulas incorrectly without proper settings can trigger circular reference warnings.

Solution 1Recommended

Enable Iterative Calculation and Use a Circular Reference Formula

By turning on iterative calculation in Excel's settings, you allow formulas to refer to their own cells safely, which stops the NOW() function from constantly updating.

To preserve the original time a cell was filled, you must use a self-referencing IF formula. By default, Excel blocks formulas from referring to their own cell (a circular reference). Enabling 'Iterative calculation' bypasses this restriction so the timestamp can lock itself once created.

1
Open Excel Options

Click on the 'File' tab in the top-left corner of the Excel ribbon, then select 'Options' at the very bottom of the menu.

2
Enable Iterative Calculation

In the Excel Options dialog box, click on the 'Formulas' category on the left pane. Check the box next to 'Enable iterative calculation' under the Calculation options section. Click 'OK' to save.

3
Enter the Self-Referencing Formula

Select the cell where you want the timestamp (e.g., B2). Assuming your data entry cell is A2, type the formula: =IF(A2<>"", IF(B2="", NOW(), B2), "") and press Enter.

4
Format the Timestamp Cell

Right-click the timestamp cell (B2), select 'Format Cells', and choose the 'Custom' category. Enter a format like 'm/d/yyyy h:mm AM/PM' and click 'OK'.

Enable Iterative Calculation and Use a Circular Reference Formula
Formula Explanation: The formula checks if A2 is filled. If it is, it then checks if B2 (itself) is currently empty. If empty, it inserts the current time using NOW(). If B2 already has a time, it simply returns its existing value (B2), preventing any future updates.
WPS Spreadsheet Solution

Automatically Add Timestamps with WPS Spreadsheet

WPS Office provides a highly capable Spreadsheet application that fully supports iterative calculations and complex formulas. You can easily set up static date and time stamps for your tracking sheets at no cost.

  1. 1. Open WPS Spreadsheet Options: Launch WPS Spreadsheet. Click the 'Menu' button in the top-left corner and select 'Options'.
  2. 2. Turn on Iteration: Navigate to the 'Calculation' tab in the Options window. Check the box for 'Iteration' to allow circular references, then click 'OK'.
  3. 3. Apply the Timestamp Formula: In your target timestamp cell, enter the self-referencing IF formula (e.g., =IF(A2<>"", IF(B2="", NOW(), B2), "")) to automatically lock in the exact entry time.
Fully supports iterative calculations and self-referencing formulas.Complete format compatibility with Microsoft Excel (.xlsx, .xls) files.Free, lightweight, and features a familiar user interface for a seamless transition.Includes built-in custom cell formatting for precise date and time displays.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel timestamp keep changing to the current time?

Functions like NOW() and TODAY() are 'volatile'. This means they recalculate and update to the current system time whenever any change is made anywhere in the workbook. To make them static, you must use self-referencing formulas with iterative calculation enabled, or use VBA.

What is a circular reference warning in Excel?

A circular reference occurs when a formula directly or indirectly refers to its own cell. By default, Excel shows a warning because this can cause infinite calculation loops. However, intentionally using a circular reference with 'Iterative calculation' enabled is the standard way to create static timestamps without macros.

Is there a keyboard shortcut to insert a static date and time?

Yes. If you prefer to enter stamps manually rather than using automated formulas, you can select a cell and press Ctrl + ; (semicolon) to insert the current date. To insert the current time, press Ctrl + Shift + ;.

Will my static timestamp formula update if I delete and re-enter the data?

Yes. If your formula is set up correctly (e.g., =IF(A2<>"", IF(B2="", NOW(), B2), "")), clearing the contents of cell A2 will reset the formula. When you enter new data into A2, a brand new timestamp will be generated and locked in.