ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SUM ignoring errors (https://www.excelbanter.com/excel-discussion-misc-queries/193421-sum-ignoring-errors.html)

Darby

SUM ignoring errors
 
Is there an easy way to sum a column but have it ignore #NA and #Div/0!

The file I am using is fairly large and I'd like avoid build IF formulas to
replace the errors

Thanks

Dave Peterson

SUM ignoring errors
 
One way:

=SUMIF(A:A,"<10E37")

10E37 is a huge number in scientific notation.

Another way is to use an array formula:

=sum(if(isnumber(a1:a999),a1:a999))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.



Darby wrote:

Is there an easy way to sum a column but have it ignore #NA and #Div/0!

The file I am using is fairly large and I'd like avoid build IF formulas to
replace the errors

Thanks


--

Dave Peterson

Darby

SUM ignoring errors
 
perfect, thanks

"Dave Peterson" wrote:

One way:

=SUMIF(A:A,"<10E37")

10E37 is a huge number in scientific notation.

Another way is to use an array formula:

=sum(if(isnumber(a1:a999),a1:a999))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.



Darby wrote:

Is there an easy way to sum a column but have it ignore #NA and #Div/0!

The file I am using is fairly large and I'd like avoid build IF formulas to
replace the errors

Thanks


--

Dave Peterson



All times are GMT +1. The time now is 07:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com