The blank cells i need to count have formilas in

  • Thread starter Thread starter Rubber 4 u
  • Start date Start date
R

Rubber 4 u

How do i write a fromula to add together diffeent ranges of cells that will
count blank cells even if the blank has a formula in it.
f 17:f12 + g23:g30+h5:h10 = 8
using excel 2007Vista
 
Hi Rubber,

If the blank cells with a formula in them has the value of zero, use COUNTA
to count the cells and COUNTIF to count the zero values in each range, then
subtract the two.

=COUNTA(F12:F17)-COUNTIF(F12:F17,0)

or fully

=COUNTA(F12:F17)-COUNTIF(F12:F17,0)+COUNTA(g23:g30)-COUNTIF(g23:g30,0)+COUNTA(h5:h10)-COUNTIF(h5:h10,0)

Squeaky
 
Maybe you meant something like this:
=SUMPRODUCT(--(TRIM(A2:B10)<>""))
which counts populated cells within the range excluding formulas returning
either "blank" or returning invisible white spaces
Spot on? celebrate it, hit the YES below
 
Back
Top