Sum?

B

bill mackay

I have a column H with 121 rows, in some rows there are
numbers in others there are #DIV/0!
I need to know the total of the numbers in column H
eg:- H
$10
$10
$12
$18
#DIV/0!
#DIV/O!
#DIV/0!
The column can be up to 121 rows with numbers or 60
or so rows with numbers and the rest with #DIV/0!

Thanks Heaps Bill Mackay
 
B

Bob Phillips

Hi Bill,

Try this

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

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
K

Ken Wright

Bobs answer will give you what you need, but personally I couldn't sleep
till I had fixed the formulas that were returning #DIV/0 in the first place.
I would always fix errors at source rather than compensating for their
effects.
 
A

Aladin Akyurek

Take notice of Ken's observation. Otherwise...

=SUMIF(A1:A121,"<>#DIV/0!")

which just needs enter.
 
Top