Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Day Number For 365 Day Year

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 todays 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?
PS Why does this formula yield €˜38420 instead of €˜259?:
=DAYS360(1/1/2006,TODAY(),FALSE)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Day Number For 365 Day Year

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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Day Number For 365 Day Year

One way:

=INT(A366-DATE(YEAR(A366)-1,12,31))

Regards

Trevor


"Jim J." wrote in message
...
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?
PS Why does this formula yield '38420' instead of '259'?:
=DAYS360(1/1/2006,TODAY(),FALSE)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Day Number For 365 Day Year

PS Why does this formula yield '38420' instead of '259'?:
=DAYS360(1/1/2006,TODAY(),FALSE)


1/1/2006 is the equivalent of 1 divided by 1 divided by 2006

Try it this way:

=DAYS360("1/1/2006",TODAY(),FALSE)

Based on a 365(6) day year:

=TODAY()-DATE(YEAR(TODAY()),1,1)+1

Format as GENERAL

Biff

"Jim J." wrote in message
...
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?
PS Why does this formula yield '38420' instead of '259'?:
=DAYS360(1/1/2006,TODAY(),FALSE)



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Day Number For 365 Day Year

Trevor,
I do not understand the A366 portion of the equation.
Thanks,
Jim J.

"Trevor Shuttleworth" wrote:

One way:

=INT(A366-DATE(YEAR(A366)-1,12,31))

Regards

Trevor


"Jim J." wrote in message
...
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?
PS Why does this formula yield '38420' instead of '259'?:
=DAYS360(1/1/2006,TODAY(),FALSE)




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
holiday dates bucci Excel Worksheet Functions 4 June 15th 06 09:35 AM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
HELP - need to returns the current number of past month this year and ... elz64 Excel Worksheet Functions 6 April 6th 05 01:37 PM
Day number of given date in a year Jeff Gordon Excel Worksheet Functions 1 March 20th 05 05:35 PM
countif number of occurences per month per year. Pete Petersen Excel Worksheet Functions 2 January 4th 05 03:47 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"