Hours & Minutes to Decimal

S

SAR

How do I convert 2:15 TIME VALUE (2 hours and 15 minutes) to 2.25
hours?
I'm really beat on this one. Please be specific. Thanks so much.
 
N

Niek Otten

=A1*24
Format as General (or as Number, but don't leave it as Time as Excel did)

--
Kind regards,

Niek Otten


|
| How do I convert 2:15 TIME VALUE (2 hours and 15 minutes) to 2.25
| hours?
| I'm really beat on this one. Please be specific. Thanks so much.
|
|
| --
| SAR
| ------------------------------------------------------------------------
| SAR's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=34172
| View this thread: http://www.excelforum.com/showthread.php?threadid=539381
|
 
S

SAR

I must not be doing something right to get 2.25 hours.

I added times of day and got 2:15 (time value format-2hours & 1
minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr"
with Number and General format and received #NAME?. Tried =A1*24 wit
Number and General format and received 0.

Please help
 
D

David Biddulph

SteveG said:
Assuming your value is in A1

=CONVERT(A1,"day","hr")

But remember that the CONVERT function is only available if the Analysis
ToolPak add-in is installed.
 
D

David Biddulph

SAR said:
I must not be doing something right to get 2.25 hours.

I added times of day and got 2:15 (time value format-2hours & 15
minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr")
with Number and General format and received #NAME?. Tried =A1*24 with
Number and General format and received 0.

For CONVERT you need the Analysis ToolPak add-in.

=A1*24 should work, so my guess is that your 2:15 is not formatted as time.
Check the format of A1.
 
N

Niek Otten

<I added times of day and got 2:15 (time value format-2hours & 15 minutes)>

????Please be more specific. What exactly did you do?

|
| I must not be doing something right to get 2.25 hours.
|
| I added times of day and got 2:15 (time value format-2hours & 15
| minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr")
| with Number and General format and received #NAME?. Tried =A1*24 with
| Number and General format and received 0.
|
| Please help.
|
|
| --
| SAR
| ------------------------------------------------------------------------
| SAR's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=34172
| View this thread: http://www.excelforum.com/showthread.php?threadid=539381
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top