Calculate calendar week in SharePoint column

Enrico Kreisig 26 Reputation points
2022-06-01T17:23:41.06+00:00

I would like to calculate the KW from the created date.
Anyone know a way?

207643-screenshot-2022-06-01-191952.jpg

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,789 questions
{count} votes

Accepted answer
  1. Jinwei Li-MSFT 4,726 Reputation points Microsoft Vendor
    2022-06-28T01:34:43.023+00:00

    Hi @Enrico Kreisig ,

    I used the following formula. Week starts on Monday. Depending on your regional settings you have to replace it.

    =IF(INT((StartDate-DATE(YEAR(StartDate);1;1)+(TEXT(WEEKDAY(DATE(YEAR(StartDate);1;1)-1);"d")))/7)=0;52;INT((StartDate-DATE(YEAR(StartDate);1;1)+(TEXT(WEEKDAY(DATE(YEAR(StartDate);1;1)-1);"d")))/7))  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


3 additional answers

Sort by: Most helpful
  1. Jonattan Mejia Restrepo 1 Reputation point
    2022-06-01T17:42:15.133+00:00

    Hi,

    Please try this formula or check the post from the official forum to create a calculate column using the required date:

    =INT((Today()-DATE(YEAR(Today()),1,1)+(TEXT(WEEKDAY(DATE(YEAR(Today()),1,1)),"d")))/7)-INT(([Column Name]-DATE(YEAR([Column Name]),1,1)+(TEXT(WEEKDAY(DATE(YEAR([Column Name]),1,1)),"d")))/7)

    Post:
    https://answers.microsoft.com/en-us/msoffice/forum/all/calculate-week-number-in-sharepoint-list/ff8126e0-e4a5-4626-93bc-c932a4473a69

    Hope this helps.

    Regards.

    JM


  2. Jinwei Li-MSFT 4,726 Reputation points Microsoft Vendor
    2022-06-24T06:45:39.423+00:00

    Hi @Enrico Kreisig ,

    Please try to use this:

    =ROUNDUP(DAY(Created)/7,0)  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Enrico Kreisig 26 Reputation points
    2022-06-27T09:43:48.58+00:00

    215361-screenshot-2022-06-27-114230.jpg

    0 comments No comments