+ Reply to Thread
Results 1 to 4 of 4

Wrong week number not the same with Date

  1. #1
    Forum Contributor
    Join Date
    07-28-2015
    Location
    london
    MS-Off Ver
    Microsoft Office 365
    Posts
    113

    Wrong week number not the same with Date

    Hi,

    I can't get the Week number equal to the date.

    Was comparing Week 1 for the year 2021 and it supposes to be the 4 to 10 of January but it's showing 28 of Dec 2020 to 03 of Jan 2021.

    Anything missing in here? Any help please?

    Thank you.

    Attached is my sample workbook.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Wrong week number not the same with Date

    You can change the formula in F6 to this:

    =DATE(C6,1,1) - WEEKDAY(DATE(C6,1,1),2) + D6*7 + 1

    and the one in L6 to:

    =K6+1

    Then you can copy the block of formulae F6:L6 down to F17:L17, F28:L28, and so on.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    07-28-2015
    Location
    london
    MS-Off Ver
    Microsoft Office 365
    Posts
    113

    Re: Wrong week number not the same with Date

    Hi Pete,

    Thanks for a super fast help it did work.

    Thanks a million.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Wrong week number not the same with Date

    Glad it worked for you, and thanks for marking the thread as Solved.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Updating week number, start date of the week, and year from a column date that's populated
    By Raylou in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2020, 11:11 AM
  2. Replies: 5
    Last Post: 04-11-2017, 09:23 AM
  3. Receiving a date week by week depends on specific number?
    By ExcelBG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2013, 10:20 AM
  4. Replies: 14
    Last Post: 02-15-2012, 10:23 AM
  5. week start date and end date based on week number
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 12:39 PM
  6. Wrong Week number
    By Nleric in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-05-2006, 08:30 AM
  7. Replies: 1
    Last Post: 08-23-2005, 11:42 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