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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate the # of days in a Month?

Status
Not open for further replies.

AllenRitch

Technical User
May 20, 2003
52
0
0
US
Is there an easy way to calculate the number of days in a month or range of months? The NETWORKDAYS formula doesn't include the weekends and the DAYS360 formula is based on 360 days. I need it to be based on a 365 day calendar year (i.e. actual days).
 
Hi,
[tt]
=date(year(maxdate), month(maxdate)+1, 0)-date(year(mindate), month(mindate), 1)+1
[/tt]


Skip,
[sub]
[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top