How to limit sum function to numeric values

J

jmcclain

Thanks...

How do I handle a situation where I want to add non-consecutive cells, such
as A1+A5+A12....
 
E

Elkar

In that case, it would probably be easier to eliminate the #N/A errors rather
than trying to SUM around them.

Do something like:

=IF(ISNA(your formula),"",your formula)

This way, if your formula results in #N/A, a blank will be returned instead.
Then, the SUM function will work on those cells. SUM(A1,A5,A12)

HTH,
Elkar
 
J

jmcclain

Understood - but the total is adding subtotals in a sense....currently done
by +sum(a1+a4+a7) etc...
 
P

Peo Sjoblom

True, but not error values if the OP had #N/A from for instance a VLOOKUP


--


Regards,


Peo Sjoblom
 
D

David Biddulph

Yes. I was assuming that the OP knew the difference between "na" and #N/A or NA().
 
Top