How does Excel's AutoFill work for Weekdays, Months and Years internally?

Copper Contributor

While using fill for dates in Excel, there are 4 options.

Fill Days. Fill Weekdays. Fill Months. Fill Years.

 

If we generally fill dates, it's simple. Because each date value can be translated to some EPOCH value and based on those long integer values, the best fit line can be found using least squares method (https://superuser.com/questions/1334032/what-exactly-is-excels-auto-fill-algorithm) and the values can be filled.

Example

1/1/1970 - 1

4/1/1970 - 4

So the values can be found as 7, 10, 13... and the corresponding date values can be generated.

 

How to employ the same method for Weekdays, Months and Years? Excel's fill for these 3 sets seems to be complex and very hard to comprehend and find a pattern.

 

Refer the following image. The cells in grey are user entered initial values. I have filled the dates in each column for Weekdays. I am unable to arrive at any kind of pattern in filling dates for weekdays.

 

Screen Shot 2018-09-12 at 6.29.59 PM.png

0 Replies