Forum Discussion
HRGuru55
Jun 23, 2021Copper Contributor
weeknum
Trying to format cells to identify week number across the top of a spreadsheet. Starting in column P WEEKNUM(DATE(2021,1,(P1+7))) will identify column Q as week 2, but then stops increasing... any...
- Jun 23, 2021
Best to use two rows: one for the dates and one for the week numbers.
In P1, enter 01/01/2021.
In Q1, enter the formula =P1+7
Fill to the right from Q1 as far as you want.
In P2, enter the formula =WEEKNUM(P1)
Fill to the right from P2 until you reach the last date in row 1.
Alternatively, just enter the series 1, 2, 3, ... in row 1 <grin>
HRGuru55
Jun 23, 2021Copper Contributor
WEEKNUM(DATE(2021,1,1))
HansVogelaar
Jun 23, 2021MVP
Best to use two rows: one for the dates and one for the week numbers.
In P1, enter 01/01/2021.
In Q1, enter the formula =P1+7
Fill to the right from Q1 as far as you want.
In P2, enter the formula =WEEKNUM(P1)
Fill to the right from P2 until you reach the last date in row 1.
Alternatively, just enter the series 1, 2, 3, ... in row 1 <grin>
- HRGuru55Jun 23, 2021Copper Contributorthanks, that works