Automatically Enter a Fixed Date in an Adjacent Excel Cell
Question details
The user wants Excel to record the date when data is entered in an adjacent cell and retain that date.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Data is entered in column A, and the corresponding cell in column B should record the entry date.
- Observed behavior
- The desired date stamp should remain fixed rather than update each day.
Choose the data-entry and date columns; the examples below use A and B starting on row 2. Make sure the date cells in column B are available before adding a formula or macro.
Use an iterative formula to retain the entry date
Use this formula-based approach when iterative calculation is available and enabled in Excel.
The formula uses a circular reference to retain its previous result. Iterative calculation can also affect other circular formulas, so test the result in your workbook.
This method is not a reliable audit trail: clearing the input resets the date, and recalculation or workbook settings can affect retained values.
In Excel, select File > Options > Formulas, check Enable iterative calculation, and click OK.
Select B2 and enter =IF(A2<>"",IF(B2="",TODAY(),B2),""). Fill the formula down column B for the rows you need.
Select the formula cells in column B, open the Home tab, and choose a date format from the Number Format menu.
Enter data in A2 and confirm that B2 displays today's date. Check the workbook after reopening it to verify that the date remains as expected.

Use a worksheet event macro to stamp the date
Use a VBA event macro when you want a stored date value rather than a circular formula.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with your data; Excel-specific VBA and iterative calculation behavior may differ.

Frequently Asked Questions
Why does a regular TODAY formula change every day?
TODAY() is recalculated as the workbook updates, so a cell containing =TODAY() displays the current date. Use the iterative formula or a VBA date stamp if the entry date needs to stay fixed.
Where do I enable iterative calculation in Excel?
Select File > Options > Formulas, check Enable iterative calculation, and click OK. Review other circular formulas because this setting can affect them too.
What happens to the date if I clear the adjacent input?
With the iterative formula shown above, clearing A2 makes B2 blank. The VBA macro leaves the date in B2 until you clear it yourself.
Why does the VBA date stamp not run?
Check that the code is in the relevant worksheet's code window, the file is saved as an .xlsm workbook, and macros are enabled. The example only responds to changes in column A from row 2 onward.




