A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Time in Excel



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2008, 03:01 AM posted to microsoft.public.excel.worksheet.functions
Medic1712
external usenet poster
 
Posts: 1
Default Time in Excel

I am trying to do something that seems impossible. I am a paramedic and use
a mobile device during the course of my job. I am trying to write a
spreadsheet that will "time stamp" important times within a run. I have been
using:
=IF(A3=1,NOW(),"")
I enter a 1 in Column A and the equation is in Column C, but it resets all
time to the same since NOW() is a volatile function. Is there anyway to
overcome this?
  #2  
Old August 27th, 2008, 03:38 AM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
external usenet poster
 
Posts: 3,232
Default Time in Excel

http://www.mcgimpsey.com/excel/timestamp.html



--


Regards,


Peo Sjoblom




"Medic1712" wrote in message
...
I am trying to do something that seems impossible. I am a paramedic and
use
a mobile device during the course of my job. I am trying to write a
spreadsheet that will "time stamp" important times within a run. I have
been
using:
=IF(A3=1,NOW(),"")
I enter a 1 in Column A and the equation is in Column C, but it resets all
time to the same since NOW() is a volatile function. Is there anyway to
overcome this?



  #3  
Old August 27th, 2008, 03:40 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Time in Excel

See this:

http://www.mcgimpsey.com/excel/timestamp.html

--
Biff
Microsoft Excel MVP


"Medic1712" wrote in message
...
I am trying to do something that seems impossible. I am a paramedic and
use
a mobile device during the course of my job. I am trying to write a
spreadsheet that will "time stamp" important times within a run. I have
been
using:
=IF(A3=1,NOW(),"")
I enter a 1 in Column A and the equation is in Column C, but it resets all
time to the same since NOW() is a volatile function. Is there anyway to
overcome this?



  #4  
Old August 27th, 2008, 03:48 AM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Time in Excel

You can use event code to timestamp an adjacent cell when data is entered in
any cell in column A

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
With Target
If .Value "" Then
.Offset(0, 1).Value = Format(Now, "hh:mm:ss")
End If
End With
End If
enditall:
Application.EnableEvents = True
End Sub


This is worksheet event code. Right-click on the sheet tab and "View code".

Copy/paste into that sheet module.


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 19:01:00 -0700, Medic1712
wrote:

I am trying to do something that seems impossible. I am a paramedic and use
a mobile device during the course of my job. I am trying to write a
spreadsheet that will "time stamp" important times within a run. I have been
using:
=IF(A3=1,NOW(),"")
I enter a 1 in Column A and the equation is in Column C, but it resets all
time to the same since NOW() is a volatile function. Is there anyway to
overcome this?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:41 PM.


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