PC Review


Reply
Thread Tools Rate Thread

Average between dates considering leap years.

 
 
Jman
Guest
Posts: n/a
 
      5th Apr 2008
A1:A200
01/07/08
07/07/07
04/23/07
11/30/06


C1: I need average days between dates, considering leap years.

And is it possible to format C1 to equal.."2 month 3 days"
Thanks.







 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      5th Apr 2008
Here's my best guess...

Entered as an array** :

=AVERAGE(A1:A199-A2:A200)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

>is it possible to format C1 to equal.."2 month 3 days"


Not really. How many days are in a month? 28, 29, 30, or 31?

The average of your posted sample is 134.333. How many months and days would
that be?


--
Biff
Microsoft Excel MVP


"Jman" <(E-Mail Removed)> wrote in message
news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
> A1:A200
> 01/07/08
> 07/07/07
> 04/23/07
> 11/30/06
>
>
> C1: I need average days between dates, considering leap years.
>
> And is it possible to format C1 to equal.."2 month 3 days"
> Thanks.
>
>
>
>
>
>
>



 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      5th Apr 2008
What do you consider to be the average?

Is it the (Max - Min) / 2
Is it the sum of the differences divided by the count?
Is it something else?

I don't see how you get 2 months and 3 days with the data you provided.

Regards,
Fred.

"Jman" <(E-Mail Removed)> wrote in message
news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
> A1:A200
> 01/07/08
> 07/07/07
> 04/23/07
> 11/30/06
>
>
> C1: I need average days between dates, considering leap years.
>
> And is it possible to format C1 to equal.."2 month 3 days"
> Thanks.
>
>
>
>
>
>
>


 
Reply With Quote
 
Jman
Guest
Posts: n/a
 
      5th Apr 2008
"The average of your posted sample is 134.333. How many months and days would
> that be?"


Is there a way to format it as to equal " 6m 15d" meaning 6months 15 days.

as in this formula.
=DATEDIF(A4,G2,"m")&"m "&DATEDIF(A4,G2,"md")&"d"


"T. Valko" wrote:

> Here's my best guess...
>
> Entered as an array** :
>
> =AVERAGE(A1:A199-A2:A200)
>
> ** array formulas need to be entered using the key combination of
> CTRL,SHIFT,ENTER (not just ENTER)
>
> >is it possible to format C1 to equal.."2 month 3 days"

>
> Not really. How many days are in a month? 28, 29, 30, or 31?
>
> The average of your posted sample is 134.333. How many months and days would
> that be?
>
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Jman" <(E-Mail Removed)> wrote in message
> news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
> > A1:A200
> > 01/07/08
> > 07/07/07
> > 04/23/07
> > 11/30/06
> >
> >
> > C1: I need average days between dates, considering leap years.
> >
> > And is it possible to format C1 to equal.."2 month 3 days"
> > Thanks.
> >
> >
> >
> >
> >
> >
> >

>
>
>

 
Reply With Quote
 
Jman
Guest
Posts: n/a
 
      5th Apr 2008


"Fred Smith" wrote:

> What do you consider to be the average?
>
> Is it the (Max - Min) / 2
> Is it the sum of the differences divided by the count?
> Is it something else?
>
> I don't see how you get 2 months and 3 days with the data you provided.
>
> Regards,
> Fred.
>
> "Jman" <(E-Mail Removed)> wrote in message
> news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
> > A1:A200
> > 01/07/08
> > 07/07/07
> > 04/23/07
> > 11/30/06
> >
> >
> > C1: I need average days between dates, considering leap years.
> >
> > And is it possible to format C1 to equal.."2 month 3 days"
> > Thanks.
> >
> >
> >
> >My bad, i didnt explain myself enough, the "2 "months and "3" day is just an example how i want the cell to be formated.

=DATEDIF(A4,G2,"m")&"m "&DATEDIF(A4,G2,"md")&"d"

I used this formula and it gave me.. cell format example. (""m ""d)

> >
> >
> >

>
>

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      5th Apr 2008
>> "The average of your posted sample is 134.333.
> Is there a way to format it as to equal " 6m 15d" meaning 6months 15 days


Can you explain how 134.333 equals 6m 15d ?

?????????

--
Biff
Microsoft Excel MVP


