#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Calculating weeks

Hi

I'm hoping this is more straightforward than I'm making it.

What I want is a formula to look at cell A1 (month) and B1 (year), and
give me the first complete week (ending on a Monday) in that month,
and a second formula to give me the last complete week (ending on a
Monday) in that month. So:

A1 B1
November 2011

result: First 07.11.11; Last: 28.11.11

Any ideas would be greatly appreciated.

Alan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Calculating weeks

On Thu, 20 Oct 2011 01:47:22 -0700 (PDT), Steve wrote:

Hi

I'm hoping this is more straightforward than I'm making it.

What I want is a formula to look at cell A1 (month) and B1 (year), and
give me the first complete week (ending on a Monday) in that month,
and a second formula to give me the last complete week (ending on a
Monday) in that month. So:

A1 B1
November 2011

result: First 07.11.11; Last: 28.11.11

Any ideas would be greatly appreciated.

Alan


The problem is that your specifications are not clear.

Excel does not "give you" anything. In terms of your question, it can return a date or multiple dates.
If you are looking for it to return multiple dates, it can provide vertical or horizontal arrays, or fill in a sequence of cells in the same row or the same column.

In any event, a starting point for whatever you want would be to determine the date of the first and last Monday in a month.

The first Monday would be given by the formula:

=DATE(B1,A1,8)-WEEKDAY(DATE(B1,A1,1)-2)

and the last Monday by the formula:

=DATE(B1,A1+1,1)-WEEKDAY(DATE(B1,A1+1,1)-2)

What to do with these values depends on specifics you have not yet supplied.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Calculating weeks

Hi Ron

Thank you for replying.

The dates would be used to calculate the number of weeks between start
and finish in order to determine weekly Student loan amounts. Even I
can do the formula for that one :)

Thanks again!

Alan
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Calculating weeks

On Thu, 20 Oct 2011 07:13:49 -0700 (PDT), Steve wrote:

Hi Ron

Thank you for replying.

The dates would be used to calculate the number of weeks between start
and finish in order to determine weekly Student loan amounts. Even I
can do the formula for that one :)

Thanks again!

Alan


Well, what I supplied should get you started. Let me know if you need anything more.

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
Help With Calculating Weeks Peter From The UK Excel Worksheet Functions 3 December 30th 07 05:53 PM
calculating number of weeks between two set dates answer786 Excel Worksheet Functions 2 August 21st 07 04:34 PM
calculating with weeks Fawn[_2_] Excel Discussion (Misc queries) 1 July 11th 07 07:32 AM
Formula for calculating the last four weeks Huber57 Excel Discussion (Misc queries) 1 March 28th 07 02:20 PM
calculating weeks worked klillestol Excel Worksheet Functions 2 October 30th 04 04:26 AM


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