LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Grey" wrote in message
...
If I have a cell with the number of a month and a year, how can I produce

a
formula which will...

1. Return the number of days in that month.


=DAY(DATE(A1,B1+1,0))


2. Calculate the number of specific days of the week in that month (e.g.

how
many Tuesdays in Feb 2006)


=INT((DAY(DATE(YEAR(A1),MONTH(A1)+1,1)-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,2))
)+6)/7)

where the 6 refers to the day number, 1 = SUn, etc


If I have two dates, how can I calculate how many working days (mon-fri)
between them?


=NETWORKDAYS(A1,A2,holidays) where holidays is a list of holiday dates


 
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
Complex Date Functions Simon Heaven Excel Worksheet Functions 6 November 6th 09 05:11 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
date calculation Juco Excel Worksheet Functions 1 February 12th 05 05:31 PM
Date Calculation Mukund Excel Worksheet Functions 3 January 11th 05 11:29 AM


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