Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Whats the Week of the Month?


Is there a function or code for a function that will give me the week of
the month?


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=567094

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 380
Default Whats the Week of the Month?

What's the criteria, does it start on 1st, first Monday, etc.?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"ceemo" wrote in
message ...

Is there a function or code for a function that will give me the week of
the month?


--
ceemo
------------------------------------------------------------------------
ceemo's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Whats the Week of the Month?

Assuming week 1 starts on the 1st of a month:

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

where A1 is the date

Is this what you want?

"ceemo" wrote:


Is there a function or code for a function that will give me the week of
the month?


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=567094


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default Whats the Week of the Month?

"Toppers" wrote in message
...

"ceemo" wrote:
Is there a function or code for a function that will give me the week of
the month?


Assuming week 1 starts on the 1st of a month:

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

where A1 is the date

Is this what you want?


Wouldn't that always make week 1 a 6 day week?
--
David Biddulph


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Whats the Week of the Month?


well the original requirement was that if the 1st was between a thursday
and a sunday inclusive then that should be week four and the following
week, week 1. If the first was between a monday and wednesay day then
that would count as week one.

This was how it was explained to me but im thinking this ma be to much
effort


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=567094



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Whats the Week of the Month?

You're right .... should be

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

Thanks

"David Biddulph" wrote:

"Toppers" wrote in message
...

"ceemo" wrote:
Is there a function or code for a function that will give me the week of
the month?


Assuming week 1 starts on the 1st of a month:

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

where A1 is the date

Is this what you want?


Wouldn't that always make week 1 a 6 day week?
--
David Biddulph



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 380
Default Whats the Week of the Month?

=INT((M1-(DATE(YEAR(M1),MONTH(M1),1)-WEEKDAY(DATE(YEAR(M1),MONTH(M1),1),2)+1
))/7)+1

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"ceemo" wrote in
message ...

well the original requirement was that if the 1st was between a thursday
and a sunday inclusive then that should be week four and the following
week, week 1. If the first was between a monday and wednesay day then
that would count as week one.

This was how it was explained to me but im thinking this ma be to much
effort


--
ceemo
------------------------------------------------------------------------
ceemo's Profile:

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



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
Show week number in current month DKerr Excel Discussion (Misc queries) 4 February 23rd 06 09:20 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
calculate month from week number ankman Excel Worksheet Functions 2 November 24th 04 01:27 AM


All times are GMT +1. The time now is 04:42 AM.

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"