Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default formula to show time that data was entered on spreadsheet

I want to know if its possible for the time to automatically appear in a
seperate cell when data is entered in a cell. For example, in cell A1 i
enter the figure 3, in cell A2 the time i entered that number appears as
hh.mm.ss. In cell B1 i enter the figure 4 & in cell B2 the time appears
again in hh.mm.ss.

Is this possible and how do i achieve it please. Thank you in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default formula to show time that data was entered on spreadsheet

Hi,

You need a macro for that but it's easy. Right click your sheet tab, view
code and paste the code below in on the right and that's it. Close VB editor

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub
If Not Intersect(Target, Range("1:1")) Is Nothing Then
On Error Resume Next
Application.EnableEvents = False
Target.Offset(1) = Format(Time, "hh:mm:ss")
Application.EnableEvents = True
On Error GoTo 0
End If
End Sub


Mike

"Irmatwit" wrote:

I want to know if its possible for the time to automatically appear in a
seperate cell when data is entered in a cell. For example, in cell A1 i
enter the figure 3, in cell A2 the time i entered that number appears as
hh.mm.ss. In cell B1 i enter the figure 4 & in cell B2 the time appears
again in hh.mm.ss.

Is this possible and how do i achieve it please. Thank you in advance

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 record the time data is entered into a spreadsheet? bmk Excel Worksheet Functions 2 November 15th 07 05:53 AM
Show a time 50 min before entered time cristo Excel Discussion (Misc queries) 3 November 7th 07 04:41 PM
Show zero values only when data is entered in other fields gevew Excel Discussion (Misc queries) 5 December 29th 06 06:50 PM
Show time stamp when a value is entered TVCCBJB Excel Discussion (Misc queries) 4 September 8th 06 09:29 PM
Formula does not show as I entered it. ladytar Excel Worksheet Functions 2 October 4th 05 12:29 AM


All times are GMT +1. The time now is 12:21 PM.

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

About Us

"It's about Microsoft Excel"