logo
search
Calculation Issues

How to Create a Static Date Timestamp in Excel with a Formula

Camila MilosovichCamila Milosovich Oct 10, 2026 869 views

Question details

The user needs to automatically insert a date and time timestamp that remains unchanged when another cell is populated, specifically utilizing a formula rather than manual keyboard shortcuts.

How to Create a Static Date Timestamp in Excel with a Formula
Product
Excel
Device & OS
not provided
Scenario
Tracking data entry times or logging activities where an unchanged timestamp is required immediately after entering data into a specific cell.
Observed behavior
By default, time-based formulas update continuously. The goal is to generate a static date timestamp using a self-referencing formula to preserve the original entry time.
Before you start

Before applying the static timestamp formula, ensure you have enabled iterative calculations in your spreadsheet settings, as this method relies on a controlled circular reference to prevent the date from updating upon subsequent edits.

Solution 1Recommended

Enable Iterative Calculation and Use a Self-Referencing IF Formula

By enabling iterative calculations, you can use an IF formula that refers to its own cell to capture the current date and time, freezing the timestamp once the trigger cell is filled.

The NOW() and TODAY() functions in Excel are volatile, meaning they update every time the sheet recalculates. By turning on Iterative Calculation, you allow a cell to refer to itself without returning a circular reference error, effectively locking the timestamp once the condition is met.

1
Enable iterative calculation

Go to 'File' > 'Options' > 'Formulas'. Check the box for 'Enable iterative calculation' and click 'OK'.

2
Format the timestamp cell

Select the cell where you want the timestamp to appear (e.g., cell B2). Right-click, select 'Format Cells', and choose your preferred Date and Time format.

3
Enter the formula

In cell B2, enter the formula: =IF(A2<>"",IF(B2<>"",B2,NOW()),""). This assumes A2 is the cell you will populate with data.

4
Trigger the timestamp

Enter a value in cell A2. Excel will immediately insert the current date and time in B2. Because of the iterative calculation, it will not change when you edit other cells.

Enable Iterative Calculation and Use a Self-Referencing IF Formula
Understanding the Formula: The formula checks if A2 is not empty. If true, it then checks if B2 (itself) already has a value. If B2 is populated, it keeps its current value; otherwise, it inserts the current time using NOW().

Create Static Timestamps Effortlessly in WPS Spreadsheet

WPS Spreadsheet fully supports iterative calculations and advanced logical formulas, allowing you to easily automate static timestamps for your data entry logs without any compatibility issues.

  1. 1. Open WPS Spreadsheet Options: Launch WPS Spreadsheet, click on 'Menu' in the top-left corner, and select 'Options'.
  2. 2. Turn on Iterative Calculation: Navigate to the 'Calculation' tab, check the box for 'Enable Iterative Calculation', and click 'OK'.
  3. 3. Input the logic formula: Select your timestamp cell and input the exact same formula: =IF(A2<>"",IF(B2<>"",B2,NOW()),"").
  4. 4. Log your data: Type data into the trigger cell (A2). The timestamp will appear instantly and remain static across all subsequent sheet edits.
Fully compatible with Microsoft Excel formulas and functionsSupports iterative calculations for advanced circular referencesLightweight, fast, and free to use for daily spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does my timestamp keep changing when I use the NOW() function?

The NOW() and TODAY() functions are volatile, meaning they recalculate and update to the current system time whenever any change is made to the worksheet. To make them static, you must use iterative calculations with a self-referencing IF formula or use manual keyboard shortcuts.

Can I use a shortcut to insert a static date instead of a formula?

Yes, you can quickly insert a static date by pressing 'Ctrl' + ';' (semicolon). For the current time, press 'Ctrl' + 'Shift' + ';' (semicolon). This method does not require enabling iterative calculation, but it is a manual process.

Will enabling iterative calculation affect other formulas in my workbook?

Yes, enabling iterative calculation allows Excel to calculate circular references up to a specified number of times. If you have accidental circular references elsewhere in your workbook, Excel will not warn you with an error message, which could potentially mask calculation mistakes.

What happens if I delete the value in the trigger cell (A2)?

Based on the formula =IF(A2<>"",IF(B2<>"",B2,NOW()),""), if you clear the contents of A2, the timestamp in B2 will also clear. It effectively resets the cell so it is ready to capture a new timestamp when new data is entered.