Time conversion

  • Thread starter Thread starter Patrick Simonds
  • Start date Start date
P

Patrick Simonds

I have a formula which subtracts cell A1 and A2, which are times (say 16:45-
07:45 = 09:45, or 9 hours 45 minutes worked). What I need is for the result
to be converted to a decimal. It should equal 9.75.

Any ideas?
 
Multiply with 24 and format as general on number

--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 
Times in XL are stored as fractional days, so to get fractional hours,
multiply by 24 hours/day:

A3: =(A2 - A1)*24 ===> 9.75

when A3 is formatted as General or another number format.
 
I forgot to mentioned to format as General or other number format, as JE
and Peo have pointed out.

Cheers!
 

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

Back
Top