PC Review


Reply
Thread Tools Rate Thread

Working with weekdays

 
 
Barry Campbell
Guest
Posts: n/a
 
      12th May 2006
Hi,

I am trying to add and subtract weekdays.

Example
I must schedule the delivery of the printer two days prior to the scheduled
7/10/2006 training date.

High Level Formula: Training Date - 2 days lead time = delivery date

What commands should I use to calculate the delivery date?


 
Reply With Quote
 
 
 
 
SteveG
Guest
Posts: n/a
 
      12th May 2006

Assuming you do not want to include weekends as delivery dates.

=WORKDAY(A1,-2)

Where your training date is in A1. You can also have this ignor
holidays. List your holidays in a range say C1:C10. Your formul
would then be,

=WORKDAY(A2,-2,C1:C10)

If you want holidays and weekends included then just use

=A2-2



HTH

Stev

--
Steve
-----------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...nfo&userid=757
View this thread: http://www.excelforum.com/showthread.php?threadid=54157

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      12th May 2006
Try something like this:

For a date in A1

The below formulas set the Delivery date at 2 workdays prior to the date in
A1:

B1: =WORKDAY(A14,-2)
Note: the WORKDAY function is part of the Analysis ToolPak (ATP) addin,
which must be installed (if not already) and activated.<tools><add-ins>

OR...avoiding the ATP.....
B1: =A1-2-(WEEKDAY(A1)<4)*MIN(WEEKDAY(A1),2)

or....this
B1: =A1-CHOOSE(WEEKDAY(A1),3,4,4,2,2,2,2)

Format B1 as a date

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Barry Campbell" wrote:

> Hi,
>
> I am trying to add and subtract weekdays.
>
> Example
> I must schedule the delivery of the printer two days prior to the scheduled
> 7/10/2006 training date.
>
> High Level Formula: Training Date - 2 days lead time = delivery date
>
> What commands should I use to calculate the delivery date?
>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      12th May 2006
If it can arrive over a weekend, just use

=A1-2

where A1 is the scheduled date. Otherwise use

=WORKDAY(A1,-2)

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Barry Campbell" <(E-Mail Removed)> wrote in message
news:YuqdnY0jZbKiPvnZRVn-(E-Mail Removed)...
> Hi,
>
> I am trying to add and subtract weekdays.
>
> Example
> I must schedule the delivery of the printer two days prior to the

scheduled
> 7/10/2006 training date.
>
> High Level Formula: Training Date - 2 days lead time = delivery

date
>
> What commands should I use to calculate the delivery date?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add weekdays? Interesting Ian Microsoft Excel Discussion 4 11th Dec 2008 07:27 PM
Would like to add 20 working/weekdays to a date =?Utf-8?B?UGV0ZQ==?= Microsoft Excel Misc 8 25th Oct 2005 06:09 PM
weekdays =?Utf-8?B?UmVkQ2hlcXVlcg==?= Microsoft Excel Misc 13 2nd Oct 2004 05:16 AM
weekdays Tom Microsoft Excel Discussion 5 12th Mar 2004 02:42 PM
Calculating Working Weekdays =?Utf-8?B?TmljayBQZWRkZXI=?= Microsoft Access Getting Started 2 3rd Dec 2003 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:13 PM.