logo
search
Formula Errors

How to Calculate an ISO Week Number in a SharePoint List

Kushani NimanthikaKushani Nimanthika Oct 9, 2026 868 views

Question details

The user needs to find a reliable formula to calculate the correct ISO week number for dates in a SharePoint List, as standard calculations often fail at year boundaries.

How to Calculate an ISO Week Number in a SharePoint List
Product
SharePoint
Device & OS
not provided
Scenario
Creating a calculated column in a SharePoint List to accurately display the ISO week number based on an existing date field.
Observed behavior
SharePoint's standard calculated columns return an incorrect ISO week number when using standard week formulas, especially for dates around the start or end of a calendar year.
Before you start

Ensure you have the necessary site permissions to modify List Settings and add new calculated columns. Verify the exact name of your date column (e.g., [Date]) so you can replace it accurately within the formula.

Solution 1Recommended

Use the ISO Thursday-Based Formula

Implement a custom calculated column formula that adheres to the ISO 8601 standard by calculating the week based on Thursday.

SharePoint calculated columns do not support modern Excel functions like ISOWEEKNUM. To get an accurate ISO week number, you must use a mathematical formula that aligns with the ISO 8601 standard, which dictates that week 1 of any year is the week containing the first Thursday.

1
Navigate to List Settings

Open your SharePoint list, click on the gear icon in the top right corner to open Settings, and select 'List settings'.

2
Create a Calculated Column

Scroll down to the Columns section and click on 'Create column'. Give the column a name, such as 'ISO Week Number', and select 'Calculated (calculation based on other columns)' as the column type.

3
Enter the ISO Week Formula

In the formula text box, paste the following formula: =INT(([Date]-DATE(YEAR([Date])-DAYOFWEEK([Date])+1,1,3)+WEEKDAY(DATE(YEAR([Date])-DAYOFWEEK([Date])+1,1,3))+5)/7). Make sure to replace '[Date]' with the exact name of your list's date column if it differs.

4
Configure Output and Save

Under 'The data type returned from this formula is', select 'Number'. Set the number of decimal places to '0', then click 'OK' to save your new column.

Use the ISO Thursday-Based Formula
Test Near Year Boundaries: Because an ISO week can sometimes belong to the previous or following ISO year, always test your formula against dates near December 31st and January 1st to verify accuracy.
Free Microsoft Office alternative

Easily Manage and Calculate Spreadsheet Data with WPS Office

While SharePoint requires complex formulas for ISO week calculations, managing your exported lists in WPS Spreadsheet is incredibly simple. WPS Office is a free, lightweight alternative to Microsoft Office that supports modern functions natively, helping you manipulate your data faster.

  1. 1. Open Exported Data: Export your SharePoint list to an Excel file and open it directly in WPS Spreadsheet.
  2. 2. Use the ISOWEEKNUM Function: In a new column, simply type =ISOWEEKNUM(A2) (assuming A2 is your target date cell).
  3. 3. Apply to All Rows: Drag the fill handle down to apply the precise ISO week number calculation to your entire dataset effortlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls) and exported SharePoint lists.Built-in ISOWEEKNUM function calculates ISO week numbers instantly without complex math.Lightweight design ensures smooth and fast performance even with large datasets.Free to use with a familiar, easy-to-navigate user interface for seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint return incorrect week numbers at the end of the year?

Standard week formulas calculate based on traditional calendar weeks. However, the ISO 8601 standard dictates that week 1 of a year must contain the first Thursday. This means days in late December or early January can fall into a different ISO year's week, causing standard SharePoint formulas to return mismatched numbers.

Can I use the ISOWEEKNUM function directly in a SharePoint calculated column?

No, SharePoint calculated columns do not natively support the modern ISOWEEKNUM function found in newer versions of Excel. You must use a workaround formula combining INT, DATE, YEAR, and WEEKDAY to achieve the same result.

What data type should the calculated ISO week column be set to in SharePoint?

When setting up your calculated column in the List Settings, you should select 'Number' as the data type returned from the formula and strictly set the number of decimal places to zero (0) to display a clean integer.