Microsoft Office Forums Can Excel Deduct 30 Minutes from an 8 1/2 Hour Cell?
 Register FAQ Search Today's Posts Mark Forums Read

#1
05-16-2013, 11:44 AM
 tatihulot Windows 7 Office 2010 (Version 14.0) Advanced Beginner Join Date: Apr 2010 Posts: 34
Can Excel Deduct 30 Minutes from an 8 1/2 Hour Cell?

Hello, I am using Excel 2010.

I don't use spreadsheets much, and when I do design them, they are fairly basic, rarely complicated. There is something I want to do with one, though, and am requesting assistance, please.

I'm creating a payroll history spreadsheet for myself, to keep track of my hours, overtime, gross wages, etc. Nothing fancy.

I'd like to know if I can enter my hours into a cell, and have Excel automatically deduct my lunch time if I'm over 8 hours.

For example, if I type 6-2:30 in a cell, can Excel automatically see it is more than eight hours ? And then automatically add 8 hours to the Total Hours cell, instead of 8 1/2?

Here are two screen shots of what I want to do.

Is this possible? Can I get Excel to automatically determine 6-2:30 is a set of hours, determine it's 8 1/2, and if over 8, deduct .5 hours? What's an easy way to do this, if possible?

If you need more information from me, please request it. I'll do my best to provide further details. Please consider me an Excel novice. Thank you! Jack D.
#2
05-16-2013, 03:40 PM
 macropod Windows 7 32bit Office 2010 32bit Administrator Join Date: Dec 2010 Location: Canberra, Australia Posts: 21,212

You're making things difficult for yourself by trying to have the start & finish times in the same cells. Is there a good reason you can't have them on separate rows? Do that and use another row for the daily calculation, which becomes quite simple (eg: = MIN(A3-A2,8))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
#3
05-16-2013, 03:45 PM
 tatihulot Windows 7 Office 2010 (Version 14.0) Advanced Beginner Join Date: Apr 2010 Posts: 34

Honestly, it never occurred to me to have an IN column and an OUT column, like a time card for a time clock. I should have thought of that to begin with.

Not a big deal to have those columns.

Now, I just have to figure out how to create the formula for it. Thank you. Jd
#4
05-16-2013, 04:23 PM
 macropod Windows 7 32bit Office 2010 32bit Administrator Join Date: Dec 2010 Location: Canberra, Australia Posts: 21,212

See attached.
Attached Files
 Hours.xls (24.5 KB, 6 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
#5
05-16-2013, 04:30 PM
 tatihulot Windows 7 Office 2010 (Version 14.0) Advanced Beginner Join Date: Apr 2010 Posts: 34

I'm going to have to study that formula. Mathematical equations is not my area of expertise at ALL. Thanks for posting it. It's a starting point.

I've never used the MIN and MAX functions.

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post mark4man Word 4 05-25-2012 05:09 PM BamaBrad Outlook 2 03-13-2011 07:57 AM maruchi Project 1 06-17-2010 08:06 AM ajetrumpet Outlook 0 07-25-2009 09:47 PM Farrar Word 1 07-23-2007 02:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 AM.

 -- Default Style -- Lightweight -- New Mobile Contact Us - Privacy Statement - Top