Total multiple cells but ignore any of them that may return errors

KingdomBuilding

New Member
Joined
Feb 21, 2013
Messages
3
Hi,

I'm new to this place as a user, but always reading up on other threads.

I've got a cell I'm trying to use to total multiple cells (maybe 30?) from a pivot-table together. They are not a range so I don't believe a sum function will work. However sometimes, depending on the data being used (ie YEAR), not all cells in the formula are used so the whole cell returns #REF!

It may only be one cell out of many that are "hidden" or "not available", but I still would like it to add all of the working cells together ignoring any "GETPIVOTDATA" values that don't currently exist in the "FILTERED YEAR" for example. Any thoughts?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I've seen this suggestion before, but if I'm not mistaken isn't this used in a "SUM" situation? My data is scattered all over the pivottable.
 
Upvote 0
They are not a range so I don't believe a sum function will work.

If this is the case, and you're trying to add several non adjescent cells like A1, D5, G2, C3 etc..
Then it's not as simple as you might think.

Might be best off correcting the GETPIVOTDATA formulas so that they don't return errors.

If you have XL2007 or higher, it's pretty easy..
=IFERROR(GETPIVOTDATA(.....),0)

Now it returns 0 instead of #REF! Errors. so you can do A1+D5+G2+C3
 
Upvote 0
I think you're on the right track. Let me see if I can explain it in more detail though.

I have a pivot table that looks at 25,000 rows of data; that data has been summed into "accounts" / categories in the pivot table. The pivot table is filtered by the "Report Filter" and the YEAR (ie 2012) is used. The data source contains several years of that data.

However, here is where the issue is. In 2011 I may have several "accounts" / categories that have summed totals, but those same accounts may not exist in 2012. I don't want to delete references to my accounts, because they may appear in 2013 again and I need the calculated cell to given me a sum total based on the year selected in the pivot table. Does this make sense?

I'm sorry this may seem unique. If you saw what I was doing it would likely make sense. I am trying to build a template for our organization to use to fill out an Income Tax Return called Form 990 (not easy).

Thanks so much
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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