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?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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...... ?
 
Upvote 0
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
 
Upvote 0
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......
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,541
Latest member
iparraguirre89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top