Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Generating dates from a calender week value

Dear friends,
I have a value let's say KW12 (calender week 12) in year 2009 and I want
excel to list all the dates that falls under KW12.
Please advice!
Brgds, LS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Generating dates from a calender week value

Hi,

I would look at the WEEKNUM function. This is an ATP function in 2003 or
earlier. So you need to choose Tools, Add-ins and check the Analysis ToolPa.
then look at the Hep for this function.

You will need to define what you mean by calendar week, this varies from
country to country. You will also need to tell us what will trigger the
display of the days in the desired week. Are you entering KW12 in cell A1?
Or what?


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Lalit Sharma" wrote:

Dear friends,
I have a value let's say KW12 (calender week 12) in year 2009 and I want
excel to list all the dates that falls under KW12.
Please advice!
Brgds, LS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 225
Default Generating dates from a calender week value

Try (for the year 2009)
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+1
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+2
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+3
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+4
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+5
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+6
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+7
and format the cells as Dates

with the week number in A1...


"Lalit Sharma" wrote:

Dear friends,
I have a value let's say KW12 (calender week 12) in year 2009 and I want
excel to list all the dates that falls under KW12.
Please advice!
Brgds, LS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Generating dates from a calender week value

Dear Sheeloo,

Thanks a ton for your kind assistance. It answered my purpose very well and
I am really delighted :-))

Brgds, LS

"Sheeloo" wrote:

Try (for the year 2009)
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+1
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+2
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+3
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+4
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+5
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+6
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+7
and format the cells as Dates

with the week number in A1...


"Lalit Sharma" wrote:

Dear friends,
I have a value let's say KW12 (calender week 12) in year 2009 and I want
excel to list all the dates that falls under KW12.
Please advice!
Brgds, LS

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 225
Default Generating dates from a calender week value

You are most welcome. Thanks for your feedback Lalit.

If the first formula is in first row then you can use
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+($A$1-1)*7+ROW()

and copy it down till the seventh row... ROW() gives 1 for row 1, 2 for
row2...

You can also use
Year(today()) instead of 2009 if you want this to work next year too :-)

"Lalit Sharma" wrote:

Dear Sheeloo,

Thanks a ton for your kind assistance. It answered my purpose very well and
I am really delighted :-))

Brgds, LS

"Sheeloo" wrote:

Try (for the year 2009)
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+1
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+2
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+3
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+4
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+5
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+6
=DATE(2009,1,1)-WEEKDAY(DATE(2009,1,1))+(A1-1)*7+7
and format the cells as Dates

with the week number in A1...


"Lalit Sharma" wrote:

Dear friends,
I have a value let's say KW12 (calender week 12) in year 2009 and I want
excel to list all the dates that falls under KW12.
Please advice!
Brgds, LS

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
Convert regular Date to Week Ending or Week Beginning Dates Sam H Excel Discussion (Misc queries) 5 April 3rd 23 04:39 PM
Generating Calender in Excel giving start & end dates [email protected] Excel Worksheet Functions 1 May 11th 07 12:18 PM
Work Week calender Bee Excel Discussion (Misc queries) 1 July 27th 05 01:56 PM
Generating Calender Automatically Mei New Users to Excel 1 May 30th 05 04:42 AM
Determining Dates Within A Calender Mark Excel Worksheet Functions 0 November 8th 04 06:41 AM


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