View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Identifing Weeks in a Month.

On Thu, 30 Jul 2009 14:28:01 -0700, GEM wrote:

I have this function,

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")&" -
"&TEXT(TODAY()-WEEKDAY(NOW(),3)+6,"mmmm d, yyyy")

It identifies the week we are currently in starting on Monday by giving me
the result "July 27, 2009 - August 2, 2009"

How can I insert a function on different cells which give me the first,
second, third, and forth week of the month?? For example for this month,

A1=June 29, 2009 - July 5, 2009
A2=July 6, 2009 - July 12, 2009
A3=July 13, 2009 - July 19, 2009
A4= July 20, 2009 - July 26, 2009
A5=July 27, 2009 - August 2, 2009



A1:
=TEXT(TODAY()+7*(ROWS($1:1)-1)-DAY(TODAY())-
WEEKDAY(TODAY()-DAY(TODAY())-2),"mmmm d, yyyy - ")
& TEXT(TODAY()+7*(ROWS($1:1)-1)+6-DAY(TODAY())-
WEEKDAY(TODAY()-DAY(TODAY())-2),"mmmm d, yyyy")

and fill down through A5
--ron