Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 231
Default 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   Report Post  
Posted to microsoft.public.excel.misc
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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct wildcard or "all" condition John Michl Excel Worksheet Functions 4 October 5th 06 07:43 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Sumproduct with condition??? neda5 Excel Discussion (Misc queries) 5 December 14th 05 02:09 AM
If condition is true return sumproduct of two arrays Felipe Excel Worksheet Functions 0 October 14th 05 05:26 AM
If condition is true return sumproduct of two arrays Duke Carey Excel Worksheet Functions 0 October 14th 05 05:24 AM


All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"