Time Calculations

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,247
Office Version
  1. 2016
Hi,

I am trying to calculate times but seem to have an anomaly I am hoping someone can assist with. Please see the table below. From 14:15:00 to 22:30:00 should equate to 8 hours and 15 minutes. However, when I total the hours column I get 7.917 hours?? Why would this be, appreciate any help.


startendhours
14:15:0014:30:000.250
14:30:0018:00:003.500
18:20:0022:30:004.167

<tbody>
</tbody>

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
Because your hours column is formatted as a number. Format it as a time the same as the start and end columns.
 
Upvote 0

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
2,102
Office Version
  1. 2016
Platform
  1. Windows
Hi, the sums are entirely correct though the representation is slightly odd (in using decimal parts of an hour for the minutes). The reason the sum appears incorrect is that you have 18:20 rather than 18:00 as the start time.

HTH
 
Upvote 0

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,247
Office Version
  1. 2016
Hi, formatting as a time gives these results?

startendhours
14:15:0014:30:0006:00:00
14:30:0018:00:0012:00:00
18:20:0022:30:0004:00:00

<tbody>
</tbody>
 
Upvote 0

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
2,102
Office Version
  1. 2016
Platform
  1. Windows
Hi, you need to state exactly what formula you have in the hours column and the format code you've used. 22:30 - 18:20 is not 04:00 it is 04:10 so you've possibly not bothered with the minutes element. The correct custom format option would be hh:mm:ss

HTH
 
Upvote 0

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,247
Office Version
  1. 2016
pjmorris, you are correct, we are missing 20 minutes of the data...

This is an error on our part, part of the data is not entered. Thank you for your time and spotting the error.
 
Upvote 0

Forum statistics

Threads
1,191,550
Messages
5,987,225
Members
440,085
Latest member
MBecker79

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