Sum non-consecutive cells while ignoring #DIV/0!

BabeHeart

New Member
Joined
Dec 2, 2011
Messages
14
I am trying to sum non-consecutive cells and ignore those with #DIV/0!. The error cells have a formula in them for which no data has yet been entered. My spreadsheet issue looks something like this:

number
number
number

subtotal

number
number
number

subtotal

TOTAL

I need to add up the subtotals and display in the TOTAL cell, but ignore the subtotals that have the error (the numbers are values by month and so some subtotals display an error until we get to that quarter of the year). I did my due diligence and searched the web for an answer but haven't come up with anything. Thanks for any help! :confused:

EDIT: There are 4 subtotals in reality, but I didn't include them all in the example (in case that matters).
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What version of excel do you have? 2010 you can use the AGGREGATE function which has an option to ignore errors.

Earlier version of Excel there are a number of ways, a couple of which are you can change your formulas to have an =IFERROR(yourformula, 0) to put 0's in those cells when there is an error.
 
Upvote 0
Thank you for the link. I don't understand how to use the function, but it was interesting to watch. My knowledge of Excel formulas is not all that advanced, and I don't always understand the 'arguments' needed.
 
Upvote 0
I would do something to the subtotals so that they display 0, instead of error.

Something like =IF(ISERROR(existingformula),0,existingformula)

or

=IF(reporting date> today(),0,existingformula).

Then sum all the subtotals.
 
Upvote 0
Sorry you would probably use option 3 instead of 6 to..

Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE functions.

This way it will actually sum your numbers ignoring the subtotals and errors.
 
Upvote 0
Thank you Expiry. I tried your first suggestion and it worked. I think the AGGREGATE would have worked also, if I could figure it out. My attempt gave me a result that was the #DIV0! error.

Happy Holidays!
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top