Do Not count iserror cells

G

Guest

Is there a way to do a countif, or counta function and not have the formula
include the cells that return an error when they are blank. If the cell
returns an error it shows #NA, and is not considered blank when i do a counta
function.
 
B

Bob Phillips

=SUM(IF(NOT(ISERROR(A1:A10)),IF(A1:A10<>"",1,0)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

Bob, that did work after all! thanks.
--
Jeff


Bob Phillips said:
=SUM(IF(NOT(ISERROR(A1:A10)),IF(A1:A10<>"",1,0)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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