I can't seem to get it to work. The formula cell will be on a different tab
than what's to be counted, but I want it to count the P column on 26 other
tabs, such as 'A:Z'!
I had assumed you were going to use 26 different cells to see the
count for each sheet individually, too. Do you want it all in one
formula? Sumproduct can't do 3D ranges, and I don't think other built-
in functions can, either. I think you would have to repeat the formula
26 times in one cell. Or use a UDF that can handle 3D better. See the
very bottom.
Though I can't even get it to work on just one of the tabs, such as:
=SUMPRODUCT 'A'! (--(ABS(P1
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
100)<=100))
You need to put the sheet next to the range.
=SUMPRODUCT(--(ABS('A'!P1
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
100)<=100))
Counting blank cells would be an issue. What would they get counted as ?
They would be included in the <100 count, because it will assume they
are zeroes. So you can add another calc to get rid of them. There's a
couple ways to do it, here's one:
=SUMPRODUCT(--(ABS('A'!P1
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
100)<=100))-SUMPRODUCT(--('A'!P1
![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
100=""))
The = to can probably be removed, as the >< account for it as I needed.
At some point I think you need the =. Otherwise it will not count 100
and 400.
So, after all that, here is a single formula that can give you the
first item, counting items from -100 and 100, inclusive, on all
sheets. This includes a UDF from morefunc. You can find morefunc via
Google or download.com.
=SUMPRODUCT(--(ABS(--THREED('A:Z'!A1:A29))<=100))-SUMPRODUCT(--(THREED
('A:Z'!A1:A29)=""))