The easiest thing would be to simply list the numbers in a column, then have the counting formula in the next column referencing that.
So instead of B:B=1, you would have B:B=D1 or whatever cell has the "1" in it.
For example, I did that here, except I used a SUMPRODUCT formula to get the results (note with SUMPRODUCT you have to use a specific range--you can't refer to entire columns such as B:B):
B C D E F 1 1 TRUE 1 3 2 2 FALSE 2 0 3 3 FALSE 3 1 4 4 TRUE 4 2 5 1 TRUE 6 2 FALSE 7 3 TRUE 8 4 FALSE 9 1 TRUE 10 2 FALSE 11 3 FALSE 12 4 TRUE
The formula in F1 is =SUMPRODUCT(--($B$1:$B$12=E1),--($C$1:$C$12=TRUE)) and just copied down to the other cells.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks