PC Review


Reply
 
 
=?Utf-8?B?RGVib3JhaA==?=
Guest
Posts: n/a
 
      13th Jul 2006
I used the following formula to calculate the difference between two dates:

=DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
"&DATEDIF(A2,B2,"md") & " days"

01/01/2006 28/02/2006 0 years, 1 months, 27 days
01/01/2006 31/01/2006 0 years, 0 months, 30 days

Which is ok but I would want the result for the first example to be 2 months
and for the second example 1 month.

Should I use another formula?

Thanks in advance
Deborah

 
Reply With Quote
 
 
 
 
Franz Verga
Guest
Posts: n/a
 
      13th Jul 2006
Deborah wrote:
> I used the following formula to calculate the difference between two
> dates:
>
> =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> "&DATEDIF(A2,B2,"md") & " days"
>
> 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> 01/01/2006 31/01/2006 0 years, 0 months, 30 days
>
> Which is ok but I would want the result for the first example to be 2
> months and for the second example 1 month.
>
> Should I use another formula?
>
> Thanks in advance
> Deborah


Hi Deborah,

try with this modified formula:

=DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
"&DATEDIF(A2,B2+1,"md") & " days"



--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
=?Utf-8?B?RGVib3JhaA==?=
Guest
Posts: n/a
 
      13th Jul 2006
It seems to work.

Many thanks.

Deborah from Italy


"Franz Verga" wrote:

> Deborah wrote:
> > I used the following formula to calculate the difference between two
> > dates:
> >
> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> > "&DATEDIF(A2,B2,"md") & " days"
> >
> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
> >
> > Which is ok but I would want the result for the first example to be 2
> > months and for the second example 1 month.
> >
> > Should I use another formula?
> >
> > Thanks in advance
> > Deborah

>
> Hi Deborah,
>
> try with this modified formula:
>
> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
> "&DATEDIF(A2,B2+1,"md") & " days"
>
>
>
> --
> Hope I helped you.
>
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>
>

 
Reply With Quote
 
Franz Verga
Guest
Posts: n/a
 
      13th Jul 2006
Deborah wrote:
> It seems to work.
>
> Many thanks.


You're welcome.

> Deborah from Italy



There's also the italian speaking newsgroup:

microsoft.public.it.office.excel



--
Glad I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      21st Sep 2006
Hi Franz, I tried your modified formula but it does not work. For example
14.02.1980 01.04.1995 15 years, 1 month, 19 days
whereas the actual difference is 15 years, 1 month, 17 days including both
monthdays. The actual and modified formula both give incorrect results. I
think excel is not able to work out the days of February days, specially for
the years divisible by 4, 100, 400 and 1600. Can anybody help me.
Thanks,
Javaid from Pakistan.

"Franz Verga" wrote:

> Deborah wrote:
> > I used the following formula to calculate the difference between two
> > dates:
> >
> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> > "&DATEDIF(A2,B2,"md") & " days"
> >
> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
> >
> > Which is ok but I would want the result for the first example to be 2
> > months and for the second example 1 month.
> >
> > Should I use another formula?
> >
> > Thanks in advance
> > Deborah

>
> Hi Deborah,
>
> try with this modified formula:
>
> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
> "&DATEDIF(A2,B2+1,"md") & " days"
>
>
>
> --
> Hope I helped you.
>
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      21st Sep 2006
Hi Franz, I tried your modified formula but it does not work. For example
14.02.1980 01.04.1995 15 years, 1 month, 19 days
whereas the actual difference is 15 years, 1 month, 17 days including both
monthdays. The actual and modified formula both give incorrect results. I
think excel is not able to work out the days of February days, specially for
the years divisible by 4, 100, 400 and 1600. Can anybody help me.
Thanks, waiting for the reply.
Javaid from Pakistan.

"Franz Verga" wrote:

> Deborah wrote:
> > I used the following formula to calculate the difference between two
> > dates:
> >
> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> > "&DATEDIF(A2,B2,"md") & " days"
> >
> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
> >
> > Which is ok but I would want the result for the first example to be 2
> > months and for the second example 1 month.
> >
> > Should I use another formula?
> >
> > Thanks in advance
> > Deborah

>
> Hi Deborah,
>
> try with this modified formula:
>
> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
> "&DATEDIF(A2,B2+1,"md") & " days"
>
>
>
> --
> Hope I helped you.
>
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>
>

 
Reply With Quote
 
=?Utf-8?B?R2Vvcmdl?=
Guest
Posts: n/a
 
      12th Sep 2007
=DATEDIF(E5,TODAY(),"Y") & " Years "
i have used this formula, but i do not want the word years to show up in the
cell, how do i modify it.

"Franz Verga" wrote:

> Deborah wrote:
> > I used the following formula to calculate the difference between two
> > dates:
> >
> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> > "&DATEDIF(A2,B2,"md") & " days"
> >
> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
> >
> > Which is ok but I would want the result for the first example to be 2
> > months and for the second example 1 month.
> >
> > Should I use another formula?
> >
> > Thanks in advance
> > Deborah

>
> Hi Deborah,
>
> try with this modified formula:
>
> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
> "&DATEDIF(A2,B2+1,"md") & " days"
>
>
>
> --
> Hope I helped you.
>
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>
>

 
Reply With Quote
 
