DW Faisalabad New Version

DW Faisalabad New Version
Please Jump to New Version

Friday 30 June 2017

Day of the Year

An easy formula that returns the day of the year for a given date. There's no built-in function in Excel that can do this.

1. Enter the formula shown below.



Explanation: Dates and times are stored as numbers in Excel and count the number of days since January 0, 1900. June 23, 2016 is the same as 42544. The DATE function accepts three arguments: year, month and day. DATE(YEAR(A1),1,1) or 1-jan-2016 is the same as 42370. Subtracting these numbers (42544 - 42370 = 174) and adding 1 gives the day of the year..