+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Convert Weeknum to a date.

  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    Telford, england
    MS-Off Ver
    Excel 2007
    Posts
    13

    Red face Convert Weeknum to a date.

    I have calculated the weeknum for a particular date but, they now want it to show the week commencing date.

    i.e. week 15 begins 02Apr12.

    So instead of showing week 15, I need to show 02Apr12. Week 16 would show 09Apr12. etc. etc.

    My head exploded and I can't think of a way to do it. Forgive me, It is Friday.

    Regards

    Mike

  2. #2
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Convert Weeknum to a date.

    What is week 1?
    If someone helped give them rep using the star button.

    If you have received a satisfactory solution please mark the thread solved. If not Fotis will come for you at night :P

  3. #3
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Convert Weeknum to a date.

    Because it will be what ever the first date is ="01/01/2012"+(15*7) but you first week obviously doesn't start 1/1/12

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Convert Weeknum to a date.

    Hi,

    With the week number in A1,

    =DATE(2012,1,2)+(A1-2)*7

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    02-18-2010
    Location
    Telford, england
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Convert Weeknum to a date.

    Sorted, i just remembered.

    =R2*7+DATE(YEAR(TODAY()),1,1)-WEEKDAY(R2*7+DATE(YEAR(TODAY()),1,1),2)+1

    Works fine.

    Need a beer to get my brain moving.

    I will mark this as closed.

    MIke

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Convert Weeknum to a date.

    Richard in your formula how come A1 needs -2?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1