View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Sumproduct: condition with ?

Maybe you meant:

=sumproduct((A1:A10="Y")*(B1:B105),(C1:C10))

Notice the extra set of ()'s.

I like this style better:
=sumproduct(--(A1:A10="Y"),--(B1:B105),(C1:C10))



Sarah wrote:

Hi the

Am using a sumproduct formula that looks like this:
=sumproduct(A1:A10="Y")*(B1:B105),(C1:C10)
Which did not work
So I tried
=sumproduct(A1:A10="Y")*(B1:B10"5"),(C1:C10)
Which did not work either.

Does some product not work with numeric conditions like 5? Is it only for
text conditions like ="Y"?
Thanks!


--

Dave Peterson