Converting Time to Whole Numbers in Excel
Converting Time to Whole Numbers in Excel
(OP)
I am trying to convert for example 10:00 A.M. from an excel cell that has time format to 10.00. Another example is trying to convert 17:30 Military time to 5.5.
Can this be done? I really appreciate your help and suggestions.
thanks
Can this be done? I really appreciate your help and suggestions.
thanks
RE: Converting Time to Whole Numbers in Excel
If you take the fractional part of the serial number time format and multiply that by 24, you have military time in decimal format.
TTFN
RE: Converting Time to Whole Numbers in Excel
=24*(RIGHT(A1,LEN(A1)-(FIND(".",VALUE(A1))-1)))
Ken
RE: Converting Time to Whole Numbers in Excel
What I am trying to get is 11.5.
I appreciate your help. thanks
RE: Converting Time to Whole Numbers in Excel
Ken
RE: Converting Time to Whole Numbers in Excel
=HOUR(A1)+MINUTE(A1)/60
As KenBolen mentioned in his solution, the format must be set to "Number".
-InspEngr
RE: Converting Time to Whole Numbers in Excel
enter 11:30 pm in A1
in B1 put =24*A1
format B1 for "number"
B1 should read 23.5
TTFN