Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculate Transaction Time Over Days

I am trying to calculate how much time it takes, in hours and minutes, to
process a transaction when the start time occurs on one day and time and the
end-time occurs a day or two later. The processing time needs to exclude
weekends and non-working hours.
I have been trying to use the NETWORKDAYS function and have a list of
holidays.
I can get the total elapsed hours between the two days but run into problems
when trying to deduct the non-working hours during the week and the weekends
and holidays.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculate Transaction Time Over Days

Niek:

Thanks for the link, but I was really hoping to avoid using VBA. I don't
know much about it and was hoping there would be some combination of time or
date functions that I could put into a cell or series of cells.

--
Denny Knepper
Management Analyst
PA Dept of Transportation


"Niek Otten" wrote:

Hi Denny,

Look he

http://www.sulprobil.com/html/count_hours.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Denny Knepper" <Denny wrote in message
...
|I am trying to calculate how much time it takes, in hours and minutes, to
| process a transaction when the start time occurs on one day and time and the
| end-time occurs a day or two later. The processing time needs to exclude
| weekends and non-working hours.
| I have been trying to use the NETWORKDAYS function and have a list of
| holidays.
| I can get the total elapsed hours between the two days but run into problems
| when trying to deduct the non-working hours during the week and the weekends
| and holidays.
|



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Calculate Transaction Time Over Days

Can you approach the problem in the following way:

1. Use Networkdays to get the number of whole days between the two dates
(excluding the start and end days).
2. Multiply this by the number of working hours in the day.
3. Add time worked on the start day (which would be quitting time minus the
start time)
4. Add time worked on the end day (eg, ending time minus workday start
time).

If A1 is Start day/time, and A2 is end day/time, something like this:

=(networkdays(a1,a2)-2)*8+time(17,0,0)-mod(a1,1)+mod(a2,1)-time(8,30,0)

Would this work for you?

Regards,
Fred

"Denny Knepper" wrote in message
...
Niek:

Thanks for the link, but I was really hoping to avoid using VBA. I don't
know much about it and was hoping there would be some combination of time
or
date functions that I could put into a cell or series of cells.

--
Denny Knepper
Management Analyst
PA Dept of Transportation


"Niek Otten" wrote:

Hi Denny,

Look he

http://www.sulprobil.com/html/count_hours.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Denny Knepper" <Denny wrote in
message
...
|I am trying to calculate how much time it takes, in hours and minutes,
to
| process a transaction when the start time occurs on one day and time
and the
| end-time occurs a day or two later. The processing time needs to
exclude
| weekends and non-working hours.
| I have been trying to use the NETWORKDAYS function and have a list of
| holidays.
| I can get the total elapsed hours between the two days but run into
problems
| when trying to deduct the non-working hours during the week and the
weekends
| and holidays.
|




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
calculate time in days:hours:minutes Stice Excel Discussion (Misc queries) 1 February 5th 07 09:55 PM
Transaction type/ Transaction amount in two separate columns Mike New Users to Excel 5 November 9th 06 02:38 PM
Calculate the Days migdad Excel Worksheet Functions 8 May 1st 06 12:53 AM
calculate days JR Excel Worksheet Functions 4 April 22nd 06 05:06 PM
HOW TO CALCULATE THE DAYS? Bel Excel Worksheet Functions 2 February 2nd 05 07:05 PM


All times are GMT +1. The time now is 03:08 AM.

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"