PC Review


Reply
Thread Tools Rate Thread

How do I calculate exact difference between two dates in y,m,d.

 
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      21st Sep 2006
I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
excel does not give the exact difference in years, months and days.
I used the formula
=DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
"&DATEDIF(A10,B10,"MD")&"Days."
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      21st Sep 2006
When I copied your formula from the screen and pasted it into Excel, it
returned:
5Years, 0Months, 7Days.

That value is correct.
You don't mention what value is returned by the formula you used.

***********
Regards,
Ron

XL2002, WinXP


"Muhammad Javaid Hassan" wrote:

> I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> excel does not give the exact difference in years, months and days.
> I used the formula
> =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      21st Sep 2006
Thanks for the feedback, try the formula on 14.02.1980 to 01.04.1995, the
result is
15 years, 1 month, 18 days whereas actual difference is 15 years, 1 month,
17 days.
"Ron Coderre" wrote:

> When I copied your formula from the screen and pasted it into Excel, it
> returned:
> 5Years, 0Months, 7Days.
>
> That value is correct.
> You don't mention what value is returned by the formula you used.
>
> ***********
> Regards,
> Ron
>
> XL2002, WinXP
>
>
> "Muhammad Javaid Hassan" wrote:
>
> > I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> > excel does not give the exact difference in years, months and days.
> > I used the formula
> > =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> > "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      21st Sep 2006
OK....see if this makes sense

With 14.02.1980 to 01/04.1995

Feb-14-1980 to Feb-14-1995: 1 year
Feb-14-1995 to Mar-14-1995: 1 month
Mar-14-1995 to Apr-01-1995: 18 days

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Muhammad Javaid Hassan" wrote:

> Thanks for the feedback, try the formula on 14.02.1980 to 01.04.1995, the
> result is
> 15 years, 1 month, 18 days whereas actual difference is 15 years, 1 month,
> 17 days.
> "Ron Coderre" wrote:
>
> > When I copied your formula from the screen and pasted it into Excel, it
> > returned:
> > 5Years, 0Months, 7Days.
> >
> > That value is correct.
> > You don't mention what value is returned by the formula you used.
> >
> > ***********
> > Regards,
> > Ron
> >
> > XL2002, WinXP
> >
> >
> > "Muhammad Javaid Hassan" wrote:
> >
> > > I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> > > excel does not give the exact difference in years, months and days.
> > > I used the formula
> > > =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> > > "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      22nd Sep 2006
Thanks, yes it has sense and now I understand how Excel calculates the
difference in dates which seems the correct way. I have another problem,
please help me on that if you or anybody else can. I need to convert amount
written in one cell in figures ($20500) in words in the next cell or any
other cell (Dollar Twenty Thousand Five Hundred Only). Is there any formula
in Excell for that.
Regards,
Muhammad Javaid Hassan

"Muhammad Javaid Hassan" wrote:

> Thanks for the feedback, try the formula on 14.02.1980 to 01.04.1995, the
> result is
> 15 years, 1 month, 18 days whereas actual difference is 15 years, 1 month,
> 17 days.
> "Ron Coderre" wrote:
>
> > When I copied your formula from the screen and pasted it into Excel, it
> > returned:
> > 5Years, 0Months, 7Days.
> >
> > That value is correct.
> > You don't mention what value is returned by the formula you used.
> >
> > ***********
> > Regards,
> > Ron
> >
> > XL2002, WinXP
> >
> >
> > "Muhammad Javaid Hassan" wrote:
> >
> > > I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> > > excel does not give the exact difference in years, months and days.
> > > I used the formula
> > > =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> > > "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
Pierre
Guest
Posts: n/a
 
      22nd Sep 2006

Muhammad Javaid Hassan wrote:
> I need to convert amount
> written in one cell in figures ($20500) in words in the next cell or any
> other cell (Dollar Twenty Thousand Five Hundred Only). Is there any formula
> in Excell for that.
> Regards,
> Muhammad Javaid Hassan
>
>


Spell out the number as follows using this add-in.

http://orlando.mvps.org/ExcelSpellNumberMore.asp

Pierre

 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      22nd Sep 2006
Thanks, I think it make sense. Actually it is the way Excel works out the
difference in two dates and seems the correct way.
I have another problem, please you or anyone help me on this if possible.
I am trying to convert amount written in one cell in figures ($20560) to
amount in words in the next or any other cell (Dollar Twenty Thousand Five
Hundred Sixty Only). Can it be done in Excel?
Regards,
Muhammad Javaid Hassan

"Ron Coderre" wrote:

