Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default fomulas for tracking time entered text or data

When I enter text into cell in column A, I would like the date and time to
appear in a cell in Column C. I need to track the date and time each cell in
column A is data entered.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default fomulas for tracking time entered text or data

You could use a formula if you want date/time to change each time excel
recalculates.

If you want that date/time to be static, you're going to have to use a macro.

If you want to try, rightclick on the worksheet tab that should have this
behavior. Select View Code and paste this into the code window that just
opened.

Then back to excel to test it out.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

Dim myRngToCheck As Range
Dim myIntersect As Range
Dim myCell As Range

Set myRngToCheck = Me.Range("A:A")

With Target
Set myIntersect = Intersect(myRngToCheck, .Cells)
If myIntersect Is Nothing Then
Exit Sub 'nothing to do
End If

Application.EnableEvents = False
On Error Resume Next
For Each myCell In myIntersect.Cells
With myCell.Offset(0, 2)
.NumberFormat = "mmm dd, yyyy hh:mm:ss"
.Value = Now
End With
Next myCell
On Error GoTo 0
Application.EnableEvents = True
End With

End Sub

WHGRIT wrote:

When I enter text into cell in column A, I would like the date and time to
appear in a cell in Column C. I need to track the date and time each cell in
column A is data entered.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I get time entered automatically in A1 if B1 has text Sergeant Henderson USAF Excel Discussion (Misc queries) 6 March 17th 08 03:04 AM
how do I record the time data is entered into a spreadsheet? bmk Excel Worksheet Functions 2 November 15th 07 04:53 AM
Tracking newly entered rows. Larry Cooke Excel Discussion (Misc queries) 3 April 17th 07 11:38 PM
Time formatting:data 1:30:20 entered reads in 1:30:20 pm Ellen Excel Worksheet Functions 2 February 17th 06 02:10 AM


All times are GMT +1. The time now is 12:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"