sum a range of cells that include an error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I sum a range of cells that include a #N/A error. I want the #N/A
cells to register as 0. Currently the total returned is also #N/A.
Thanks
 
Hi!

Several options:

Fix the formula that returns #N/A.

=IF(ISERROR(your_formula),0,your_formula))

or

=IF(ISERROR(your_formula),"",your_formula))

If you use either of the above then a simple =SUM() will
now work.

If you want the #N/A error to be displayed then:

=SUMIF(A1:A10,">0")

Biff
 
I think you want

=SUM(IF(NOT(ISERROR(A1:A100)),A1:A100)

which is an error, so commit with Ctrl-Shift-Enter.

--

HTH

RP
(remove nothere from the email address 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

Back
Top