PC Review


Reply
 
 
Larry
Guest
Posts: n/a
 
      2nd Jun 2006
I need a formula to count days between two dates
(in cells) that would include leap years

any help ??

Thanks Larry


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFyY2Vsbw==?=
Guest
Posts: n/a
 
      2nd Jun 2006
Hi Larry you could use the function DATADIFF as

=DATADIF(initial_date,final_date,"type_of_differene")

type of difference could be:
"Y" - # of completed years between dates
"M" - # of completed months bt dates
"D" - # of completed days bt dates
"MD" - Months and Years are ignorated
"YD" - Days and Years are ignorated

hope it helps

regards from Brazil
Marcelo



"Larry" escreveu:

> I need a formula to count days between two dates
> (in cells) that would include leap years
>
> any help ??
>
> Thanks Larry
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWFyY2Vsbw==?=
Guest
Posts: n/a
 
      2nd Jun 2006
sorry the correct function is DATEDIF....

I type it on Portuguese sorry



"Marcelo" escreveu:

> Hi Larry you could use the function DATADIFF as
>
> =DATADIF(initial_date,final_date,"type_of_differene")
>
> type of difference could be:
> "Y" - # of completed years between dates
> "M" - # of completed months bt dates
> "D" - # of completed days bt dates
> "MD" - Months and Years are ignorated
> "YD" - Days and Years are ignorated
>
> hope it helps
>
> regards from Brazil
> Marcelo
>
>
>
> "Larry" escreveu:
>
> > I need a formula to count days between two dates
> > (in cells) that would include leap years
> >
> > any help ??
> >
> > Thanks Larry
> >
> >
> >

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      2nd Jun 2006
If you just want the answer in days, then you only need to subtract one
from the other and format the cell as Number with zero decimal places,
i.e.:

=B1 - A1

if B1 contains the later date and A1 the earlier date.

Hope this helps.

Pete

Marcelo wrote:
> sorry the correct function is DATEDIF....
>
> I type it on Portuguese sorry
>
>
>
> "Marcelo" escreveu:
>
> > Hi Larry you could use the function DATADIFF as
> >
> > =DATADIF(initial_date,final_date,"type_of_differene")
> >
> > type of difference could be:
> > "Y" - # of completed years between dates
> > "M" - # of completed months bt dates
> > "D" - # of completed days bt dates
> > "MD" - Months and Years are ignorated
> > "YD" - Days and Years are ignorated
> >
> > hope it helps
> >
> > regards from Brazil
> > Marcelo
> >
> >
> >
> > "Larry" escreveu:
> >
> > > I need a formula to count days between two dates
> > > (in cells) that would include leap years
> > >
> > > any help ??
> > >
> > > Thanks Larry
> > >
> > >
> > >


 
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
Count distinct days from two groups of days Colin Microsoft Excel Worksheet Functions 3 17th Feb 2010 07:14 PM
Count days minus days in table SoggyCashew Microsoft Access Getting Started 5 30th Oct 2008 04:36 PM
Count Days more than 180 days prior to today Gregory Day Microsoft Excel Worksheet Functions 4 28th Mar 2008 10:16 PM
When word says Install I want it count the days for 3 days w.o wee CYNTHIA Microsoft Excel Worksheet Functions 1 23rd Mar 2008 05:28 AM
COUNT how many ROWS ago out of 10 days that the highest high in 10 days was made rhhince Microsoft Excel Worksheet Functions 1 14th Jan 2007 09:56 PM


Features
 

Advertising
 

Newsgroups
 


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