From the computer of: shamanstears
(719 recipes)
Created: Aug 28, 2006 Updated: Oct 18, 2006
For example, you enter a person's clock-in time in cell B12 and clock-out time in C12. In cell D12, you would enter the following subtraction formula:
=C12-B12
Excel then returns the difference in cell D12 as a decimal value representing what fraction that difference represents of an entire day (that is, a 24-hour period). If for example, cell B12 contains the starting time of 9:00 am and cell C12 contains an ending time of 5:00 pm, Excel returns the following decimal value in cell D12:
8:00 AM
To convert this time of day into its equivalent decimal number, you convert the time format automatically given to it by the General format Ctrl+Shift+~ or by right-clicking on the cell and selecting Format Cells and then selecting the General format, which displays the following result in cell D14:
0.333333333
To convert this decimal number (representing the fraction of an entire day) into the number of hours that have elapsed, simply multiply this result by 24 as in =D12*24, which gives you a result of 8 hours or modify your formula to =(C12-B12)*24
Subscribe to the Tech-Recipes Newsletter
You can get tips like this delivered in your email every week!
We will never, ever sell your email address or spam you.
Related recipes:
Excel 2007: Use Descriptions in Complex Formulas
Excel: Set Your Number of Decimal Places
Excel 2007: Spell Check All Sheets at Once
Excel: How To Bypass Table Recalculation
Excel 2007: Start Without Splash Screen and Empty Workbook
Excel 2007: Have Your Data Read Back To You
Increase the Number of Undo Levels in Excel 2003
Excel: Prevent Conversion of URLs into Hyperlinks
How To Email an Excel Workbook
Excel 2007: Change the Number of Worksheets in Your New Workbooks
Sponsored links
Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.Search
Tech Recipes
· Home
· Mac OS X
· Solaris
· Windows
· Programming
· UNIX
· Cisco
· MySQL
· Google
· Instant messaging
· Add recipes
· Leave feedback
· Recommend us
· RSS Syndication
Hot recipes
XP: Small, Free Way to Use and Mount Images (ISO files) Without Burning Them
Make XP look like Windows Vista / Longhorn for free!
Vista: Should I Install 64-bit or 32-bit Version? (x64 vs x86)
SMS through E-Mail: Cingular, Nextel, Sprint, T-Mobile, Verizon, Virgin Mobile
How Do I Use or Open Bin, Cue, or ISO Files?
Hacks to Beat Rapidshare Download Limits and Waiting Time
MySpace: Hack to Download Any Song on MySpace
MySpace Hack: View Pictures and Comments on a Private Profile
Who's Online
There are currently, 3018 guest(s) and 5 member(s) that are online.
You are Anonymous user. You can register for free by clicking here
Information
Wish to advertise with us?
All logos and trademarks in this site are property of their respective owner. The comments and forum posts are property of their posters, all the rest © 2003-2007 by QD Ideas, LLC.
Users of this site are legally bound by the Terms and conditions and Disclaimer. Do not use this web site if you do not agree with these policies.
The members, admins, and authors of this website respect your privacy.
Page Generation: 0.67 Seconds
Thu Aug 21 13:21:01 2008