Converting hours & minutes to whole minutes

Converting hours & minutes to whole minutes

Post by Linebacke » Wed, 21 Apr 2004 01:09:23


Ref: Transportation:
Would like to take actual start time and divide into
scheduled start time for percentile. Need Formula for
converting hrs & minutes into whole minutes.
(i.e., 5:28a = X minutes)
 
 
 

Converting hours & minutes to whole minutes

Post by Harald Sta » Wed, 21 Apr 2004 01:17:33

Hi

There are 1440 minutes in a day, so multiply by that:
=A1*1440
format result cell as decimal.

HTH. Best wishes Harald

"Linebacker" < XXXX@XXXXX.COM > skrev i melding

 
 
 

Converting hours & minutes to whole minutes

Post by Tom Ogilv » Wed, 21 Apr 2004 01:26:16

numMin = TimeValue("5:28a")*24*60

from the immediate window:

numMin = TimeValue("5:28a")*24*60
? numMin
328


Not sure what this show you, but:

ActualStart = TimeValue("5:28a")
ScheduledStart = TimeValue("5:00a")
? format((actualstart - scheduledstart)/scheduledStart,"0.0%")
9.3%

--
Regards,
Tom Ogilvy
 
 
 

Converting hours & minutes to whole minutes

Post by anonymou » Wed, 21 Apr 2004 01:28:23

Thank you very much. This has puzzled me for two months
trying to find the right formula without using two cells
i melding