Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2011, 11:23 AM
IndCom IndCom is offline Timesheet formula Windows XP Timesheet formula Office 97
Novice
Timesheet formula
 
Join Date: May 2011
Posts: 8
IndCom is on a distinguished road
Default

Quote:
Originally Posted by Colin Legg View Post
It doesn't matter how you format the cell provided that the underlying piece of data is a date and time.



These formulas assume that if a shift starts on a Saturday or Sunday then a standard shift will be 12 hours. If the shift starts on any other day then a standard shift will be 8 hours. They also assume that Start Time < End Time.


In C2, with the cell formatted as [hh]:mm
Code:
=MIN(B2-A2,IF(OR(WEEKDAY(A2)={1,7}),1/2,1/3))
In D2, with the cell formatted as [hh]:mm
Code:
=B2-A2-C2
Yes. The begining of the work week starts on Saturday and ends on Friday.

Okay. Got most of it working, but still having some problems getting the totals for each week to read in a numerical total value plus the Total Hours for both weeks. I think part of the problems are the shaded areas with no date/time (for they are my regular days off).

I attached the sheet that I'm working with to help clarify things a mite.

Thanks so much for the help you've provided for so far!
Attached Files
File Type: xls Time Formula.xls (22.0 KB, 14 views)
Reply With Quote
  #2  
Old 05-27-2011, 01:27 PM
IndCom IndCom is offline Timesheet formula Windows XP Timesheet formula Office 97
Novice
Timesheet formula
 
Join Date: May 2011
Posts: 8
IndCom is on a distinguished road
Default

HEY! I GOT IT!

Dummy me forgot to format the "Total Cells" for [hh]:mm.


Works like a charm now! Many, many thanks for all you've done!

Have another look and see what you think.
Attached Files
File Type: xls Time Formula.xls (22.0 KB, 17 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timesheet formula PMT Formula OneOleGuy Excel 4 03-05-2011 09:54 AM
Timesheet formula Help with Formula Corca Excel 6 02-22-2010 09:40 PM
Timesheet formula Timesheet formula help beardking Excel 2 11-10-2009 02:06 AM
Timesheet formula If formula sixhobbits Excel 1 10-02-2009 08:02 AM
Help for formula dehann Excel 5 05-01-2009 10:44 AM

Other Forums: Access Forums

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


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft