Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DKerr
 
Posts: n/a
Default Show week number in current month


Hi,

In cell A1 I have a "=today()" to show todays date in dd/mm/yy format,
in cell B1, I would like to have have a number to represent the week
number in the current month. So the 2/12/05 would show in B1 as "1"
while 30/12/05 would show as "5". Using "=weeknum(A1)" gives me the
week number against the whole year (ie - 53) for todays date. How can
get B1 to show only 1 to 5 for the weeks in the current month only?


--
DKerr
------------------------------------------------------------------------
DKerr's Profile: http://www.excelforum.com/member.php...o&userid=13087
View this thread: http://www.excelforum.com/showthread...hreadid=496942

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Show week number in current month

=INT((DAY(A1)+7)/7)

assuming you are using a simple rule of days 1-7 are week 1, 8-14 week 2,
....

--

HTH

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


"DKerr" wrote in
message ...

Hi,

In cell A1 I have a "=today()" to show todays date in dd/mm/yy format,
in cell B1, I would like to have have a number to represent the week
number in the current month. So the 2/12/05 would show in B1 as "1"
while 30/12/05 would show as "5". Using "=weeknum(A1)" gives me the
week number against the whole year (ie - 53) for todays date. How can
get B1 to show only 1 to 5 for the weeks in the current month only?


--
DKerr
------------------------------------------------------------------------
DKerr's Profile:

http://www.excelforum.com/member.php...o&userid=13087
View this thread: http://www.excelforum.com/showthread...hreadid=496942



  #3   Report Post  
Posted to microsoft.public.excel.misc
DKerr
 
Posts: n/a
Default Show week number in current month


Thanks,

That works perfectly


--
DKerr
------------------------------------------------------------------------
DKerr's Profile: http://www.excelforum.com/member.php...o&userid=13087
View this thread: http://www.excelforum.com/showthread...hreadid=496942

  #4   Report Post  
Posted to microsoft.public.excel.misc
Joe
 
Posts: n/a
Default Show week number in current month

Bob, I tried this, and it puts the 7th day into week 2. Is there some way to
keep 1-7 as week 1?

"Bob Phillips" wrote:

=INT((DAY(A1)+7)/7)

assuming you are using a simple rule of days 1-7 are week 1, 8-14 week 2,
....

--

HTH

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


"DKerr" wrote in
message ...

Hi,

In cell A1 I have a "=today()" to show todays date in dd/mm/yy format,
in cell B1, I would like to have have a number to represent the week
number in the current month. So the 2/12/05 would show in B1 as "1"
while 30/12/05 would show as "5". Using "=weeknum(A1)" gives me the
week number against the whole year (ie - 53) for todays date. How can
get B1 to show only 1 to 5 for the weeks in the current month only?


--
DKerr
------------------------------------------------------------------------
DKerr's Profile:

http://www.excelforum.com/member.php...o&userid=13087
View this thread: http://www.excelforum.com/showthread...hreadid=496942




  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Show week number in current month

How about:

=INT((DAY(A1)-1+7)/7)



Joe wrote:

Bob, I tried this, and it puts the 7th day into week 2. Is there some way to
keep 1-7 as week 1?

"Bob Phillips" wrote:

=INT((DAY(A1)+7)/7)

assuming you are using a simple rule of days 1-7 are week 1, 8-14 week 2,
....

--

HTH

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


"DKerr" wrote in
message ...

Hi,

In cell A1 I have a "=today()" to show todays date in dd/mm/yy format,
in cell B1, I would like to have have a number to represent the week
number in the current month. So the 2/12/05 would show in B1 as "1"
while 30/12/05 would show as "5". Using "=weeknum(A1)" gives me the
week number against the whole year (ie - 53) for todays date. How can
get B1 to show only 1 to 5 for the weeks in the current month only?


--
DKerr
------------------------------------------------------------------------
DKerr's Profile:

http://www.excelforum.com/member.php...o&userid=13087
View this thread: http://www.excelforum.com/showthread...hreadid=496942





--

Dave Peterson
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
Calculating the number of Fridays in a month Greg Ward Excel Worksheet Functions 5 March 2nd 05 05:47 PM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM
Dynamic Column VlookUps Based on Week Number TLK40us Excel Worksheet Functions 3 November 14th 04 03:33 PM
Returning the Week Number of a Specific Date on a Month arjcvg Excel Worksheet Functions 1 November 3rd 04 04:35 AM
Returning the Week Number of a Specific Date on a Month arjcvg Excel Worksheet Functions 0 November 3rd 04 04:26 AM


All times are GMT +1. The time now is 05:28 PM.

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"