Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default Identifing Weeks in a Month.

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Identifing Weeks in a Month.


How do you define the "first" week of the month? In your example June
29th clearly starts in the previous month, but presumably week 1 of
August starts on 3rd August, is there a rule?


--
barry houdini
------------------------------------------------------------------------
barry houdini's Profile: http://www.thecodecage.com/forumz/member.php?userid=72
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121210

  #3   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default Identifing Weeks in a Month.

Thank you Barry,

I want to start on a Monday, if the first day of the month starts on a
friday, I would like to identify the monday right before that friday first of
the month. For example this month, the 1st of July started on a Wednesday, so
I would like to start on Monday June 29th. And the last day of July will be
on a Friday, so I would like it to end on Sunday August 2nd, because they are
complete weeks from Monday - Sunday.

Did I get my message throught??


"barry houdini" wrote:


How do you define the "first" week of the month? In your example June
29th clearly starts in the previous month, but presumably week 1 of
August starts on 3rd August, is there a rule?


--
barry houdini
------------------------------------------------------------------------
barry houdini's Profile: http://www.thecodecage.com/forumz/member.php?userid=72
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121210


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Identifing Weeks in a Month.

In A1: =TODAY()

In B1:
=TEXT(DATE(YEAR($A$1),MONTH($A$1),(ROWS($1:1)-1)*7+1)-WEEKDAY(DATE(YEAR($A$1),MONTH($A$1),(ROWS($1:1)-1)*7+1))+2,"mmmm
dd, yyyy")&" -
"&TEXT(DATE(YEAR($A$1),MONTH($A$1),(ROWS($1:1)-1)*7+1)-WEEKDAY(DATE(YEAR($A$1),MONTH($A$1),(ROWS($1:1)-1)*7+1))+8,"mmmm dd, yyyy")

copy from B1 down

The result will be:

June 29, 2009 - July 05, 2009
July 06, 2009 - July 12, 2009
July 13, 2009 - July 19, 2009
July 20, 2009 - July 26, 2009
July 27, 2009 - August 02, 2009




"GEM" wrote:

Thank you Barry,

I want to start on a Monday, if the first day of the month starts on a
friday, I would like to identify the monday right before that friday first of
the month. For example this month, the 1st of July started on a Wednesday, so
I would like to start on Monday June 29th. And the last day of July will be
on a Friday, so I would like it to end on Sunday August 2nd, because they are
complete weeks from Monday - Sunday.

Did I get my message throught??


"barry houdini" wrote:


How do you define the "first" week of the month? In your example June
29th clearly starts in the previous month, but presumably week 1 of
August starts on 3rd August, is there a rule?


--
barry houdini
------------------------------------------------------------------------
barry houdini's Profile: http://www.thecodecage.com/forumz/member.php?userid=72
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121210


  #5   Report Post  
Posted to microsoft.public.excel.misc
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
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
How do you calculate the number of weeks on a month Sunnyskies Excel Discussion (Misc queries) 7 April 4th 23 11:23 AM
Help Please: Need an Average for 16 Weeks according to Month drober Excel Worksheet Functions 2 June 9th 09 02:48 AM
Sequence of Weeks in a month Elton Law[_2_] Excel Worksheet Functions 4 May 15th 09 02:20 AM
Sum data for weeks in a month Eloise Excel Discussion (Misc queries) 4 March 18th 08 08:43 PM
How do I count the number of even weeks in the current month. dd Excel Worksheet Functions 6 February 22nd 07 07:29 AM


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