New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

Calculating The Number Of Hours/min Between Two Date Times Excluding After Hours And Weekends

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

Calculating The Number Of Hours/min Between Two Date Times Excluding After Hours And Weekends

Postby Queen » Wed Feb 17, 2016 8:18 am

Hello,

kindly looking at the data below; i am trying to calculate how many hours/minutes/seconds it is from request time to close time. The calculation should be between 8am and 5pm, Monday to Friday only. Such that if the start time is 1/31/2016 19:59 and end time is 2/1/2016 10:01, it will only calculate from 2/1/2016 08:00 to 2/1/2016 10:01
could you kindly help me with this.

Request time Close time
1/31/2016 19:59 2/1/2016 10:01
1/31/2016 18:25 2/3/2016 16:58
1/30/2016 14:11 2/3/2016 8:22
1/30/2016 13:08 1/30/2016 15:19
1/30/2016 9:23 1/30/2016 9:29
1/29/2016 17:28 2/1/2016 13:42
1/29/2016 17:18 2/2/2016 18:08
1/29/2016 16:26 2/3/2016 11:59
1/29/2016 14:58 2/1/2016 8:12
1/29/2016 14:30 1/30/2016 12:18
1/29/2016 13:52 2/1/2016 12:25
1/29/2016 13:47 2/1/2016 8:01
1/29/2016 13:39 1/30/2016 11:16
1/29/2016 13:20 2/2/2016 8:25
1/29/2016 11:40 2/3/2016 7:50
1/29/2016 11:23 2/2/2016 8:26
1/29/2016 10:59 1/29/2016 13:06
1/29/2016 10:55 1/29/2016 14:17
1/29/2016 10:41 1/29/2016 13:38
1/29/2016 10:17 1/29/2016 15:58
1/29/2016 9:53 1/29/2016 11:01
1/29/2016 9:49 1/29/2016 15:32
1/29/2016 9:46 1/29/2016 12:54
1/29/2016 9:41 1/29/2016 10:03
1/29/2016 9:39 1/29/2016 10:56
1/29/2016 9:35 1/29/2016 10:09
1/29/2016 9:28 2/1/2016 8:14
1/29/2016 8:42 2/1/2016 11:40
1/29/2016 8:27 1/29/2016 9:13
1/29/2016 8:27 2/1/2016 14:39
1/29/2016 8:15 1/30/2016 8:46


i have seen lots of similar post but the formula's keep giving me negative values. i really don't no what i am doing wrong. please help me.
  • 0

Queen
Rookie
 
Posts: 1
Joined: Feb 17, 2016
Reputation: 0
Excel Version: excel 2010

Re: Calculating The Number Of Hours/min Between Two Date Times Excluding After Hours And Weekends

Postby pecoflyer » Wed Feb 17, 2016 12:05 pm

Hi and welcome

one of the many solutions on the Net
http://www.exceltactics.com/calculate-net-work-hours-using-networkdays/
  • 0

A relevant topic title helps get faster and more answers
pecoflyer
Moderator
 
Posts: 1274
Joined: Jan 24, 2012
Location: Belgium
Reputation: 39
Excel Version: 2003/2007/2010


Return to General Excel Questions

Who is online

Users browsing this forum: No registered users and 137 guests