+ Reply to Thread
Results 1 to 9 of 9

offset week number for a 4-4-5 calendar

  1. #1
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    offset week number for a 4-4-5 calendar

    Hi All,

    Ive spent two years developing a CRM system and now the last thing i need to do is the dating system. sales and performance etc are all filtered by year and week.

    The calendar used by my place of work is a 4-4-5 calendar, so 4 weeks, 4 weeks, then 5 weeks per quarter.

    The year starts on the first week, beginning with a Sunday in February. So last years week 1 was 31st Jan 2016. This years week 1 is 29th January.

    I only need this to work for the next 4 years, So I can work out the date values in Excel for each of the years, and make excel translate dates that fall into those values into a year, but how can I do the same for weeks?

    There are a few threads that already attack this problem, but nothing seems to solve it adequately.

    thank you in advance

  2. #2
    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,007

    Re: offset week number for a 4-4-5 calendar

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  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,007

    Re: offset week number for a 4-4-5 calendar

    Something like the attached ???

    Week number

    =INT((ROWS($1:1)-1)/7)+1

    Quarter

    =MOD(INT((ROWS($1:1)-1)/91),4)+1
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: offset week number for a 4-4-5 calendar

    Hi,

    Thank you, that formula (week) would have helped a lot in typing a row of 1-51 with 7 repeats of each number, which Ive just done almost manually.

    The sheet attached shows the dates and what I want those dates to convey for the next three years (offset week number, year that the majority of dates fall in, and day).

    I have done this manually at present, and as I only need this to work for 4 years, I was thinking to do a vLookup table (clumsy way of doing it?)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: offset week number for a 4-4-5 calendar

    Hi,

    Thank you, that formula (week) would have helped a lot in typing a row of 1-52 with 7 repeats of each number, which Ive just done almost manually.

    The sheet attached shows the dates and what I want those dates to convey for the next three years (offset week number, year that the majority of dates fall in, and day).

    I have done this manually at present, and as I only need this to work for 4 years, I was thinking to do a vLookup table (clumsy way of doing it?)

  6. #6
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: offset week number for a 4-4-5 calendar

    Hi,

    Thank you, that formula (week) would have helped a lot in typing a row of 1-52 with 7 repeats of each number, which Ive just done almost manually.

    The sheet attached shows the dates and what I want those dates to convey for the next three years (offset week number, year that the majority of dates fall in, and day).

    I have done this manually at present, and as I only need this to work for 4 years, I was thinking to do a vLookup table (clumsy way of doing it?)

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,892

    Re: offset week number for a 4-4-5 calendar

    Try in B3:

    =MOD(INT((ROWS($A$3:$A3)-1)/7),52)+1

  8. #8
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: offset week number for a 4-4-5 calendar

    Hi,

    Thank you, that formula (week) would have helped a lot in typing a row of 1-52 with 7 repeats of each number, which Ive just done almost manually.

    The sheet attached shows the dates and what I want those dates to convey for the next three years (offset week number, year that the majority of dates fall in, and day).

    I have done this manually at present, and as I only need this to work for 4 years, I was thinking to do a vLookup table (clumsy way of doing it?)

  9. #9
    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,007

    Re: offset week number for a 4-4-5 calendar

    See attached: not sure I understand about your comment on VLOOKUP - would need to see how you use this data.
    Attached Files Attached Files

+ 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] Highlight week number using Conditional formatting - shows incorrect week
    By spliffter in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-26-2016, 09:52 AM
  2. Replies: 5
    Last Post: 09-01-2014, 03:55 PM
  3. Replies: 6
    Last Post: 05-08-2013, 01:46 PM
  4. Replies: 7
    Last Post: 05-02-2013, 06:48 AM
  5. Replies: 0
    Last Post: 01-19-2012, 06:11 PM
  6. Calendar VBA auto filling week and month based on calendar entry.
    By perrymagic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2011, 02:00 PM
  7. date --> calendar week number
    By jmwismer in forum Excel General
    Replies: 8
    Last Post: 10-03-2009, 10:39 AM

Tags for this Thread

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