COUNTA, but not formulas returning empty string

  • Thread starter Johan Myrberger
  • Start date
J

Johan Myrberger

(Using Excel2000)

I have a column (A) where I have entered a formula
=IF(FromAccessTotalSubs!A3="";"";FromAccessTotalSubs!A3) (the row number
increasing on each row). The idea is to copy the column from another
sheet, and ensure that an empty string is displayed rather than 0 if the
copied cell was blank.

When I try to use =COUNTA(A:A) in another cell to find out how many cell
in the column that contains some information (not empty string..) I finf
that COUNTA return the number of cells that contains the (first)
formula, rather than how many cells displays a value to the user.

Is this the intended functionality of COUNTA? How can I enter a formula
that gives me the expected result?

regards
/Johan Myrberger
 
F

Frank Kabel

Hi
yes this is the entended result. Try instead
=SUMPRODUCT(--(A1:A100<>""))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top