You are here:

Excel/Non-Military Time to Tenths of Hours


I am rephrasing my question to you.  I use Excel 2010 and I am constructing a timesheet where the formula calculates the employee's total worked in a day for 4 time ins and time outs:

In   Out    In   Out    In    Out   In Out In    Out  Ttl Hours
7:30 12:00 12:30 16:00  00:00 00:00 00:00  00:00 00:00    ?    

However I would like the total hours to conform to an hours conversion chart.  I can't come up with the correct formula to convert the decimals to tenths of hours and have it match the conversion chart below.  My formula is =IF((OR(B2="",A2="")),0,IF(B2<A2),((B2-A2)*24)+24,(B2-A2)*24)).  Thanks for the help.

0:00 - 0:02 0.0 Hr.  
0:03 - 0:08 0.1 Hr.
0:09 - 0:14 0.2 Hr.
0:15 - 0:20 0.3 Hr.
0:21 - 0:26 0.4 Hr.
0:27 - 0:32 0.5 Hr.
0:33 - 0:38 0.6 Hr.
0:39 - 0:44 0.7 Hr.
0.45 - 0:50 0.8 Hr.
0:51 - 0:56 0.9 Hr.
0:57 - 1:00 1.0 Hr.

I tried to make it as simple and concrete as possible so I can get the desired answer.

Open a new Excel Workbook. In cell A1 enter

1/2/13 7:30 AM

In cell B1 enter

1/2/13 12:00 PM

In cell A3 enter


Cell A3 will display the time elapsed between 7:30 AM and 12:00 PM of the same day, to tenths of an hour.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Stuart Resnick


I can answer questions relating to MS Excel formulas, or to programming with vba (Visual Basic for Applications) in the Excel environment. Please follow the following guidelines: your question should focus on one specific issue you want to learn. It's beyond the scope of this free service for me to create entire projects or complex vba solutions for you from scratch. You should be able to do most of the work yourself, and come here when you need help with a specific point you're stuck on. ALWAYS include a simple, concrete example illustrating what you want to learn. Explain this example in detail in the text of your question (what data is in which cells of which sheets, etc). Be very precise about the results you want, using this sample to make the logic clear. Always keep these examples SIMPLE. Never e.g. use 18 worksheets in your example if using 2 or 3 will do. Never use ranges like AI567:BB865 if using a range like A1:B3 will do. Thanks.


As a consultant, I've designed Excel tools since the 90s, working for the Federal Reserve Bank, AT&T, and (currently) Gap Inc.

My only "education" comes from 2 decades of doing spreadsheet/programming work, with major SF Bay Area corporations such as AT&T, Federal Reserve Bank, and Gap Inc.

©2017 All rights reserved.

[an error occurred while processing this directive]