Cell time formatting and calculation

Darrin Smith

New Member
Joined
Sep 29, 2006
Messages
12
I am trying to set up a sheet with individual cells containing "start time" and "stop time" in 24 hour format and have another cell calculate the elapsed time and give value in decimal hours.

eg.
12:45 to 12:53 (8 minutes elapsed) to display as 0.1

or
14:27 to 15:19 (52 minutes elapsed) to display as 0.9

Each 6 minutes = 0.1 hrs. ( 1 and 2 minutes over 6 should round down.... 3, 4 and 5 minutes past 6 should round up)

Any ideas?
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
Darrin,

Try mulitplying by 24 and format the cell that houses the formula as a number to 1 decimal place.
 

Darrin Smith

New Member
Joined
Sep 29, 2006
Messages
12
Hey Brian

You may be a few steps ahead of me.... I'm very new to Excel.
I've not yet been able to format the "start & stop " time cells to a time format of any kind. Also, I imagine there would have to be somewhere in the formula, a referance to 60 being 1.0 or a whole...... ?
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
Hey Brian

You may be a few steps ahead of me.... I'm very new to Excel.
I've not yet been able to format the "start & stop " time cells to a time format of any kind. Also, I imagine there would have to be somewhere in the formula, a referance to 60 being 1.0 or a whole...... ?

Darrin,

In a cell, say A1 enter 0:06. In B1 enter this formula,

=A1*24

Now activate B1 and go to Format/Cells/Number tab and select Number, Decimal Places, select 1
 

Darrin Smith

New Member
Joined
Sep 29, 2006
Messages
12

ADVERTISEMENT

Brian

It's gonna test you.......


F10 is my "start time" ( will be manually entered in 24 hour style)
G10 is my "stop time" ( will be manually entered in 24 hour style)
H10 is my "elapsed time" ( I want it to calculate for me, and display as decimal hours)

I entered 0:06 into F10, then selected G10 and entered the formula =F10*24 ( G10 then changes to 2:24 )
I selected again G10 and did ... Format/Cells/Number tab and select Number, Decimal Places, select 1 ( G10 then changes to 0.1 ) ?

I'm at a loss to see how this would work??

But keen to learn how......
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
Darrin,

Here's a sample. The formula in C4 takes into account going over to the next day. Also column C is formatted as a Number, one decimal place.
Book1
ABCD
1Start TimeEnd TimeElasped Time
213:0013:060.1
313:0013:100.2
423:100:101
Sheet1
 

Watch MrExcel Video

Forum statistics

Threads
1,114,042
Messages
5,545,688
Members
410,698
Latest member
Wloven
Top