LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default NETWORKDAYS thru 2020

Ron,

Thanks for the ideas. I realized going in it probably would take some time
to compile all the dates, but the formulas you gave me will help.
--
Steve C


"Ron Rosenfeld" wrote:

On Fri, 13 Apr 2007 07:32:07 -0700, Steve C
wrote:

Is there an easy way to create a list of all non-working days (Sat & Sun,
major holidays) between now and the year 2020? I want to use this range as
the "holidays" argument in the NETWORKDAYS function.

I could create this list by hand, but if it can be done with programming,
all the better! Thanks for any ideas you can give me.


Since NETWORKDAYS already excludes Saturdays and Sundays, I don't understand
why you would want to include those dates in your function.

I think you really only need a list of the holiday dates. Perhaps you could
find such a list on the web.

If not, then some are easy:

New Years
Christmas
July 4.

Some are a little more complicated:

Labor Day
Thanksgiving

Some are probably best done by looking them up in a table:

Easter

Some require knowledge of the rules for the particular corporation:

If Christmas is on a Saturday, is Friday a working day?

A formula for New Years might be:

=DATE(ROWS($1:2008),1,1)

as you copy/drag down, it will give you Jan 1 for the years from 2008 to
however far down you drag it.

Labor Day is the first Monday in September, so:

=DATE(ROWS($1:2007),8,31)-WEEKDAY(DATE(ROWS($1:2007),8,31)+6)+8

and copy/drag down.

and so forth.
--ron



 
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
Networkdays Lyn Excel Discussion (Misc queries) 6 August 21st 08 04:04 PM
NETWORKDAYS Connie Martin Excel Worksheet Functions 9 August 12th 08 01:38 AM
networkdays oldLearner57 Excel Discussion (Misc queries) 2 April 14th 08 06:26 PM
NETWORKDAYS Trouvera52 Excel Worksheet Functions 2 October 14th 06 12:21 AM
networkdays rsenn Excel Worksheet Functions 0 November 24th 05 12:42 AM


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