PC Review


Reply
Thread Tools Rate Thread

Bug with DATEDIF and Md is it possible ?

 
 
MichDenis
Guest
Posts: n/a
 
      2nd May 2008
Hi,

Does someone have an explanation ?

2 Dates in 2 cells
A1 = 01/31/2008
A2 = 03/01/2009

With this formula : =DATEDIF(A1;A2;"md")
The answer = -1

With this 2 dates :
A1 = 01/30/2008
A2 = 03/01/2009
With this formula : =DATEDIF(A1;A2;"md")
The answer = 0

Is it really a bug ?

Thank for your participation.


 
Reply With Quote
 
 
 
 
MichDenis
Guest
Posts: n/a
 
      2nd May 2008
Sorry - > Correction : 03/01/2008 instead 03/01/2009


"MichDenis" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
Hi,

Does someone have an explanation ?

2 Dates in 2 cells
A1 = 01/31/2008
A2 = 03/01/2009

With this formula : =DATEDIF(A1;A2;"md")
The answer = -1

With this 2 dates :
A1 = 01/30/2008
A2 = 03/01/2009
With this formula : =DATEDIF(A1;A2;"md")
The answer = 0

Is it really a bug ?

Thank for your participation.



 
Reply With Quote
 
ker_01
Guest
Posts: n/a
 
      2nd May 2008
I believe the syntax uses commas, rather than semicolons? try the following:
=DATEDIF(A1,A2,"MD")

HTH,
Keith

"MichDenis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does someone have an explanation ?
>
> 2 Dates in 2 cells
> A1 = 01/31/2008
> A2 = 03/01/2009
>
> With this formula : =DATEDIF(A1;A2;"md")
> The answer = -1
>
> With this 2 dates :
> A1 = 01/30/2008
> A2 = 03/01/2009
> With this formula : =DATEDIF(A1;A2;"md")
> The answer = 0
>
> Is it really a bug ?
>
> Thank for your participation.
>
>



 
Reply With Quote
 
MichDenis
Guest
Posts: n/a
 
      2nd May 2008

I know, it's simply because i work with a french version and we use semicolons...

Have you tried your formula with the suggested dates ?

Thank for your participation.




"ker_01" <(E-Mail Removed)> a écrit dans le message de news:
u$(E-Mail Removed)...
I believe the syntax uses commas, rather than semicolons? try the following:
=DATEDIF(A1,A2,"MD")

HTH,
Keith

"MichDenis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does someone have an explanation ?
>
> 2 Dates in 2 cells
> A1 = 01/31/2008
> A2 = 03/01/2009
>
> With this formula : =DATEDIF(A1;A2;"md")
> The answer = -1
>
> With this 2 dates :
> A1 = 01/30/2008
> A2 = 03/01/2009
> With this formula : =DATEDIF(A1;A2;"md")
> The answer = 0
>
> Is it really a bug ?
>
> Thank for your participation.
>
>




 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      2nd May 2008
Whether semi-colons or commas are used as separators is a function of
the application language (semi-colons are typically used in European
languages).

The problem is that DATEDIF() uses the length of the first month to
determine what a "month" is.

This problem (with variations of the given example) has been discussed
here many, many times.

Because "month" is a fuzzy concept, there's simply no definition of
"month" that will allow both algorithmically consistent, and generally
acceptable, results without including this kind of anomaly.


In article <u$(E-Mail Removed)>,
"ker_01" <(E-Mail Removed)> wrote:

> I believe the syntax uses commas, rather than semicolons? try the following:
> =DATEDIF(A1,A2,"MD")
>
> HTH,
> Keith
>
> "MichDenis" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Does someone have an explanation ?
> >
> > 2 Dates in 2 cells
> > A1 = 01/31/2008
> > A2 = 03/01/2009
> >
> > With this formula : =DATEDIF(A1;A2;"md")
> > The answer = -1
> >
> > With this 2 dates :
> > A1 = 01/30/2008
> > A2 = 03/01/2009
> > With this formula : =DATEDIF(A1;A2;"md")
> > The answer = 0
> >
> > Is it really a bug ?
> >
> > Thank for your participation.
> >
> >

 
Reply With Quote
 
MichDenis
Guest
Posts: n/a
 
      2nd May 2008
Thanks for your explanation.


"JE McGimpsey" <(E-Mail Removed)> a écrit dans le message de news:
jemcgimpsey-(E-Mail Removed)...
Whether semi-colons or commas are used as separators is a function of
the application language (semi-colons are typically used in European
languages).

The problem is that DATEDIF() uses the length of the first month to
determine what a "month" is.

This problem (with variations of the given example) has been discussed
here many, many times.

Because "month" is a fuzzy concept, there's simply no definition of
"month" that will allow both algorithmically consistent, and generally
acceptable, results without including this kind of anomaly.


In article <u$(E-Mail Removed)>,
"ker_01" <(E-Mail Removed)> wrote:

> I believe the syntax uses commas, rather than semicolons? try the following:
> =DATEDIF(A1,A2,"MD")
>
> HTH,
> Keith
>
> "MichDenis" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Does someone have an explanation ?
> >
> > 2 Dates in 2 cells
> > A1 = 01/31/2008
> > A2 = 03/01/2009
> >
> > With this formula : =DATEDIF(A1;A2;"md")
> > The answer = -1
> >
> > With this 2 dates :
> > A1 = 01/30/2008
> > A2 = 03/01/2009
> > With this formula : =DATEDIF(A1;A2;"md")
> > The answer = 0
> >
> > Is it really a bug ?
> >
> > Thank for your participation.
> >
> >



 
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
Datedif() Brad Microsoft Excel Misc 6 29th Oct 2008 06:35 PM
DateDif ? =?Utf-8?B?bmh2d2NoaWM=?= Microsoft Excel Worksheet Functions 3 24th Aug 2006 08:40 PM
DateDif Average? Damn DateDif UTCHELP Microsoft Excel Worksheet Functions 14 17th Nov 2005 10:30 AM
DateDif SpecialD Microsoft Excel Worksheet Functions 8 18th Mar 2004 04:18 PM
DATEDIF ùàåì Microsoft Excel Worksheet Functions 34 30th Sep 2003 09:53 PM


Features
 

Advertising
 

Newsgroups
 


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