PC Review


Reply
Thread Tools Rate Thread

count the days between 2 dates and convert

 
 
=?Utf-8?B?c2FudGF2aWdh?=
Guest
Posts: n/a
 
      2nd Sep 2007
Hi, I have the following in data in cells and I want to calculate the days
between 2 date, which I can do, it returns 2316 days.

cell A1 is 30/04/2001
cell A2 is =Today()
cell A3 =SUM(A2-A1) returns 2316 days

I need to convert this figure into Years, Months and Days. e.g. 6 years 4
months and 3 days.

Does anyone have any idea on a formula for this?

Regards

MN
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Sep 2007
First, you don't need the =sum() around your subtraction.

=a2-a1
would work ok.

For the other stuff, look at Chip Pearson's notes for =DateDif():
http://www.cpearson.com/excel/datedif.htm

santaviga wrote:
>
> Hi, I have the following in data in cells and I want to calculate the days
> between 2 date, which I can do, it returns 2316 days.
>
> cell A1 is 30/04/2001
> cell A2 is =Today()
> cell A3 =SUM(A2-A1) returns 2316 days
>
> I need to convert this figure into Years, Months and Days. e.g. 6 years 4
> months and 3 days.
>
> Does anyone have any idea on a formula for this?
>
> Regards
>
> MN


--

Dave Peterson
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      2nd Sep 2007
=DATEDIF(A1,A2,"y")&"years,
"&DATEDIF(A1,A2,"ym")&"months"&DATEDIF(A1,A2,"md")&" days"

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"santaviga" <(E-Mail Removed)> wrote in message
news:C02B20F5-38CC-418B-A0A6-(E-Mail Removed)...
> Hi, I have the following in data in cells and I want to calculate the days
> between 2 date, which I can do, it returns 2316 days.
>
> cell A1 is 30/04/2001
> cell A2 is =Today()
> cell A3 =SUM(A2-A1) returns 2316 days
>
> I need to convert this figure into Years, Months and Days. e.g. 6 years 4
> months and 3 days.
>
> Does anyone have any idea on a formula for this?
>
> Regards
>
> MN


 
Reply With Quote
 
=?Utf-8?B?c2FudGF2aWdh?=
Guest
Posts: n/a
 
      2nd Sep 2007
Thanks a lot guys worked a treat. Regards Mark

"Don Guillett" wrote:

> =DATEDIF(A1,A2,"y")&"years,
> "&DATEDIF(A1,A2,"ym")&"months"&DATEDIF(A1,A2,"md")&" days"
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "santaviga" <(E-Mail Removed)> wrote in message
> news:C02B20F5-38CC-418B-A0A6-(E-Mail Removed)...
> > Hi, I have the following in data in cells and I want to calculate the days
> > between 2 date, which I can do, it returns 2316 days.
> >
> > cell A1 is 30/04/2001
> > cell A2 is =Today()
> > cell A3 =SUM(A2-A1) returns 2316 days
> >
> > I need to convert this figure into Years, Months and Days. e.g. 6 years 4
> > months and 3 days.
> >
> > Does anyone have any idea on a formula for this?
> >
> > Regards
> >
> > MN

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      2nd Sep 2007

Glad to help
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"santaviga" <(E-Mail Removed)> wrote in message
news:46038652-9C22-4326-B8C5-(E-Mail Removed)...
> Thanks a lot guys worked a treat. Regards Mark
>
> "Don Guillett" wrote:
>
>> =DATEDIF(A1,A2,"y")&"years,
>> "&DATEDIF(A1,A2,"ym")&"months"&DATEDIF(A1,A2,"md")&" days"
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "santaviga" <(E-Mail Removed)> wrote in message
>> news:C02B20F5-38CC-418B-A0A6-(E-Mail Removed)...
>> > Hi, I have the following in data in cells and I want to calculate the
>> > days
>> > between 2 date, which I can do, it returns 2316 days.
>> >
>> > cell A1 is 30/04/2001
>> > cell A2 is =Today()
>> > cell A3 =SUM(A2-A1) returns 2316 days
>> >
>> > I need to convert this figure into Years, Months and Days. e.g. 6 years
>> > 4
>> > months and 3 days.
>> >
>> > Does anyone have any idea on a formula for this?
>> >
>> > Regards
>> >
>> > MN

>>
>>


 
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 of days between dates Andy Microsoft Excel Misc 2 15th Apr 2009 10:51 AM
Count the days between 2 dates Samuel Microsoft Access 3 13th Jul 2007 04:13 PM
need to convert list of dates to count no. of dates by week neowok Microsoft Excel Worksheet Functions 13 30th Jan 2006 03:54 PM
count # of days from 2 dates Ninkasi Microsoft Access Forms 1 13th Jul 2004 07:51 AM
count days between dates cogent Microsoft Excel Programming 3 7th May 2004 07:55 AM


Features
 

Advertising
 

Newsgroups
 


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