Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
noelf
 
Posts: n/a
Default how to calculate between times


hello all

can someone pls advice.
i need to calculate the time between start to finish dates.
A1
08/07/05 12:00

A2
09/07/05 1200

i found this formula =text(a2-a1,"h:mm") to be helpful.
but i want to calculate business hours only which is from 9am to 5:30.
can someone pls advice what formula i can use?
thanks


--
noelf
------------------------------------------------------------------------
noelf's Profile: http://www.excelforum.com/member.php...fo&userid=6979
View this thread: http://www.excelforum.com/showthread...hreadid=386045

  #2   Report Post  
Alex Delamain
 
Posts: n/a
Default


Try this

=17.5/24-(A1-ROUNDDOWN(A1,0)) gives number of hours worked on 1st day

=NETWORKDAYS(A1,A2) gives number of full (8 1/2 hour) working days
(multiply by 8.5/24 to get hours)

=A2-(ROUNDDOWN(A2,0)+0.375) gives number of hours worked on the final
day

add them all up and you should have the number of days/ hours worked


--
Alex Delamain
------------------------------------------------------------------------
Alex Delamain's Profile: http://www.excelforum.com/member.php...o&userid=11273
View this thread: http://www.excelforum.com/showthread...hreadid=386045

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
How do I calculate duration between two dates and times in excel? Robin CSM002 Excel Discussion (Misc queries) 3 May 13th 23 07:42 PM
Formula to calculate elapsed time between certain dates and times Stadinx Excel Discussion (Misc queries) 6 March 25th 05 07:02 AM
How can I calculate the difference between times without using th. KELSEY1022 Excel Worksheet Functions 12 February 2nd 05 05:06 PM
how do i calculate minutes between two times? Ron Excel Discussion (Misc queries) 5 February 2nd 05 01:39 AM
SUMPRODUCT ON TIMES Bob Phillips Excel Worksheet Functions 1 January 13th 05 05:28 PM


All times are GMT +1. The time now is 01:32 PM.

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

About Us

"It's about Microsoft Excel"