#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sunday Function
 
Posts: n/a
Default Sunday Function

Please help me with formula to count : Sundays or Weeks per Month (Year 2006) ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default Sunday Function

Assuming you have Month no. (1-12) in A2 thru A13,
=INT((DATE(2006,A2+1,0)-DATE(2006,A2,1)-(6-WEEKDAY(DATE(2006,A2,1),3)))/7)+1
and copy down

HTH
--
AP

"Sunday Function" <Sunday a écrit dans
le message de news:
...
Please help me with formula to count : Sundays or Weeks per Month (Year
2006) ?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sunday Function

With the month number in A1

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(YEAR(TODAY()),A1,1)&":" &DATE(YEAR(T
ODAY()),A1+1,0))))=1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Sunday Function" <Sunday wrote in
message ...
Please help me with formula to count : Sundays or Weeks per Month (Year

2006) ?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Sunday Function

If you have a date in A1, you can have a simpler formula

=4+(DAY(A1-DAY(A1)+35)<WEEKDAY(A1-DAY(A1)-1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Sunday Function" <Sunday wrote in
message ...
Please help me with formula to count : Sundays or Weeks per Month (Year

2006) ?


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
IF function to blank without getting #value in sum function Brad Stevenson Excel Worksheet Functions 5 May 26th 05 10:26 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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