PC Review


Reply
Thread Tools Rate Thread

Calculate time worked

 
 
Mario
Guest
Posts: n/a
 
      30th Aug 2010
Hi I'm playing around trying to create a work sheet,
and don't know how to create the formula syntax.

start time X= 0700 in C1
end time Y= 1900 in C2

Total hrs worked Z= 12 in C3

What would the formula be to calculate Z?

TIA.




 
Reply With Quote
 
 
 
 
joeu2004
Guest
Posts: n/a
 
      30th Aug 2010
On Aug 30, 2:51*am, "Mario" <im...@home.com> wrote:
> start time X= 0700 *in C1
> end time * Y= 1900 in C2
> Total hrs worked Z= 12 in C3
> What would the formula be to calculate Z?


Ostensibly:

=(TIME(INT(C2/100),MOD(C2,100),0)-TIME(INT(C1/100),MOD(C1,100),0))*24

which works whether X and Y are text or numeric.

You neglect to say how you want to handle fractional hours.

Also, you neglect to say whether X<=Y is always true, or if X>Y might
true if the time period spans midnight.

PS: For broader participation, you might want to post future
inquiries using the MS Answers Forums at
http://social.answers.microsoft.com/...ry/officeexcel.
It's not that I like that forum. It's just that MS has ceased to
support the Usenet newsgroups. Hence, participation here is limited
to the sites that share a common newsgroup mirror, which is no
longercentralized at MS.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP need time sheet/card calculate hours worked Harriet Microsoft Access 1 19th Oct 2009 11:06 PM
Calculate cost of project against time worked TracyM via AccessMonster.com Microsoft Access Queries 2 16th Apr 2007 09:36 AM
Total Time Worked - How to Calculate =?Utf-8?B?QW15?= Microsoft Excel Worksheet Functions 2 28th Feb 2007 08:01 PM
Calculate time worked =?Utf-8?B?SGVyYg==?= Microsoft Excel Programming 2 10th Apr 2004 07:49 AM
Using DateDiff to Calculate Time Worked Annette Microsoft Access Queries 1 7th Oct 2003 10:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.