Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how do i set up a time stamp if another number entered in cell?

Hi i am a novice user of Excel. I am trying to set up a time sheet using
Excel so that as i start/finish a job i can input a figure Say "5" in a cell
and it automatically writes a time stamp in that cell? i have a start cell
and a finish cell so need to set it up for each cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default how do i set up a time stamp if another number entered in cell?

Control-Semi-colon space Control-Shift-Colon
or otherwise you'll need a VBA solution

IF(A2=5,NOW(),"") will give you a time stamp, but it will update the next
time you update or open the sheet.
--
David Biddulph

"freddie74" wrote in message
...
Hi i am a novice user of Excel. I am trying to set up a time sheet using
Excel so that as i start/finish a job i can input a figure Say "5" in a
cell
and it automatically writes a time stamp in that cell? i have a start cell
and a finish cell so need to set it up for each cell.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default how do i set up a time stamp if another number entered in cell

Hi Freddie,

How about trying something like this?
Open a blank work book.Right click on the tab and click on View Code.

Type or copy the following into the page that appears:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Not Intersect(Target, Range("A:A")) Is Nothing Then
With Target(1, 2)
.Value = Now
.EntireColumn.AutoFit
End With
With Target(1, 3)
.Value = Application.UserName
.EntireColumn.AutoFit
End With
End If
End Sub

Then go back to the worksheet.
If you now type something in A1, the date and time should appear in B1, and
the user ID should appear in C1.
This applies for anything typed in column A.
You may need to format column B to the date/time format you want.

If it's not quite doing what you want, try fiddling around with the VBA and
see what happens.

Dave



"David Biddulph" wrote:

Control-Semi-colon space Control-Shift-Colon
or otherwise you'll need a VBA solution

IF(A2=5,NOW(),"") will give you a time stamp, but it will update the next
time you update or open the sheet.
--
David Biddulph

"freddie74" wrote in message
...
Hi i am a novice user of Excel. I am trying to set up a time sheet using
Excel so that as i start/finish a job i can input a figure Say "5" in a
cell
and it automatically writes a time stamp in that cell? i have a start cell
and a finish cell so need to set it up for each cell.




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
Date stamp when a value is entered in a cell bbrant2 Excel Worksheet Functions 5 January 23rd 08 02:06 AM
Date stamp when a value is entered in a cell on another worksheet bbrant2 Excel Worksheet Functions 1 January 21st 08 05:27 PM
is it possible to time stamp cell comments? Dave F Excel Discussion (Misc queries) 4 October 6th 06 05:51 PM
is it possible to time stamp cell comments? Kevin B Excel Discussion (Misc queries) 0 October 6th 06 02:58 PM
Show time stamp when a value is entered TVCCBJB Excel Discussion (Misc queries) 4 September 8th 06 09:29 PM


All times are GMT +1. The time now is 11:02 PM.

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"