Results 1 to 7 of 7

Week Number Problem with Calendar

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-23-2014
    Location
    United Kingdom
    MS-Off Ver
    Microsoft 365
    Posts
    149

    Week Number Problem with Calendar

    I've built a dynamic calendar in Excel that allows the user to set the start day and year they want to see. The only problem is the week numbers are not returning correctly.

    As someone from Europe, I am familiar with the ISO 8601 calendar standard, which means:

    • Week 1 begins on Monday.
    • Week 1 must have at least four days belonging to the new year.

    The ISOWEEKNUM function is ideal for this, however, it only works when the start day is Monday. WEEKNUM provides more options, but they are all based on the American system (except option 21), where the first week of the year is the one with January 1st in it and Sunday is the start day.

    I want to apply the ISO 4/7 majority rule to other days as well. I found an customisable online calendar that does this perfectly, and I've dumped three screenshots in the example workbook.

    Using Wednesday as the example, the week numbers that begin in G13 need to match the online calendar's. At the moment, I get strange results, e.g. 2022 starts at week 53 and then jumps to week 2.

    Please see the attachment.

    You'll see to the right of the calendar I've had a few attempts, but to no avail. I appreciate any help with this frustrating issue.
    Attached Files Attached Files
    Last edited by Statto; 02-05-2022 at 07:29 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calendar Automatic Day of Week Problem
    By gloriousglenn in forum Excel General
    Replies: 4
    Last Post: 11-24-2020, 09:23 AM
  2. [SOLVED] How to derive a week number from a Retail Week Calendar
    By moconn in forum Excel General
    Replies: 17
    Last Post: 03-01-2020, 02:10 PM
  3. [SOLVED] Lookup Date and find Week Number (Bespoke Calendar)
    By Gazsim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-13-2019, 10:46 AM
  4. offset week number for a 4-4-5 calendar
    By jjjjjjjjunit in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-22-2017, 09:18 AM
  5. Replies: 6
    Last Post: 05-08-2013, 01:46 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

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