Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time calculations to hours

Status
Not open for further replies.

RandyRiegel

Programmer
Sep 29, 2003
256
US
I'd like to get time calculations between two times into hours as a decimal amount.

I currently have:

A1 = 9:00
B1 = 11:30
C1 = =B1-A1

All fields are formatted as time.
Like this C1 will display "2:30"

I would like to get C1 to display 2.5 (how many hours)

Is there a way to do this? I don't use excel very much so there is probably an easy solution I'm overlooking.

Thanks,
Randy
 
=(B1-A1)*24

Format as general, or number with you preference of decimal places.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top