"Jman" <(E-Mail Removed)> wrote in message
news:7ADAFF8C-6E6F-482A-A6A7-(E-Mail Removed)...
> "The average of your posted sample is 134.333. How many months and days
> would
>> that be?"

>
> Is there a way to format it as to equal " 6m 15d" meaning 6months 15
> days.
>
> as in this formula.
> =DATEDIF(A4,G2,"m")&"m "&DATEDIF(A4,G2,"md")&"d"
>
>
> "T. Valko" wrote:
>
>> Here's my best guess...
>>
>> Entered as an array** :
>>
>> =AVERAGE(A1:A199-A2:A200)
>>
>> ** array formulas need to be entered using the key combination of
>> CTRL,SHIFT,ENTER (not just ENTER)
>>
>> >is it possible to format C1 to equal.."2 month 3 days"

>>
>> Not really. How many days are in a month? 28, 29, 30, or 31?
>>
>> The average of your posted sample is 134.333. How many months and days
>> would
>> that be?
>>
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "Jman" <(E-Mail Removed)> wrote in message
>> news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
>> > A1:A200
>> > 01/07/08
>> > 07/07/07
>> > 04/23/07
>> > 11/30/06
>> >
>> >
>> > C1: I need average days between dates, considering leap years.
>> >
>> > And is it possible to format C1 to equal.."2 month 3 days"
>> > Thanks.
>> >
>> >
>> >
>> >
>> >
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Jman
Guest
Posts: n/a
 
      5th Apr 2008

LOL

Iam dumb founded. I just realized there no way to do.
I know 6m and 15 was just a number i threw out. . Like you said there are
different days in a month so there is no way to do it.
"T. Valko" wrote:

> >> "The average of your posted sample is 134.333.

> > Is there a way to format it as to equal " 6m 15d" meaning 6months 15 days

>
> Can you explain how 134.333 equals 6m 15d ?
>
> ?????????
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Jman" <(E-Mail Removed)> wrote in message
> news:7ADAFF8C-6E6F-482A-A6A7-(E-Mail Removed)...
> > "The average of your posted sample is 134.333. How many months and days
> > would
> >> that be?"

> >
> > Is there a way to format it as to equal " 6m 15d" meaning 6months 15
> > days.
> >
> > as in this formula.
> > =DATEDIF(A4,G2,"m")&"m "&DATEDIF(A4,G2,"md")&"d"
> >
> >
> > "T. Valko" wrote:
> >
> >> Here's my best guess...
> >>
> >> Entered as an array** :
> >>
> >> =AVERAGE(A1:A199-A2:A200)
> >>
> >> ** array formulas need to be entered using the key combination of
> >> CTRL,SHIFT,ENTER (not just ENTER)
> >>
> >> >is it possible to format C1 to equal.."2 month 3 days"
> >>
> >> Not really. How many days are in a month? 28, 29, 30, or 31?
> >>
> >> The average of your posted sample is 134.333. How many months and days
> >> would
> >> that be?
> >>
> >>
> >> --
> >> Biff
> >> Microsoft Excel MVP
> >>
> >>
> >> "Jman" <(E-Mail Removed)> wrote in message
> >> news:991A17C6-15CC-4288-A5ED-(E-Mail Removed)...
> >> > A1:A200
> >> > 01/07/08
> >> > 07/07/07
> >> > 04/23/07
> >> > 11/30/06
> >> >
> >> >
> >> > C1: I need average days between dates, considering leap years.
> >> >
> >> > And is it possible to format C1 to equal.."2 month 3 days"
> >> > Thanks.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>

>
>
>

 
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
Handling Leap Years ricky Microsoft Access Forms 3 7th Mar 2007 02:21 PM
DATEDIF and leap years =?Utf-8?B?TGV5bGFuZA==?= Microsoft Excel New Users 2 21st Jul 2005 07:49 PM
Calculating days between dates and leap years KimberlyC Microsoft Excel Programming 18 17th Mar 2005 04:02 AM
Calculating days between dates and leap years KimberlyC Microsoft Excel Programming 1 12th Mar 2005 04:23 AM
Calculate Years/Months Between Dates and then Average =?Utf-8?B?TWlzc3k=?= Microsoft Excel Misc 3 12th Feb 2005 04:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 AM.