Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date stamp when a value is entered in a cell | Excel Worksheet Functions | |||
Date stamp when a value is entered in a cell on another worksheet | Excel Worksheet Functions | |||
is it possible to time stamp cell comments? | Excel Discussion (Misc queries) | |||
is it possible to time stamp cell comments? | Excel Discussion (Misc queries) | |||
Show time stamp when a value is entered | Excel Discussion (Misc queries) |