There are 2 years for Work Week 52: 2018, and 2019.
My formula in column A which calculates the Work Week apparently fudges the year if the Work Week straddles the end of one year and the start of another.
How do I correct my formula so rows 63 and 64 correctly read 201852?
=IF(D2="","",IF((WEEKNUM((D2-3),21))>9,VALUE(YEAR(D2)&WEEKNUM((D2-3),21)),VALUE(YEAR(D2)&0&WEEKNUM((D2-3),21))))
To answer @anon73440385’s comment question: Left to right are Columns A, B, C, & D.
- A=Work Week
- B=Day (of week)
- C=Not relevant (Multiple entries for same date)
- D=Date
D2 doesn’t influence Row 63, Row 2 was the first use of the formula while Row 63 was the first to reveal a problem with the formula as written. D2 influences A2, just as D63 influences A63.