• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

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
0
ipswiz999
Asked:
ipswiz999
1 Solution
 
wchhCommented:
You can set Calculation to Manual instead of Automatic...
Excel Option: Formula->Calculation Option
0
 
MINDSUPERBCommented:
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
0
 
pgorodCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now