papou
Guest
Posts: n/a
 
      12th Sep 2007
Hello George

=DATEDIF(E5,TODAY(),"Y")

HTH
Cordially
Pascal


"George" <(E-Mail Removed)> a écrit dans le message de news:
2860E1C7-158F-4752-A598-(E-Mail Removed)...
> =DATEDIF(E5,TODAY(),"Y") & " Years "
> i have used this formula, but i do not want the word years to show up in
> the
> cell, how do i modify it.
>
> "Franz Verga" wrote:
>
>> Deborah wrote:
>> > I used the following formula to calculate the difference between two
>> > dates:
>> >
>> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
>> > "&DATEDIF(A2,B2,"md") & " days"
>> >
>> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
>> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
>> >
>> > Which is ok but I would want the result for the first example to be 2
>> > months and for the second example 1 month.
>> >
>> > Should I use another formula?
>> >
>> > Thanks in advance
>> > Deborah

>>
>> Hi Deborah,
>>
>> try with this modified formula:
>>
>> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
>> "&DATEDIF(A2,B2+1,"md") & " days"
>>
>>
>>
>> --
>> Hope I helped you.
>>
>> Thanks in advance for your feedback.
>>
>> Ciao
>>
>> Franz Verga from Italy
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?R2Vvcmdl?=
Guest
Posts: n/a
 
      12th Sep 2007
Thanks Papou, but this does not work, it sends back a date, (such as
2/18/06), but i am looking for the difference in years, (46)

"papou" wrote:

> Hello George
>
> =DATEDIF(E5,TODAY(),"Y")
>
> HTH
> Cordially
> Pascal
>
>
> "George" <(E-Mail Removed)> a écrit dans le message de news:
> 2860E1C7-158F-4752-A598-(E-Mail Removed)...
> > =DATEDIF(E5,TODAY(),"Y") & " Years "
> > i have used this formula, but i do not want the word years to show up in
> > the
> > cell, how do i modify it.
> >
> > "Franz Verga" wrote:
> >
> >> Deborah wrote:
> >> > I used the following formula to calculate the difference between two
> >> > dates:
> >> >
> >> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
> >> > "&DATEDIF(A2,B2,"md") & " days"
> >> >
> >> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
> >> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
> >> >
> >> > Which is ok but I would want the result for the first example to be 2
> >> > months and for the second example 1 month.
> >> >
> >> > Should I use another formula?
> >> >
> >> > Thanks in advance
> >> > Deborah
> >>
> >> Hi Deborah,
> >>
> >> try with this modified formula:
> >>
> >> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
> >> "&DATEDIF(A2,B2+1,"md") & " days"
> >>
> >>
> >>
> >> --
> >> Hope I helped you.
> >>
> >> Thanks in advance for your feedback.
> >>
> >> Ciao
> >>
> >> Franz Verga from Italy
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
papou
Guest
Posts: n/a
 
      12th Sep 2007
Format cell as standard number.

HTH
Cordially
Pascal

"George" <(E-Mail Removed)> a écrit dans le message de news:
68AAD342-90EB-4F8D-9B5B-(E-Mail Removed)...
> Thanks Papou, but this does not work, it sends back a date, (such as
> 2/18/06), but i am looking for the difference in years, (46)
>
> "papou" wrote:
>
>> Hello George
>>
>> =DATEDIF(E5,TODAY(),"Y")
>>
>> HTH
>> Cordially
>> Pascal
>>
>>
>> "George" <(E-Mail Removed)> a écrit dans le message de
>> news:
>> 2860E1C7-158F-4752-A598-(E-Mail Removed)...
>> > =DATEDIF(E5,TODAY(),"Y") & " Years "
>> > i have used this formula, but i do not want the word years to show up
>> > in
>> > the
>> > cell, how do i modify it.
>> >
>> > "Franz Verga" wrote:
>> >
>> >> Deborah wrote:
>> >> > I used the following formula to calculate the difference between two
>> >> > dates:
>> >> >
>> >> > =DATEDIF(A2,B2,"y") & " years, " & DATEDIF(A2,B2,"ym") & " months,
>> >> > "&DATEDIF(A2,B2,"md") & " days"
>> >> >
>> >> > 01/01/2006 28/02/2006 0 years, 1 months, 27 days
>> >> > 01/01/2006 31/01/2006 0 years, 0 months, 30 days
>> >> >
>> >> > Which is ok but I would want the result for the first example to be
>> >> > 2
>> >> > months and for the second example 1 month.
>> >> >
>> >> > Should I use another formula?
>> >> >
>> >> > Thanks in advance
>> >> > Deborah
>> >>
>> >> Hi Deborah,
>> >>
>> >> try with this modified formula:
>> >>
>> >> =DATEDIF(A2,B2+1,"y") & " years, " & DATEDIF(A2,B2+1,"ym") & " months,
>> >> "&DATEDIF(A2,B2+1,"md") & " days"
>> >>
>> >>
>> >>
>> >> --
>> >> Hope I helped you.
>> >>
>> >> Thanks in advance for your feedback.
>> >>
>> >> Ciao
>> >>
>> >> Franz Verga from Italy
>> >>
>> >>
>> >>

>>
>>
>>



 
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:49 AM.