Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sumproduct: condition with ?
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! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sumproduct: condition with ?
The error is on the parenthesis. Thy this one:
=sumproduct((A1:A10="Y")*(B1:B105),(C1:C10)) Hope this helps, Miguel. "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! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sumproduct: condition with ?
Use sumproduct((A1:A10="Y")*(B1:B105)*(C1:C10)) or you can use
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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sumproduct wildcard or "all" condition | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) | |||
Sumproduct with condition??? | Excel Discussion (Misc queries) | |||
If condition is true return sumproduct of two arrays | Excel Worksheet Functions | |||
If condition is true return sumproduct of two arrays | Excel Worksheet Functions |