From: pete on
Hi,

I have a range of dates and times, and the following will give me the latest
time:
{MAX((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}

However, I now want the earliest time, but "MIN" does not work:
{MIN((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}

What is the proper formula?
Thanks.
From: Fred Smith on
Min is the right function.

What does "doesn't work" mean? Also, what's in B13?

Regards,
Fred

"pete" <pete(a)discussions.microsoft.com> wrote in message
news:902A7A53-1A8A-4B2A-9CC4-B2A88E7EBFEE(a)microsoft.com...
> Hi,
>
> I have a range of dates and times, and the following will give me the
> latest
> time:
> {MAX((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
>
> However, I now want the earliest time, but "MIN" does not work:
> {MIN((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
>
> What is the proper formula?
> Thanks.

From: Bob Phillips on
Try

=MIN(IF(Data!$D$2:$D$5000=B13,Data!$F$2:$F$5000))

--

HTH

Bob

"pete" <pete(a)discussions.microsoft.com> wrote in message
news:902A7A53-1A8A-4B2A-9CC4-B2A88E7EBFEE(a)microsoft.com...
> Hi,
>
> I have a range of dates and times, and the following will give me the
> latest
> time:
> {MAX((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
>
> However, I now want the earliest time, but "MIN" does not work:
> {MIN((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
>
> What is the proper formula?
> Thanks.


From: pete on
That works! Thanks a bunch!

"Bob Phillips" wrote:

> Try
>
> =MIN(IF(Data!$D$2:$D$5000=B13,Data!$F$2:$F$5000))
>
> --
>
> HTH
>
> Bob
>
> "pete" <pete(a)discussions.microsoft.com> wrote in message
> news:902A7A53-1A8A-4B2A-9CC4-B2A88E7EBFEE(a)microsoft.com...
> > Hi,
> >
> > I have a range of dates and times, and the following will give me the
> > latest
> > time:
> > {MAX((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
> >
> > However, I now want the earliest time, but "MIN" does not work:
> > {MIN((Data!$D$2:$D$5000=B13)*(Data!$F$2:$F$5000))}
> >
> > What is the proper formula?
> > Thanks.
>
>
> .
>
 | 
Pages: 1
Prev: Pivot Table Defaults
Next: Normalize/concatenate