#1   Report Post  
Posted to microsoft.public.excel.programming
MLK MLK is offline
external usenet poster
 
Posts: 81
Default Date ranges

I have 2 sets of date ranges:
1) a list of statutory holiday dates for the current year (ie boxing day,
Easter, etc)
2) a list of 52 weeks for the current year with only Saturday and Friday
dates that represent the start and end date of billing weeks (for example,
Sat Jan 6 and Friday Jan 12 for week 1, Sat Jan 13 and Fri Jan 19 for week 2
and so on).

I would like to be able to count the number of business days per week - but
in order to do this accurately I need to know which weeks have a stat
holidays so that the stat holiday will not count as a business day.

I tried using variations of vlookup, but I don't this this will work.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Date ranges

Look into using the NETWORKDAYS function... it does exactly what you want.
It requires the Analysis ToolPak add-in to be added to your copy of Excel
(via Tools/AddIn on Excel's menu).

Rick


"MLK" wrote in message
...
I have 2 sets of date ranges:
1) a list of statutory holiday dates for the current year (ie boxing day,
Easter, etc)
2) a list of 52 weeks for the current year with only Saturday and Friday
dates that represent the start and end date of billing weeks (for
example,
Sat Jan 6 and Friday Jan 12 for week 1, Sat Jan 13 and Fri Jan 19 for week
2
and so on).

I would like to be able to count the number of business days per week -
but
in order to do this accurately I need to know which weeks have a stat
holidays so that the stat holiday will not count as a business day.

I tried using variations of vlookup, but I don't this this will work.

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
MLK MLK is offline
external usenet poster
 
Posts: 81
Default Date ranges

Works like a charm! Thank you very much for your help.
Mary-Lou

"Rick Rothstein (MVP - VB)" wrote:

Look into using the NETWORKDAYS function... it does exactly what you want.
It requires the Analysis ToolPak add-in to be added to your copy of Excel
(via Tools/AddIn on Excel's menu).

Rick


"MLK" wrote in message
...
I have 2 sets of date ranges:
1) a list of statutory holiday dates for the current year (ie boxing day,
Easter, etc)
2) a list of 52 weeks for the current year with only Saturday and Friday
dates that represent the start and end date of billing weeks (for
example,
Sat Jan 6 and Friday Jan 12 for week 1, Sat Jan 13 and Fri Jan 19 for week
2
and so on).

I would like to be able to count the number of business days per week -
but
in order to do this accurately I need to know which weeks have a stat
holidays so that the stat holiday will not count as a business day.

I tried using variations of vlookup, but I don't this this will work.

Any ideas?



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
How do I get a new calculated date from different date ranges? Ann LeBlanc Excel Worksheet Functions 3 June 26th 09 01:56 PM
Using IF and date ranges Romanli Excel Worksheet Functions 1 July 25th 08 12:20 AM
Date ranges Fortune Excel Worksheet Functions 1 March 28th 07 05:18 PM
compare date to various date ranges and sum value al Excel Worksheet Functions 2 January 10th 07 10:17 AM
Date Ranges wbiggchiefy Excel Programming 4 February 10th 06 07:12 PM


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