Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Calculate current time + 7 hours and skipping weekends

Let say is Friday at 8:00 PM. I want to add 7 hours to it and skip all
hours in Saturday and Sunday. Start adding calulating again at Monday
at 12:00 AM (Monday Morning). Any help in this would be appricated. I
have reviewed and reviewed things trying to figure this out.

Eric
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Calculate current time + 7 hours and skipping weekends

On Sun, 8 Jun 2008 15:57:28 -0700 (PDT), Eric wrote:

Let say is Friday at 8:00 PM. I want to add 7 hours to it and skip all
hours in Saturday and Sunday. Start adding calulating again at Monday
at 12:00 AM (Monday Morning). Any help in this would be appricated. I
have reviewed and reviewed things trying to figure this out.

Eric



Try this:

=WORKDAY(A1+TIME(A2,,)-1,1)+MOD(A1+TIME(A2,,),1)

with Date and time in A1; and the number of hours to add in A2

This formula is the same:

=WORKDAY(A1+A2/24-1,1)+MOD(A1+A2/24,1)

--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Calculate current time + 7 hours and skipping weekends

that worked. Thanks. I have to spend some time trying to figure this
out. It makes my head hurt right now so I look at it again tomorrow.

Props to you.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Calculate current time + 7 hours and skipping weekends

On Sun, 8 Jun 2008 17:04:42 -0700 (PDT), Eric wrote:

that worked. Thanks. I have to spend some time trying to figure this
out. It makes my head hurt right now so I look at it again tomorrow.

Props to you.


You're welcome.

By the way, the TIME function is set up to only take integer hours, and its
output is a maximum of 23 hours -- never more.

If you want to use fractional hours, or more than 24 hours, use the second
variation I posted.
--ron
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
date and time [skipping weekends] rhhince[_2_] Excel Worksheet Functions 8 March 30th 08 08:29 AM
Track time to resolution (without including after hours on weekdays and weekends) [email protected] Excel Worksheet Functions 3 February 4th 07 01:57 AM
Calculate number of hours between dates and times excluding Weekends [email protected] Excel Discussion (Misc queries) 1 October 21st 06 02:16 AM
How do I add 12 business hours to the current date/time? [email protected] Excel Worksheet Functions 1 May 10th 06 01:18 AM
How do I add 12 business hours to the current date/time? [email protected] Excel Worksheet Functions 0 May 10th 06 12:45 AM


All times are GMT +1. The time now is 04:32 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"