Multisheet range in SUMPRODUCT?
For counting frequencies of numbers in 3D ranges:
=INDEX(FREQUENCY(Sheet1:Sheet4!B4:B6,20),1)
=INDEX(FREQUENCY(Sheet1:Sheet4!B4:D6,20),1)
You can even use multiple area references (but not across sheets):
=INDEX(FREQUENCY((B4:B6,D4:D6,X1:X100),20),1)
--
Biff
Microsoft Excel MVP
"Bob Phillips" wrote in message
...
Try
=SUMPRODUCT(--(COUNTIF(INDIRECT("Sheet"&ROW(INDIRECT("1:4"))&"!B 4:B6"),"<=20")))
--
HTH
Bob
"Joe User" <joeu2004 wrote in message
...
When I write SUM(Sheet1:Sheet4!B4:B6), that works.
But if I change the function name to SUMPRODUCT, I get a #REF error.
Copied from the Formula Bar:
=SUMPRODUCT(Sheet1:Sheet4!B4:B6)
And if I use that form of range in a subexpression, I get a #NAME error.
Copied from the Formula Bar:
=SUMPRODUCT(--(sheet1:Sheet4!B4:B6<=20))
Note that Sheet1 is lowercased by Excel. All my changes were made by
successive minimum editing of the original SUM formula.
Is there some way to make this kind of range work with SUMPRODUCT, short
of the obvious, namely breaking this into multiple subexpressions?
|