Computing.Net > Forums > Office Software > Calculating time using excel

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Calculating time using excel

Reply to Message Icon

Name: Kenneth Goldberg
Date: December 26, 2008 at 15:36:33 Pacific
OS: Windows XP
CPU/Ram: Intel T2050 @ 1.60 GHz 1.
Product: Compaq / PRESARIO
Comment:

I am using Excel to help me record responses to some performance tests I give. In doing this, I have to record start and stop times, in seconds, then calculated the differences. To date, I have entered the minute and second manually, with Excel calculating the differences. It would be much better if I could create some icon or macro to click the start and stop times, without referring to a clock. I have played with entering the time by using CTL+SHIFT+;. I format the time in hours, minutes and seconds. Each time, Excel enters 00 for the seconds, rather than the actual seconds. I need the exact seconds, and don't know how to do this. Can someone help me?




Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: December 30, 2008 at 02:39:34 Pacific
Reply:

Simplest way through a macro is to use

sub writecurrenttime()
selection.value = now()
end sub

This code will write the time now (including the seconds part) in the selected cell. There are other ways of accomplishing it (using userforms with start and stop buttons, etc)


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Calculating time using excel

Calculating time in Excel www.computing.net/answers/office/calculating-time-in-excel/1966.html

Excel Time problem www.computing.net/answers/office/excel-time-problem/641.html

Computing timeclock time with excel www.computing.net/answers/office/computing-timeclock-time-with-excel/1498.html