Counta typically works like this:
=counta(a2:a15) which will return the count of non-blanks in that range.
However, if I have a formula in a cell and yet the cell is blank, it counts it as populated. How do I make this work correctly? countif???
Thank youRe: Counta ignore formulas *SOLVED*
SOLVED
=COUNTIF(a2:a15,">""")
Note that the formula you have quoted may produce an incorrect result, depending on the type of data the formulas in the column A range return - see cell C2 below.Thank you
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2 | C2 | =COUNTIF(A2:A15,">""") |
D2 | D2 | =SUM(--(A2:A15<>"")) |
A2:A15 | A2 | =CHOOSE(RANDBETWEEN(1,5),-1,"a","","b",1) |
=SUMPRODUCT(--(A2:A15<>""))