Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default how do i change hours and minutes into a decimal number?

i am trying to turn total flight hrs into a decimal number( ie: 2045hrs
10mins into 2045.10). can anyone help me with a formula which may help in
this? time is given HH:MM but i need it turned to HH.M.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default how do i change hours and minutes into a decimal number?

Hi,

The decimal time for 2045h 10m is obtained by multiplying the time by 24 and
formatting as general or a number but this will give an answer of 2045.167
and not 2045.1 because .1 of and hour is 6 minutes not 10.

Mike


"Mills00" wrote:

i am trying to turn total flight hrs into a decimal number( ie: 2045hrs
10mins into 2045.10). can anyone help me with a formula which may help in
this? time is given HH:MM but i need it turned to HH.M.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 168
Default how do i change hours and minutes into a decimal number?

Hi Mills,

Do a little play like this

In A1 put 2045:10
In B1 put =A1*24 (this will
return 2045.1666667)
In C1 put =INT(B1) (this will return
2045)
In D1 put =ROUND((B1-INT(B1))*60,0) (this will return 10)
In E1 put = C1&"."D1 (this will return
2045.10 as text)
In F1 put = (C1&"."D1)*1 (this will return
2045.10 as numeric)

Putting all that togethher

=INT(A1*24)&"."&ROUND((B1-INT(A1*24))*60,0)
will return 2045.10 as a text value and

=(INT(A1*24)&"."&ROUND((B1-INT(A1*24))*60,0))*1
will return 2045.10 as a numeric value.

Of course if you are going to twist mathematics like this you
should be very very careful at every step.

P.S. I hope the wrap doesn't play with my formatting here, it's
looking very neat before I send it.

HTH
Martin


"Mills00" wrote in message
...
i am trying to turn total flight hrs into a decimal number( ie: 2045hrs
10mins into 2045.10). can anyone help me with a formula which may help in
this? time is given HH:MM but i need it turned to HH.M.



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 168
Default how do i change hours and minutes into a decimal number?

Woops, I left the B1 references in there, those formulae
should be,

=INT(A1*24)&"."&ROUND((A1*24-INT(A1*24))*60,0)
and
=(INT(A1*24)&"."&ROUND((A1*24-INT(A1*24))*60,0))*1

Like I said be very careful when you play with fire...........!!?

Regards
Martin



"MartinW" wrote in message
...
Hi Mills,

Do a little play like this

In A1 put 2045:10
In B1 put =A1*24 (this will
return 2045.1666667)
In C1 put =INT(B1) (this will
return 2045)
In D1 put =ROUND((B1-INT(B1))*60,0) (this will return 10)
In E1 put = C1&"."D1 (this will
return 2045.10 as text)
In F1 put = (C1&"."D1)*1 (this will return
2045.10 as numeric)

Putting all that togethher

=INT(A1*24)&"."&ROUND((B1-INT(A1*24))*60,0)
will return 2045.10 as a text value and

=(INT(A1*24)&"."&ROUND((B1-INT(A1*24))*60,0))*1
will return 2045.10 as a numeric value.

Of course if you are going to twist mathematics like this you
should be very very careful at every step.

P.S. I hope the wrap doesn't play with my formatting here, it's
looking very neat before I send it.

HTH
Martin


"Mills00" wrote in message
...
i am trying to turn total flight hrs into a decimal number( ie: 2045hrs
10mins into 2045.10). can anyone help me with a formula which may help in
this? time is given HH:MM but i need it turned to HH.M.





Reply
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 change hours and minutes into a decimal number? Mills00 New Users to Excel 0 February 25th 08 11:25 AM
Change time h:mm to a decimal number based on hours Snort5525 Excel Worksheet Functions 6 May 31st 07 07:44 PM
Convert Decimal hours and Minutes to minutes please. Steved Excel Worksheet Functions 13 July 5th 06 05:33 AM
Hours & Minutes to Decimal SAR Excel Discussion (Misc queries) 8 May 8th 06 03:02 PM
how to change a decimal number (minutes) into hours and minutes? Erwin Excel Discussion (Misc queries) 2 November 5th 05 04:22 PM


All times are GMT +1. The time now is 11:53 AM.

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"