View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Conan Kelly Conan Kelly is offline
external usenet poster
 
Posts: 419
Default Different comparison criteria in sumproduct

adimar,

It looks like "($A1:$5="Apple")" is wrong. Shouldn't it be something like:

($A$1:$A$5="Apple")

That formula will only count the items where Delivered = Requested. What if
Delivered is before Requested? Do you want to count those too?

=sumproduct(($A$1:$A$5="Apple")*($B$1:$B$5=$C$1:$ C$5))

HTH,

Conan







"adimar" wrote in message
...

I'm looking for a formula that returns number of items delivered on time.
Ex: How many items "Apple" were delivered on time in the table below.

A B C
Item Requested Delivered
==== ========= =========
1 Apple 2/1/07 3/1/07
2 Apple 2/5/07 2/5/07
3 Orange 2/3/07 4/1/07
4 Apple 2/3/07 2/2/07
5 Apple 2/15/07 2/20/07

sumproduct(($A1:$5="Apple")*($B$1:$B$5=$C$1:$C$5)) doesn't work...