Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculating future dates using WORKDAY & specific requirements

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Calculating future dates using WORKDAY & specific requirements

NETWORKDAYS
If you have xl2003 or older, you will need to ensure that the Analysis
Tool-Pak add-in is included.
Your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10))
And if you want to get really fancy, say you have a HOLIDAY list somewhere
that you continue to add holidays on to, and you don't want to include it,
your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10,holi days))
--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"seltzer" wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Calculating future dates using WORKDAY & specific requirements

On Wed, 22 Oct 2008 14:07:01 -0700, seltzer
wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.



....,(WORKDAY($C2,10)))

If you try this and receive a #NAME error, look at HELP for the WORKDAY
function for instructions as to how to resolve this.
--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Calculating future dates using WORKDAY & specific requirements

Hi,

Try
=IF(ISNUMBER(C2),WORKDAY(C2,10),"")

or

=IF(ISNUMBER(C2),WORKDAY(C2,10,G1:G4),"")

Where G1:G4 contain a list of holidays.

Just a reminder, the WORKDAY function is an Analysis ToolPak function which
means you must attach the ATP, Choose Tools, Add-ins, and check Analysis
ToolPak.

If this helps, please check the Yes button.
--
Thanks,
Shane Devenshire


"seltzer" wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculating future dates using WORKDAY & specific requirements

When I add the new section NETWORKDAYS($C2,10)) I get ######### indicating a
negative date. The dates are entered as 20-Mar-07.
When I add the new section WORKDAY($C3,10)) I get the correct answer.

Thank you,
Seltzer


"John C" wrote:

NETWORKDAYS
If you have xl2003 or older, you will need to ensure that the Analysis
Tool-Pak add-in is included.
Your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10))
And if you want to get really fancy, say you have a HOLIDAY list somewhere
that you continue to add holidays on to, and you don't want to include it,
your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10,holi days))
--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"seltzer" wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculating future dates using WORKDAY & specific requirements

Thanks Ron - I switched to using the WORKDAY term rather than NETWORKDAYS
after reading your post & that seemed to be the trick.

"Ron Rosenfeld" wrote:

On Wed, 22 Oct 2008 14:07:01 -0700, seltzer
wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.



....,(WORKDAY($C2,10)))

If you try this and receive a #NAME error, look at HELP for the WORKDAY
function for instructions as to how to resolve this.
--ron

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculating future dates using WORKDAY & specific requirements

After using the WORKDAY($C2,10))) for a series of rows, I ran into some visit
dates that hadn't been firmed up and either were empty cells or had TBD in
them. The formula gave an error message to that which made a "messy" table
but Your formula took that into account and seems to also provide the correct
answers. So it looks like since I need to pre-set this table with the
formulas in place, I will use your suggestion. Thanks, Shane.

And thanks to all of you again for such speedy answers - As soon as I got
into work, there were all of your responses.
Seltzer



"ShaneDevenshire" wrote:

Hi,

Try
=IF(ISNUMBER(C2),WORKDAY(C2,10),"")

or

=IF(ISNUMBER(C2),WORKDAY(C2,10,G1:G4),"")

Where G1:G4 contain a list of holidays.

Just a reminder, the WORKDAY function is an Analysis ToolPak function which
means you must attach the ATP, Choose Tools, Add-ins, and check Analysis
ToolPak.

If this helps, please check the Yes button.
--
Thanks,
Shane Devenshire


"seltzer" wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Calculating future dates using WORKDAY & specific requirements

Yep, sorry, NETWORKDAYS is (startdate,enddate,[holidays]), so I should have
put:
....NETWORKDAYS($C2,$C2+10,holidays)...
--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"seltzer" wrote:

When I add the new section NETWORKDAYS($C2,10)) I get ######### indicating a
negative date. The dates are entered as 20-Mar-07.
When I add the new section WORKDAY($C3,10)) I get the correct answer.

Thank you,
Seltzer


"John C" wrote:

NETWORKDAYS
If you have xl2003 or older, you will need to ensure that the Analysis
Tool-Pak add-in is included.
Your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10))
And if you want to get really fancy, say you have a HOLIDAY list somewhere
that you continue to add holidays on to, and you don't want to include it,
your formula would then be:
=IF(OR($C2="",$C2="NA"),"",NETWORKDAYS($C2,10,holi days))
--
** John C **
Please remember, if your question is answered, to check the YES box below.
It helps everyone.


"seltzer" wrote:

As part of project management duties, I need to continually update a table
that contains various Visit Dates for sites and when the various reports are
due.
Column C contains a date as it is scheduled meaning some of the rows of
pending visits will not yet contain a date in that cell or if the visit is to
be cancelled, the cell will contain NA. The first draft of the report is due
10 days after the Scheduled Visit Date shown in Column C. In the past, I
used the following formula putting the due report date in column D:
=IF(OR($C2="",$C2="NA"),"",($C2+10)) Now the boss wants the draft due 10
Workdays after the Scheduled Visit Date. I have lots of other columns of
data in this table so I'd prefer to keep all of the required parts of the
formula within the one formula if possible. At this time, they aren't
concerned about excluding standard holidays although I wouldn't mind knowing
how to create that formula as well.
Hope someone can help.

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
Loan Schedule - Specific Requirements Stuart[_3_] Excel Discussion (Misc queries) 1 July 29th 08 05:29 PM
Formula for shift schedule & calculating future dates - 2003 paankadu Excel Discussion (Misc queries) 0 June 11th 08 02:53 AM
Calculating a future date ClamBarLover Excel Discussion (Misc queries) 7 June 22nd 07 12:53 AM
Calculating a Date for the Future Niki6 Excel Worksheet Functions 4 September 19th 05 11:49 PM
calculating the future value of a present value se Excel Worksheet Functions 2 December 8th 04 03:42 PM


All times are GMT +1. The time now is 09:08 PM.

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

About Us

"It's about Microsoft Excel"