Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does SUMPRODUCT() work for Multiple Criteria Aggregations?

Status
Not open for further replies.

SkipVought

Programmer
Dec 4, 2001
47,486
US
Please check out FAQ68-7898.

Does it adequately explain how this function works?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Didn't like mine :)

Looks good...

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Thanx! Never realized you had one.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Your FAQs cover situations where ALL the tests need to be simultaneously satisfied (known in set theory as intersection, and in Boolean algebra as the AND'ing of conditions).[ ] This is achieved by "multiplying" the logical tests:
[ ] [ ] [ ](test 1) * (test 2) * (test 3) * ...

You can also accommodate situations where only ONE OR MORE of the tests need to be satisfied (known in set theory as union, and in Boolean algebra as the OR'ing of conditions).[ ] You can do this by "adding" the logical tests, then using the SIGN function to reduce to 1 any resulting number that is greater than 1.[ ] Thus:
[ ] [ ] [ ]SIGN( (test 1) + (test 2) + (test 3) + ... )

You can then build up even more complicated compound tests, with unions embedded in intersections and vice versa.
 
Well stated. But this FAQ is focused on a demonstration of how the multiple criteria works in a table/array of values, not an explanation of the ways to use it. It can be applied in any number of ways.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
faq68-4725

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top