Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Wed, 20 Sep 2006 12:52:01 -0700, Jim J.
wrote: How can one determine the correct day of the year, based on a 365 day year? I can use ‘DAYS360’ to find the number of today’s date =DAYS360(1/1/2006,9/20/2006,FALSE) will yield ‘259’. But the actual day number based on a 365 day year is 263. I don't care about a 360 days year (I don't live there!). Again, how can I calculate the actual day number based on a 365 day year? A1: 9/20/2006 A2: =A1 - DATE(YEAR(A1),1,0) Format as General or Number PS Why does this formula yield ‘38420’ instead of ‘259’?: =DAYS360(1/1/2006,TODAY(),FALSE) Because your start date is a very small number: 1/1/2006 = 1 divided by 2006 = 0.000498504 Your Days360 function reduces to: =DAYS360(0,TODAY(),FALSE) which is the number of days since 12/31/1899 or 38420. If you want the string to be interpreted as a date, inside a function, you can use: =DAYS360("1/1/2006",TODAY(),FALSE) or =DAYS360(DATE(2006,1,1),TODAY(),FALSE) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
holiday dates | Excel Worksheet Functions | |||
Return SEARCHED Column Number of Numeric Label and Value | Excel Worksheet Functions | |||
HELP - need to returns the current number of past month this year and ... | Excel Worksheet Functions | |||
Day number of given date in a year | Excel Worksheet Functions | |||
countif number of occurences per month per year. | Excel Worksheet Functions |