On Sat, 6 Nov 2010 23:01:57 -0700 (PDT), icystorm <(E-Mail Removed)> wrote:
> There are two bouncing balls. Let's call them "red" and "blue". I want
> to count the number of times each ball bounces higher than one inch
> when dropped.
>
> A1, B1
> ball, height of bounce (inches)
> red, 2.30
> red, 1.20
> red, 0.90
> red, 0.25
> blue, 2.35
> blue, 1.22
> blue, 0.91
> blue, 0.23
>
> For the red ball bounces that meets the bounce height criteria...
>
> {=SUMPRODUCT($A$2:$A$9="red")*($B$2:$B$9>1)}
>
> ...returns 2.
>
> Likewise for the blue ball.
I'm running Excel 2010, and that can be done as
=sumproduct(--($a$2:$a$9="red"),--($b$2:$b$9=">1")).
--
Patrick L. "The Chief Instigator" Humphrey ((E-Mail Removed)) Houston, TX
(
http://www.io.com/~patrick) AA #2237
LAST GAME: Houston 4, Oklahoma City 2 (November 6)
NEXT GAME: Monday, November 8 at Abbotsford, 9:05