UmairKamal
New Member
- Joined
- Aug 27, 2021
- Messages
- 17
- Office Version
- 2016
- 2013
- Platform
- Windows
Dear users,
I am using MS Excel 2016 and have a dataset of nearly 650,000 rows. The financial year runs from April to March. however for this dataset, the report requires a weekly analysis. the week commences on Monday. so for example, the year 2023-24 starts with Monday, 27 March 2023 and ends at 31 March 2024 (i.e. 52 weeks).
I was using the formula
=WEEKNUM(C2-(1+DATE(YEAR(C2),3,26)-DATE(YEAR(C2),1,1)))
where the date is in Column C.
This was working fine until the date 1/1/2024.
week 40 finishes on 31/12/2023, however, the date 01/01/2024 is also being considered in week 40, whereas it should be week 41 as 01/01/2024 is a Monday.
please advise.
kind regards.
I am using MS Excel 2016 and have a dataset of nearly 650,000 rows. The financial year runs from April to March. however for this dataset, the report requires a weekly analysis. the week commences on Monday. so for example, the year 2023-24 starts with Monday, 27 March 2023 and ends at 31 March 2024 (i.e. 52 weeks).
I was using the formula
=WEEKNUM(C2-(1+DATE(YEAR(C2),3,26)-DATE(YEAR(C2),1,1)))
where the date is in Column C.
This was working fine until the date 1/1/2024.
week 40 finishes on 31/12/2023, however, the date 01/01/2024 is also being considered in week 40, whereas it should be week 41 as 01/01/2024 is a Monday.
please advise.
kind regards.