Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Days in a specific month

Hi all,

I hve noted there are documented ways to calculate the number of
weekdays in any month, but my enquiry is somewhat different.

I have 5000 rows, with two columns [actual_start] and [actual_end] for
my date ranges, which invariably stay within a calendar month. Easy
enough to calculate the number of weekdays between the two dates
( NETWORKDAYS() ). But, if the two dates go between say 27-Aug-09
and 3-Oct-09, I only want to know the number of weekdays in September.

is this possible, and can anyone advise?

TIA
Pete
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Days in a specific month

If you could post *several* representative samples and the expected results
it would help.

--
Biff
Microsoft Excel MVP


"DubboPete" wrote in message
...
Hi all,

I hve noted there are documented ways to calculate the number of
weekdays in any month, but my enquiry is somewhat different.

I have 5000 rows, with two columns [actual_start] and [actual_end] for
my date ranges, which invariably stay within a calendar month. Easy
enough to calculate the number of weekdays between the two dates
( NETWORKDAYS() ). But, if the two dates go between say 27-Aug-09
and 3-Oct-09, I only want to know the number of weekdays in September.

is this possible, and can anyone advise?

TIA
Pete



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Days in a specific month

If you have to select the middle month from a 3 months period (like 09 from
08,09,10 in your example) then
=NETWORKDAYS(IF(MONTH(A1)<MONTH(B1);DATE(YEAR(B1); MONTH(B1)-1;1);A1);IF(MONTH(A1)<MONTH(B1);DATE(YEAR(B1);MONT H(B1);0);B1))
Regards,
Stefi

€žDubboPete€ť ezt Ă*rta:

Hi all,

I hve noted there are documented ways to calculate the number of
weekdays in any month, but my enquiry is somewhat different.

I have 5000 rows, with two columns [actual_start] and [actual_end] for
my date ranges, which invariably stay within a calendar month. Easy
enough to calculate the number of weekdays between the two dates
( NETWORKDAYS() ). But, if the two dates go between say 27-Aug-09
and 3-Oct-09, I only want to know the number of weekdays in September.

is this possible, and can anyone advise?

TIA
Pete

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
Number of days in a specific month between various start and end d ibvalentine Excel Worksheet Functions 8 May 1st 09 04:20 PM
excel to make the days cary over month to month automaticly GARY New Users to Excel 1 April 19th 08 06:05 PM
Calc Prorated Cost based on Specific Days in a Given Month & Year Range (Revisited..) [email protected] Excel Discussion (Misc queries) 8 October 2nd 07 12:15 AM
Number of days in month counted from shortened name of month & yea Tumar Excel Worksheet Functions 6 September 18th 07 03:36 PM
Days per month for calculating storage days Bart Excel Worksheet Functions 3 January 31st 07 06:40 PM


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