Pivot Table Error: Can Count but not Sum

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,943
Hello Everybody!

I have a table of data that includes a calculated column (Referrals) that uses an Index/Match array formula to pull in data from another table. I've made a pivot table from the first table and I want it to sum all referrals for all people in the selected Site. So the pivot table has Site in the Filters field, Person in the Rows field, and Referrals in the Values field. If I set the Value Field Settings to Count, it counts correctly but when I change it to Sum I get a #N/A error.

The array formula in the first table is:
{=IFERROR(INDEX(referrals,MATCH(1,(B8=lastfirst)*(D8=quarter),0)),0)}

and it looks like all values in that column are numeric.


Anybody run into this?

Thanks,

Brian
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
There is at least one occurrence of non-numeric data.

Right you are! One thing I didn't mention is that I also have a field Quarter in the Filters field. When I drag that over to the Columns Field I see that there are #N/A for quarters where that person had no data. I'm just wondering why that is coming up when the array formula returns a zero if there is an error.

Brian
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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