#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default calculating time

I am needing to calculate time in Excel 2003. Say someone comes in to work
at 9 AM and works until 5PM, how can I create a formula to automatically
count the total time worked?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default calculating time

One way:

A1: 9:00 AM
A2: 5:00 PM

A3: =A2-A1 === 8:00

when A3 is formatted as h:mm

If you have shifts that span midnight:

A3: =MOD(A2-A1,1)

Since XL stores times as fractional days.

In article ,
jgullett wrote:

I am needing to calculate time in Excel 2003. Say someone comes in to work
at 9 AM and works until 5PM, how can I create a formula to automatically
count the total time worked?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default calculating time


Easiest is to use 24 hr clock 17:00-9:00
--
Don Guillett
SalesAid Software

"jgullett" wrote in message
...
I am needing to calculate time in Excel 2003. Say someone comes in to
work
at 9 AM and works until 5PM, how can I create a formula to automatically
count the total time worked?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default calculating time

Try this:

A1 = 9:00 AM
B1 = 5:00 PM

For a result in TIME format: format the cell as h:mm

=IF(COUNT(A1:B1)<2,"",B1-A1+(B1<A1))

Result = 8:00

For a result in DECIMAL format: format the cell as GENERAL

=IF(COUNT(A1:B1)<2,"",(B1-A1+(B1<A1))*24)

Result = 8

Biff

"jgullett" wrote in message
...
I am needing to calculate time in Excel 2003. Say someone comes in to
work
at 9 AM and works until 5PM, how can I create a formula to automatically
count the total time worked?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating time increments from dates during working hours S Davis Excel Worksheet Functions 0 October 24th 06 03:32 PM
calculating time T.K.RAJU via OfficeKB.com Excel Discussion (Misc queries) 3 December 27th 05 12:22 PM
help with calculating overtime in a time sheet jongyrocka Excel Discussion (Misc queries) 13 December 10th 05 09:36 PM
Calculating a rate for elapsed time? Keith Excel Discussion (Misc queries) 8 May 18th 05 09:14 PM
Calculating tvl time in Excel 2000 Rev.9.2720 Brandi Excel Worksheet Functions 5 January 27th 05 09:15 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"