Data-column

Copper Contributor

Hello, 

Who can help me?

How can I create a column starting 1-1-2020 with 366 days to 31-12-2020? It has to be the first column of a accountingsite about the year 2020. (and next year 2021)

(I have only a little experience with Excell.  and Windows 10)

 

(Venma45)

2 Replies

@Venma45 Set A1 is an input cell where you manually enter the year you want (so this year = 2020, next year you will enter 2021, etc)

 

In the column where you want to have your dates (remember to format that column as Date), say B, enter first cell B5= Date($A$1,1,1), which means 1/1/the year you entered

Then cell below (B6)=IF(YEAR(B5+1)<>$A$1,"",B5+1)

Drag the formula in cell B6 down until you see 31/12/2020, that is 366 days of a day which is always the highest possible days in a year. Next year if you only have 365 days, the 366th row would show a blank instead, until 2024 you will have that row shows 31/12 date again.

 

@Venma45 As a variant, without using formulae. Consider using Fill, Series.

 

Enter the first date for the year where you want the date column to start and select that cell. On the HOME ribbon find the Fill icon and select Series...

Screenshot 2020-06-03 at 06.06.15.png

From there, check the correct buttons as shown below. Set the "Step value" to 1 and enter the "Stop value", being the last day of the year. Press OK and Excel will fill the column below your active cell with dates until it reaches the stop value.

Screenshot 2020-06-03 at 06.09.01.png