Summing all numeric values only in cells in a column

B

Brad

I guess I am spinning my wheels this morning trying different formula
combinations of Sumif with Isnumber and other combinations to sum all of the
numeric values in a column of cells containing either numbers or #N/As. My
thanks in advance for any suggestions.

Cheers! Brad

What formula would I use to sum a column of values like this?

6.19
#N/A
#N/A
2.97
#N/A
#N/A
5.22
 
B

Bob Phillips

=SUM(IF(ISNUMBER(A1:A100),A1:A100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
J

John Bundy

First thing that comes to mind is to get rid of the N/A errors, put this in
your formula's if(iserror(yourformula),"" or zero, yourformula)
 
M

Mike H

You should get rid of those errors but in the meantime

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

Mike
 
R

Ron Rosenfeld

I guess I am spinning my wheels this morning trying different formula
combinations of Sumif with Isnumber and other combinations to sum all of the
numeric values in a column of cells containing either numbers or #N/As. My
thanks in advance for any suggestions.

Cheers! Brad

What formula would I use to sum a column of values like this?

6.19
#N/A
#N/A
2.97
#N/A
#N/A
5.22

You could use the following as an **ARRAY** formula.

To enter an array formula, hold down <ctrl><shift> while hitting <enter>.
Excel will place braces {...} around the formula if you did it correctly.

=SUM(IF(ISNUMBER(A1:A10),A1:A10))

Note that you cannot reference the entire column using this method (e.g. you
cannot use A:A; maximum range would be A1:A65535)
--ron
 

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