Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default Calculating hours

I am working on a spreadsheet that will calculate the hours worked by a staff
member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting A2
from A1?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Calculating hours

Hi,

You can use this formula. The assumption herein is that the 2 times (start
and end time) are on consecutive days I.e. the work hours are separate by a
day. Please ensure that the cell is formatted as General

(VALUE("24:00")-VALUE(A5))*24+(VALUE(B5)-VALUE("00:00"))*24

A5 has start time and B5 has end time

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Marty" wrote in message
...
I am working on a spreadsheet that will calculate the hours worked by a
staff
member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting A2
from A1?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pub pub is offline
external usenet poster
 
Posts: 29
Default Calculating hours

?B?TWFydHk=?= wrote in
:

I am working on a spreadsheet that will calculate the hours worked by
a staff member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting
A2 from A1?


i always use this formula

=A2-A1+(A1A2)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Calculating hours

=MOD(A2-A1,1) and make sure the result is formatted as time.
--
David Biddulph

"Marty" wrote in message
...
I am working on a spreadsheet that will calculate the hours worked by a
staff
member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting A2
from A1?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Calculating hours

Hi Marty,

Provided they are real times and not text,
Put this in A3
=IF(A1A2,1+A2-A1,A2-A1)
and format as custom [h]:mm

HTH
Martin


"Marty" wrote in message
...
I am working on a spreadsheet that will calculate the hours worked by a
staff
member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting A2
from A1?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Calculating hours

.... or =MOD(A2-A1,1)*24 (and format as general or number) if you want the
answer in decimal hours.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=MOD(A2-A1,1) and make sure the result is formatted as time.


"Marty" wrote in message
...
I am working on a spreadsheet that will calculate the hours worked by a
staff
member.
A1 has the start time of 16:00
A2 has a finish time of 01:30 the next morning.

What is the formula please to work out the hours worked by subtracting A2
from A1?





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 Hours Nick New Users to Excel 1 March 25th 08 01:52 PM
Calculating hours Kelly_Durden via OfficeKB.com Excel Discussion (Misc queries) 2 January 30th 08 04:47 PM
Calculating hours Pagina-eind hyperlink probleem Excel Discussion (Misc queries) 3 October 18th 07 01:57 PM
Calculating hours Ian[_3_] Excel Worksheet Functions 8 September 19th 07 11:51 AM
calculating hours bus2408 Excel Worksheet Functions 2 June 23rd 05 02:39 PM


All times are GMT +1. The time now is 10:18 AM.

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"