Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
maryj
 
Posts: n/a
Default weeknum for month

I know I've done this before but can't remember how.

How do you find the number of the week in a given month?
--
maryj
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
duane
 
Posts: n/a
Default weeknum for month

well it depaneds on how you define the week number.

If the 8th marks the start of the 2nd week, and so on then just take
int(day(the date)/7)

if you want the "wweks" to all start on Monday, for example it's more
complicated

"maryj" wrote:

I know I've done this before but can't remember how.

How do you find the number of the week in a given month?
--
maryj

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
maryj
 
Posts: n/a
Default weeknum for month

Maybe I am mistaken that I have done this before - thought I had, but who
knows. I would want May 2, 2006 to be week 1, May 10th to be week 2, etc.

--
maryj


"duane" wrote:

well it depaneds on how you define the week number.

If the 8th marks the start of the 2nd week, and so on then just take
int(day(the date)/7)

if you want the "wweks" to all start on Monday, for example it's more
complicated

"maryj" wrote:

I know I've done this before but can't remember how.

How do you find the number of the week in a given month?
--
maryj

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
maryj
 
Posts: n/a
Default weeknum for month

I used this formula which is close most of the time -
=INT((DAY(A2)-1)/7)+1
--
maryj


"maryj" wrote:

Maybe I am mistaken that I have done this before - thought I had, but who
knows. I would want May 2, 2006 to be week 1, May 10th to be week 2, etc.

--
maryj


"duane" wrote:

well it depaneds on how you define the week number.

If the 8th marks the start of the 2nd week, and so on then just take
int(day(the date)/7)

if you want the "wweks" to all start on Monday, for example it's more
complicated

"maryj" wrote:

I know I've done this before but can't remember how.

How do you find the number of the week in a given month?
--
maryj

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
Weeknum Mike D. Excel Worksheet Functions 4 February 14th 06 08:44 PM
Weeknum MickeW Excel Worksheet Functions 9 August 23rd 05 08:50 PM
weeknum function says jan1=week1, mod to first 4 day week needed sam Excel Discussion (Misc queries) 3 June 13th 05 04:05 PM
weeknum function returns name error Unison Mike Excel Worksheet Functions 4 May 24th 05 09:27 PM
WeekNum ISO RPitoyo Excel Worksheet Functions 4 December 20th 04 06:24 PM


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