Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default sum everything but errors

The range I need to sum can sometimes contain references to cells that have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error, and
return the sum of the other cells?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default sum everything but errors

Say we want to sum C1 thru C12, but ignore any errors in that range:

=SUM(IF(ISERROR(C1:C12)=FALSE,C1:C12))

This is an array formula inserted with CNTRL-SHFT-ENTER rather than just ENTER
--
Gary''s Student - gsnu200755


"Jeffrey" wrote:

The range I need to sum can sometimes contain references to cells that have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error, and
return the sum of the other cells?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default sum everything but errors

That works if one of the cells in the range contains an error; however, if
the cells in the formula are at random; that is, no defined range, just here
and there, and something gets deleted, then a #ref! shows up in the formula.
In my example below, if the original formula reads:" =SUM(A1,C4,E10,D16:D22)
" and column E gets deleted entirely, the formula will now read "
=SUM(A1,C4,#REF!,D16:D22) " and return a #ref! error as a result. I'm trying
to make that formula dynamic, so that when rows and columns get deleted, the
rest of the formula stays in tact.

"Gary''s Student" wrote:

Say we want to sum C1 thru C12, but ignore any errors in that range:

=SUM(IF(ISERROR(C1:C12)=FALSE,C1:C12))

This is an array formula inserted with CNTRL-SHFT-ENTER rather than just ENTER
--
Gary''s Student - gsnu200755


"Jeffrey" wrote:

The range I need to sum can sometimes contain references to cells that have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error, and
return the sum of the other cells?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default sum everything but errors

Since I assume your error comes from a cell I replaced it with E4 but if you
put #REF! in E4 you will see that this works

=SUM(SUMIF(INDIRECT({"A1","C4","E4","D16:D22"}),"< =0"&999^99))



--


Regards,


Peo Sjoblom


"Jeffrey" wrote in message
...
The range I need to sum can sometimes contain references to cells that
have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error,
and
return the sum of the other cells?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default sum everything but errors

can I send you an example file?


"Peo Sjoblom" wrote:

Since I assume your error comes from a cell I replaced it with E4 but if you
put #REF! in E4 you will see that this works

=SUM(SUMIF(INDIRECT({"A1","C4","E4","D16:D22"}),"< =0"&999^99))



--


Regards,


Peo Sjoblom


"Jeffrey" wrote in message
...
The range I need to sum can sometimes contain references to cells that
have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error,
and
return the sum of the other cells?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default sum everything but errors

Nevermind; it works! wow; Thanks!

"Jeffrey" wrote:

can I send you an example file?


"Peo Sjoblom" wrote:

Since I assume your error comes from a cell I replaced it with E4 but if you
put #REF! in E4 you will see that this works

=SUM(SUMIF(INDIRECT({"A1","C4","E4","D16:D22"}),"< =0"&999^99))



--


Regards,


Peo Sjoblom


"Jeffrey" wrote in message
...
The range I need to sum can sometimes contain references to cells that
have
been deleted, creating a formula that looks like =SUM(A1,C4,#REF!,D16:D22)
How can I get the formula to automatically disregard that specific error,
and
return the sum of the other cells?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
#REF! errors bbotzler Excel Discussion (Misc queries) 2 February 27th 07 12:43 AM
Excel Throwing Circular Errors When No Errors Exist MDW Excel Worksheet Functions 1 August 10th 06 02:15 PM
#Value! errors Field8585 New Users to Excel 1 February 7th 06 09:25 PM
IIf and value-errors Ian Excel Discussion (Misc queries) 9 February 6th 06 01:13 PM
Unresolved Errors in IF Statements - Errors do not show in results Markthepain Excel Worksheet Functions 2 December 3rd 04 08:49 AM


All times are GMT +1. The time now is 06:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"