"NOW" or "TODAY" date function

G

Guest

I have a worksheet that I am trying to create a formula for. What I want is
once a certain cell has text in it, the next cell populates with the date the
first cell was entered. I figured that part out by using a combination of
the "IF" formula and the "NOW" formula. But after that function works, I
dont want that date to change, because this worksheet will be continually
working in. When I open the worksheet tomorrow, tomorrow's date will now
show up in the "date cell" and I want to keep it as the date the text was
entered, not "NOW" or "TODAY".

Thanks,
Chris
 
G

Guest

You'll need a macro to put a timestamp value in. Start with this site to
learn the rudiments of where code goes,

For information on installing the code see
Getting Started with Macros and User Defined Functions
http://www.mvps.org/dmcritchie/excel/getstarted.htm

then use

Private Sub Worksheet_Change(ByVal Target As Range)
Const WatchRange = "B2:B10"

If Application.Intersect(Range(WatchRange), Target) Is Nothing Then Exit Sub

Target.Offset(0, 1).Value = Now

End Sub

which puts the current date & time into col C next to any change in B2:B10.
Change the WatchRange text to reflect the address of the range you want to use
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top