jasonconlon
Board Regular
- Joined
- Mar 14, 2002
- Messages
- 80
Greetings!
To set the scene -- I've got a column of formulas that are doing some test, and returning either a null ("") value or a name (e.g. John Brown). Every so often there's a break in the column to do a subtotal, then some blank rows, then it returns to the same formula of null-or-name. This is in a set-pattern of 5 formulas (for each weekday), subtotal, blank row; repeat... - for a set-total of 5 iterations.
For example:
[null]
John Jones
John Jones
John Jones
[null]
Total
John Jones
John Jones
[null]
John Jones
John Jones
Total
etc...
I'm looking to do a COUNTIF for each instance of a name (i.e. non-null), specifying a non-adjacent range of cells.
~Question 1~
I can work out how to set the criteria to test for null values:
=COUNTIF(A1:A5,"")
but how do you express a non-null criteria?
~Question 2~
Is it possible, using COUNTIF, to specify several ranges?
e.g. something equivalent to:
=COUNTIF({A1:A5,A8:A12,A15:A19,A22:A26,A29:A33},"")
To set the scene -- I've got a column of formulas that are doing some test, and returning either a null ("") value or a name (e.g. John Brown). Every so often there's a break in the column to do a subtotal, then some blank rows, then it returns to the same formula of null-or-name. This is in a set-pattern of 5 formulas (for each weekday), subtotal, blank row; repeat... - for a set-total of 5 iterations.
For example:
[null]
John Jones
John Jones
John Jones
[null]
Total
John Jones
John Jones
[null]
John Jones
John Jones
Total
etc...
I'm looking to do a COUNTIF for each instance of a name (i.e. non-null), specifying a non-adjacent range of cells.
~Question 1~
I can work out how to set the criteria to test for null values:
=COUNTIF(A1:A5,"")
but how do you express a non-null criteria?
~Question 2~
Is it possible, using COUNTIF, to specify several ranges?
e.g. something equivalent to:
=COUNTIF({A1:A5,A8:A12,A15:A19,A22:A26,A29:A33},"")