Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to calculation number of weeks in a month?

Status
Not open for further replies.

txwylde

Programmer
Jan 25, 2001
60
US
I need to create a variable that I can use to calculate the number of weeks in 1 month. Some months will have 5 weeks and some will have 4. Is there an easy formula to do this?
thanks!
Bill
 
Code:
=Count(Week(<date>) In <Month(<date>)

within a given year,

or:

Code:
=Count(Week(<date>) In (<Month(<date>),Year(<date>))


Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top