Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Finding the date using the number of the week in a year

Hi All,

I have manipulated some data and managed to get the week number of each row
and the day of that week (a number from 1 to 7, 1 = monday, 7 = sunday) in
any particular year.

e.g. for today (27 Mar 2007):
week number = 13
year = 2007
day = 2 (2 for tuesday).

Using this data, is there anyway i can return the actual date for today
(e.g. 27-Mar-07) using a formula ?

Any help would be much appreciated.

Regards,

Bhupinder.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Finding the date using the number of the week in a year

One way:

A1: 2007
A2: 13
A3: 2

B1: =DATE(A1,1,A2*7-WEEKDAY(DATE(A1,1,0))+A3-6)

In article ,
Bhupinder Rayat wrote:

Hi All,

I have manipulated some data and managed to get the week number of each row
and the day of that week (a number from 1 to 7, 1 = monday, 7 = sunday) in
any particular year.

e.g. for today (27 Mar 2007):
week number = 13
year = 2007
day = 2 (2 for tuesday).

Using this data, is there anyway i can return the actual date for today
(e.g. 27-Mar-07) using a formula ?

Any help would be much appreciated.

Regards,

Bhupinder.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Finding the date using the number of the week in a year

great, nice one JE, cheers.

"JE McGimpsey" wrote:

One way:

A1: 2007
A2: 13
A3: 2

B1: =DATE(A1,1,A2*7-WEEKDAY(DATE(A1,1,0))+A3-6)

In article ,
Bhupinder Rayat wrote:

Hi All,

I have manipulated some data and managed to get the week number of each row
and the day of that week (a number from 1 to 7, 1 = monday, 7 = sunday) in
any particular year.

e.g. for today (27 Mar 2007):
week number = 13
year = 2007
day = 2 (2 for tuesday).

Using this data, is there anyway i can return the actual date for today
(e.g. 27-Mar-07) using a formula ?

Any help would be much appreciated.

Regards,

Bhupinder.


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
Finding Friday in week number DavidS New Users to Excel 5 October 24th 06 10:04 AM
how to insert month date year and day of week Sachi Noma Excel Discussion (Misc queries) 3 May 19th 06 03:03 AM
how to insert month date year and day of week Sachi Noma New Users to Excel 2 May 19th 06 03:03 AM
how to insert month date year and day of week Sachi Noma Excel Worksheet Functions 3 May 19th 06 03:03 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


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