+ Reply to Thread
Results 1 to 5 of 5

Sequential Week Year Number

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Sequential Week Year Number

    Hi Everyone,

    I'm struggling to put this formula together, but essentially I have my data set up by week numbers (WWYY) Row 1 and I want the subsquent week to be listed below it. I cannot do +1 since there are only 52 weeks. I almost got it to work in column A. I hardcoded the values I'm expecting in columns B and C.

    Really appreciate any set of eyes on this.

    Thanks,
    Steven
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Sequential Week Year Number

    What's wrong with column A???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Sequential Week Year Number

    In A2

    =$A$1+MOD(ROWS($A$1:A1),52)+INT((ROW()-1)/52)*100

    Copy down

    (Like Glenn: your original looks OK)

    in B2

    =OFFSET($A$1,COLUMNS($A:A)+ROWS($1:1),0)

    or better

    =INDEX($A$2:$A$1000,ROWS($1:1)+COLUMNS($A:A))

    Copy across and down
    Attached Files Attached Files
    Last edited by JohnTopley; 10-11-2016 at 11:48 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Sequential Week Year Number

    Nice one J. I had been getting hopelessly tangled up in INTs and MODs to make a one-formula-fits-all solution, but gave up when I saw your post. I'd just suggest one further enhancement:

    in A1, copied across:

    =--(15+INT((COLUMNS($A:A)-1)/52)&TEXT(MOD(COLUMNS($A:A)-1,52)+1,"00"))

    That, together with your two formulae, should make the whole thing run smoothly.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Sequential Week Year Number

    @Glenn,
    Thanks for the feedback. I too was going down the MOD/INT when the proverbial light bulb switched on!

    I hadn't looked at ROW 1 so thank you for the update.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calculate Week Range from Week Number, Month and Year?
    By A108A108 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-07-2016, 03:11 PM
  2. [SOLVED] Get the date of saturday in a week from a week number / year
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2015, 06:56 PM
  3. Turning WEEK number into a YEAR
    By gwennita in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2014, 07:11 PM
  4. [SOLVED] Obtain Year and Week Number.
    By SamCV in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2014, 08:38 PM
  5. Year and week, adding zero before week number
    By randalino in forum Excel General
    Replies: 1
    Last Post: 06-23-2009, 10:34 AM
  6. Week Number and Year
    By axc0054 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2008, 05:24 PM
  7. [SOLVED] Calculating a Date Based on Year, Week Number and Day of the Week
    By amy in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-23-2005, 11:42 AM

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