How to limit sum function to numeric values

  • Thread starter Thread starter Guest
  • Start date Start date
Thanks...

How do I handle a situation where I want to add non-consecutive cells, such
as A1+A5+A12....
 
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
 
Understood - but the total is adding subtotals in a sense....currently done
by +sum(a1+a4+a7) etc...
 
True, but not error values if the OP had #N/A from for instance a VLOOKUP


--


Regards,


Peo Sjoblom
 
Back
Top