LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Excel VBA rounding / time handling questions

I am attempting to convert a variable number of seconds to a readout that
shows Hrs:Min:Sec. I have been trying to just convert the seconds to hours,
round the number of hours to the nearest (and lowest) whole number then
subtract the number of hours (in seconds) from the original number of seconds
and then do the same thing with the minutes field. The rounding does not do
what I am intending as it sometimes rounds up instead of down. I have tried
to look in my excel VBA online help but when the search results display & I
click on the item of interest it will not do anything, will not show the
requested help file. I tried to use the ROUNDDOWN function but I am told
that the Sub or Function is not defined. I checked in excel and I have the
Analysis toolpacks installed.
I guess a better way to describe what I am trying to do is I want to find
out how long it will take me to travel from point A to point B, knowing my
rate of travel and the distance between points A and B.

Any ideas?

Thanks,

Rich
 
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
How do I record (.468) time in Excel without it rounding to .5? SuperDav Excel Discussion (Misc queries) 2 May 17th 06 10:43 PM
Excel Time Sheet - Rounding To Quarter Hours C A Excel Worksheet Functions 2 October 18th 05 07:21 PM
Error handling with a handling routine ben Excel Programming 0 March 15th 05 03:01 PM
Rounding time in excel (2003) Alan Excel Discussion (Misc queries) 3 January 11th 05 04:44 PM
Rounding questions: (Formula and Code) ? Stuart[_5_] Excel Programming 2 April 8th 04 07:05 PM


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