PC Review


Reply
Thread Tools Rate Thread

Day Number For 365 Day Year

 
 
=?Utf-8?B?SmltIEou?=
Guest
Posts: n/a
 
      20th Sep 2006
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 With Quote
 
 
 
 
Ron Rosenfeld
Guest
Posts: n/a
 
      20th Sep 2006
On Wed, 20 Sep 2006 12:52:01 -0700, Jim J. <(E-Mail Removed)>
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 With Quote
 
Trevor Shuttleworth
Guest
Posts: n/a
 
      20th Sep 2006
One way:

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

Regards

Trevor


"Jim J." <(E-Mail Removed)> wrote in message
news448E288-59A7-462A-819E-(E-Mail Removed)...
> 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 With Quote
 
Biff
Guest
Posts: n/a
 
      20th Sep 2006
> 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." <(E-Mail Removed)> wrote in message
news448E288-59A7-462A-819E-(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?SmltIEou?=
Guest
Posts: n/a
 
      22nd Sep 2006
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." <(E-Mail Removed)> wrote in message
> news448E288-59A7-462A-819E-(E-Mail Removed)...
> > 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 With Quote
 
Trevor Shuttleworth
Guest
Posts: n/a
 
      23rd Sep 2006
That's just the cell with the date in it ... maybe an unfortunate choice
;-)

Could just as easily be:

=INT(A2-DATE(YEAR(A2)-1,12,31)) where A2 has the date in it

Alternatively:

=INT(A2-DATE(YEAR(A2),1,0))
day 0 of month 1 this year = day 31 of month 12 last year


Regards

Trevor


"Trevor Shuttleworth" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
> One way:
>
> =INT(A366-DATE(YEAR(A366)-1,12,31))
>
> Regards
>
> Trevor
>
>
> "Jim J." <(E-Mail Removed)> wrote in message
> news448E288-59A7-462A-819E-(E-Mail Removed)...
>> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a date from week number, day number and year value Clddleopard Microsoft Access 1 12th Oct 2009 10:09 PM
Make auto number display year and an increasing number (yy-###) =?Utf-8?B?bWV0cnVuZWM4Ng==?= Microsoft Access 4 26th Jan 2006 09:00 PM
how do I show day number / number of days remaining in the year? =?Utf-8?B?Y29zY29ia2lk?= Microsoft Outlook Calendar 3 13th Jun 2005 05:41 AM
Outlook show week number(1-52); day of year / days left in year =?Utf-8?B?Q29naXRvLmVyZ28uc3Vt?= Microsoft Outlook Calendar 0 3rd May 2005 09:40 PM
Year(Number) And Date(Number) input to date range output Connie Microsoft Access 0 29th Sep 2003 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:03 AM.