You are here:

# Excel/time sheet forumla

Advertisement

Question
I need a simple formula, I just can's seem to figure it out.
time in , time out =total hrs
example  in @ 8 am out @ 5 PM = 9 hrs
repeat Monday through Sunday
then then total at end of week

Answer
You first have to know that Excel requires specific entry, and that Excel reads the value of 1 as one DAY.

In cell A1, type:

8 a

and hit Enter. It should then read 8:00 AM.

In cell A2, type:

5 p

and hit Enter. It should then read 5:00 PM.

In cell A3, type:

=A2-A1

and hit Enter. It should read 9:00 AM, which isn't want you want.

Select cell A3. Format it as a number. The value now becomes 0.38
That is the portion of 1 day (24 hours) that is your result.

Change the formula in A3 to:

=(A2-A1)*24

And you shall have your answer. There are 24 hours in one day.

You can learn this and so much more about time and time sheets at Chip Pearson's website.

http://www.cpearson.com/Excel/datetime.htm#WorkHours

I hope this helps!
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

#### Anne Troy

##### Expertise

Virtually all common questions about Microsoft Excel, including all versions. Help with formulas, functions, optimum data layout, and application management. Please: No VBA or macro questions.

##### Experience

I taught Advanced Microsoft Excel to the senior accountants at the Environmental Protection Agency. Let's hope they were listening.

Publications
Dreamboat on Word Office VBA: Macros You Can Use Today

Education/Credentials
Self-taught and worked with the best in Microsoft Office applications.

Awards and Honors
Microsoft Word MVP 2008

©2017 About.com. All rights reserved.

Browse Answers: