We help IT Professionals succeed at work.

Retaining a date

Need to place a current date constant that will not change later in a formula.
Need to have an entry create an automatic day in another column. Date must be retained, not change to todays date every time the spreadsheet is opened.
Current formula is
=IF(A4<>"",IF(F4="",NOW(),F4),"")
sample.xls
Comment
Watch Question

Commented:
You can set Calculation to Manual instead of Automatic...
Excel Option: Formula->Calculation Option
Now() function in Excel is considered is volatile and it will behave on that way. You might need VBA to achieve what you want. See the link below on how the same issue was resolved.

http://www.mrexcel.com/forum/showthread.php?t=30364

Sincerely,
Ed
Commented:
Here is your file with a bit of VBA to solve your problem.

You need to define a Range called "ActiveArea" in your Worksheet. Whenever cells inside this range are changed, the column with the Timestamp (for that same row) will be updated.

The code I used (it's inside the Sheet1 code) is simply this:

 
Const colDateRecorded = 6 'the number of the column that gets the Timestamp

Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target.Rows.Count <> 1) Or (Target.Columns.Count <> 1) Then Exit Sub
    
    If Not Intersect(Target, ActiveSheet.Range("ActiveArea")) Is Nothing Then
        Target.EntireRow.Cells(1, colDateRecorded) = Now
    End If
End Sub

Open in new window

Copy-of-sample.xls