Table of Contents

Microsoft Excel - SUM - Sum with NA in range

Sample data:

1
2
#REF!
3
#REF!
5

Get the sum

=SUM(IFERROR(A1:D6,""))

returns 11.


Count the number of errors in a range

=SUM(IF(ISERROR(A1:A6),1))

returns 2.