LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How do I set the time in Excel

If you want to use a formula, you would need to go to
Tools=Options=Calculation tab and click the iterations checkbox to allow
intentional circular references. Set max iterations to 1

assume if cell A1 has a 1 in it, you want B1 to show the time it was placed
there

=IF(A1=1,IF(OR(B1="",B1=0),NOW(),B1),"")

use a custom number format under Format=Cells and use hh:mm:ss.000

another approach would be to

select the cell and do Ctrl+Shift+: (colon)

Or you could use a macro.

Sub SetTime()
Activecell.Value = Now()
End sub

--
Regards,
Tom Ogilvy






"Girlie Bloat" wrote:

I have set up a formula in Excel to record the time for riders in a bike race
who are doing a number of laps. Each time they come over the line I want to
put their race number in to a cell and for Excel to record the time. I have
successfully created a formula to do this (if the value of the cell into
which I put the race number is 0 the time is inserted into another cell).
However, once the time has been inserted I don't want it to change when I put
another race number in to the cell below. Does anyone know how I can do this?
Sarah



 
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
Excel 2007 calculate time between 2 date/time columns Kevo Excel Discussion (Misc queries) 8 April 25th 09 12:02 AM
Macro / function text time to 24hr excel time passed midnight fortotaling hr's Russmaz Excel Worksheet Functions 2 March 6th 09 04:58 AM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
How do i convert unix time to Julian time in excel? Ken Excel Discussion (Misc queries) 1 December 14th 06 08:22 PM
Negative time should be allowed in Excel, eg time difference Bengt-Inge Larsson Excel Discussion (Misc queries) 2 October 13th 05 12:59 PM


All times are GMT +1. The time now is 04:33 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"