SumIf with NA

A

ArthurJ

A
1 10
2 #N/A
3 20
4 #N/A
5 =SumIf(A1:A4,"<>NA")

Some cells in a column of numbers evaluate to #N/A. I would like to sum the
column but ignore the #N/A entries. Is there a way to do this WITHOUT
creating a separate criteria column? I have tried various versions of the
syntax in cell A5 above without success.

Thank you,
Art
 
M

Mike H

Hi,

Try this

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

This is an array which must be entered with CTRL+Shift+Enter and not just
enter. If you do it correctly Excel will put curly brackets around the
formula {}. You can't type these yourself.

Mike
 
R

RagDyeR

Couple of ways:

=SUMIF(A1:A4,"<>#N/A")
OR
=SUMIF(A1:A4,"<"&99^99)
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

A
1 10
2 #N/A
3 20
4 #N/A
5 =SumIf(A1:A4,"<>NA")

Some cells in a column of numbers evaluate to #N/A. I would like to sum the
column but ignore the #N/A entries. Is there a way to do this WITHOUT
creating a separate criteria column? I have tried various versions of the
syntax in cell A5 above without success.

Thank you,
Art
 
M

Mike H

Hi,

Apologies I should have looked more carefully at your formula instead

=SUMIF(A1:A3,"<>#N/A")

This time not an array.

Mike
 
R

RagDyeR

Should mention that the second suggestion:

=SUMIF(A1:A4,"<"&99^99)

Will by-pass all errors, not just the #N/A error.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------


Couple of ways:

=SUMIF(A1:A4,"<>#N/A")
OR
=SUMIF(A1:A4,"<"&99^99)
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

A
1 10
2 #N/A
3 20
4 #N/A
5 =SumIf(A1:A4,"<>NA")

Some cells in a column of numbers evaluate to #N/A. I would like to sum the
column but ignore the #N/A entries. Is there a way to do this WITHOUT
creating a separate criteria column? I have tried various versions of the
syntax in cell A5 above without success.

Thank you,
Art
 

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