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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

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
 

Forum statistics

Threads
1,141,670
Messages
5,707,731
Members
421,525
Latest member
carian1980

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
Top