SharePoint miscalculates the week number.

keyra

New Member
Joined
Dec 5, 2016
Messages
11
Hello everyone and a happy new year!

I have in SharePoint a column with the formula below which calculates the week number based on another column (Date Réelle (Fin action).

=IF(INT(([Date Réelle (Fin action)]-DATE(YEAR([Date Réelle (Fin action)]),1,1)+(TEXT(WEEKDAY(DATE(YEAR([Date Réelle (Fin action)]),1,1)-2),"d")))/7)=0,1,INT(([Date Réelle (Fin action)]-DATE(YEAR([Date Réelle (Fin action)]),1,1)+(TEXT(WEEKDAY(DATE(YEAR([Date Réelle (Fin action)]),1,1)-2),"d")))/7))

It worked very well until this year. In 2024 for example the day 15 Jan 2024 which is Monday it's alocated to week 2 instead of 3. and so on each week starts with Tuesday (Mondays reamain to the previous week). Cand someone please help me adjust my formula?

Thank you!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I have had this problem before and had to change by adding or subtracting 1 on the sharepoint file, becomes a problem if people open on desktop app. Similar issue exists with working out week numbers using Power BI
 
Upvote 0
I have had this problem before and had to change by adding or subtracting 1 on the sharepoint file, becomes a problem if people open on desktop app. Similar issue exists with working out week numbers using Power BI
i tried that with no success, however i just replace 7 with 6 and now seems to be working ok. thank you for the suggestion
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,612
Members
449,238
Latest member
wcbyers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top