Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nico
 
Posts: n/a
Default number of mondays in period

Hello,
can someone tell me a way to calculate the number of mondays (or any other
weekday) between two specified dates? The formula should not use arrays, of
possible, as I'm trying to add it to an existing formula adding stuff
relating to months, already. Thanks,
Nico
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default


=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)),2)=1))

=INT((A2-WEEKDAY(A2)-A1+9)/7)

start date in A1 end in A2


Regards,

Peo Sjoblom

"nico" wrote:

Hello,
can someone tell me a way to calculate the number of mondays (or any other
weekday) between two specified dates? The formula should not use arrays, of
possible, as I'm trying to add it to an existing formula adding stuff
relating to months, already. Thanks,
Nico

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 9 Jun 2005 13:49:04 -0700, "nico"
wrote:

Hello,
can someone tell me a way to calculate the number of mondays (or any other
weekday) between two specified dates? The formula should not use arrays, of
possible, as I'm trying to add it to an existing formula adding stuff
relating to months, already. Thanks,
Nico



=INT((A2-WEEKDAY(A2-1)-A1+8)/7)


--ron
  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 09 Jun 2005 18:53:07 -0400, Ron Rosenfeld
wrote:

On Thu, 9 Jun 2005 13:49:04 -0700, "nico"
wrote:

Hello,
can someone tell me a way to calculate the number of mondays (or any other
weekday) between two specified dates? The formula should not use arrays, of
possible, as I'm trying to add it to an existing formula adding stuff
relating to months, already. Thanks,
Nico



=INT((A2-WEEKDAY(A2-1)-A1+8)/7)



courtesy of Daniel M. by the way


--ron
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Calculating interest on number of days in the period Ron Excel Worksheet Functions 0 January 18th 05 12:59 AM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
multiply by actual number in cell CJ Cerezo Excel Worksheet Functions 3 November 29th 04 09:43 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 12:22 PM.

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"