> OK....see if this makes sense
>
> With 14.02.1980 to 01/04.1995
>
> Feb-14-1980 to Feb-14-1995: 1 year
> Feb-14-1995 to Mar-14-1995: 1 month
> Mar-14-1995 to Apr-01-1995: 18 days
>
> Does that help?
> ***********
> Regards,
> Ron
>
> XL2002, WinXP
>
>
> "Muhammad Javaid Hassan" wrote:
>
> > Thanks for the feedback, try the formula on 14.02.1980 to 01.04.1995, the
> > result is
> > 15 years, 1 month, 18 days whereas actual difference is 15 years, 1 month,
> > 17 days.
> > "Ron Coderre" wrote:
> >
> > > When I copied your formula from the screen and pasted it into Excel, it
> > > returned:
> > > 5Years, 0Months, 7Days.
> > >
> > > That value is correct.
> > > You don't mention what value is returned by the formula you used.
> > >
> > > ***********
> > > Regards,
> > > Ron
> > >
> > > XL2002, WinXP
> > >
> > >
> > > "Muhammad Javaid Hassan" wrote:
> > >
> > > > I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> > > > excel does not give the exact difference in years, months and days.
> > > > I used the formula
> > > > =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> > > > "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      22nd Sep 2006
Here's the resource you need:
http://www.xldynamic.com/source/xld.xlFAQ0004.html

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Muhammad Javaid Hassan" wrote:

> Thanks, yes it has sense and now I understand how Excel calculates the
> difference in dates which seems the correct way. I have another problem,
> please help me on that if you or anybody else can. I need to convert amount
> written in one cell in figures ($20500) in words in the next cell or any
> other cell (Dollar Twenty Thousand Five Hundred Only). Is there any formula
> in Excell for that.
> Regards,
> Muhammad Javaid Hassan
>
> "Muhammad Javaid Hassan" wrote:
>
> > Thanks for the feedback, try the formula on 14.02.1980 to 01.04.1995, the
> > result is
> > 15 years, 1 month, 18 days whereas actual difference is 15 years, 1 month,
> > 17 days.
> > "Ron Coderre" wrote:
> >
> > > When I copied your formula from the screen and pasted it into Excel, it
> > > returned:
> > > 5Years, 0Months, 7Days.
> > >
> > > That value is correct.
> > > You don't mention what value is returned by the formula you used.
> > >
> > > ***********
> > > Regards,
> > > Ron
> > >
> > > XL2002, WinXP
> > >
> > >
> > > "Muhammad Javaid Hassan" wrote:
> > >
> > > > I tried to callculate the difference between 14.02.1980 and 21.02.1985, but
> > > > excel does not give the exact difference in years, months and days.
> > > > I used the formula
> > > > =DATEDIF(A10,B10,"Y")&"Years, "&DATEDIF(A10,B10,"YM")&"Months,
> > > > "&DATEDIF(A10,B10,"MD")&"Days."

 
Reply With Quote
 
=?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?=
Guest
Posts: n/a
 
      23rd Sep 2006
Thanks Pierre!, it realy works.
Regards,
Muhammad Javaid Hassan

"Pierre" wrote:

>
> Muhammad Javaid Hassan wrote:
> > I need to convert amount
> > written in one cell in figures ($20500) in words in the next cell or any
> > other cell (Dollar Twenty Thousand Five Hundred Only). Is there any formula
> > in Excell for that.
> > Regards,
> > Muhammad Javaid Hassan
> >
> >

>
> Spell out the number as follows using this add-in.
>
> http://orlando.mvps.org/ExcelSpellNumberMore.asp
>
> Pierre
>
>

 
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
Formula to calculate exact months and days between two dates K Microsoft Excel Programming 3 12th Aug 2009 07:15 PM
How calculate exact # of months between two dates? Mark Livingstone Microsoft Excel Worksheet Functions 9 22nd Jul 2009 01:23 AM
How do I calculate exact difference between two dates in y,m,d. =?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?= Microsoft Excel Worksheet Functions 6 19th Sep 2006 01:42 PM
How do I calculate exact difference between two dates in y,m,d. =?Utf-8?B?TXVoYW1tYWQgSmF2YWlkIEhhc3Nhbg==?= Microsoft Excel Worksheet Functions 0 19th Sep 2006 01:13 PM
How do I calculate the difference between 2 dates (m,d,y) ? =?Utf-8?B?YWR5X3NhbmR1?= Microsoft Excel Worksheet Functions 8 29th Sep 2005 05:09 PM


Features
 

Advertising
 

Newsgroups
 


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