Pivot Table Custom Calculation displays #NULL!

ssgmiami

New Member
Joined
Nov 12, 2007
Messages
22
I have a pivot table that tracks Rents Billed by property, year and month. The rows contain the Property ID and Year, the columns contain the Month. There is a custom calculation to show the % Increase of difference from previous year and month. The calculation works fine for all the years except the current year. For the current year, the calculation for any past months is correct, but for future months the calculation produces a #NULL! result. This is because there are no rent billings yet for those months causing the custom calculation to be invalid.

For the % Inc custom calculation:
Show Value as = % Difference From
Base Field = Year
Base Item = (previous)

Is there a way change the custom calculation or to remove the #NULL! using either formatting or conditional formatting?


Excel 2010
ABCDEFGHIJKLMNO
7JanuaryFebruaryMarchAprilMayJuneJuly
8Row LabelsBilled% IncBilled% IncBilled% IncBilled% IncBilled% IncBilled% IncBilled% Inc
92500 INVERRARY
102012$316,059$320,893$340,149$343,795$346,900$333,745$329,695
112013$334,7575.92%$344,7707.44%$363,9547.00%$356,4913.69%$360,9384.05%$353,1555.82%$350,4596.30%
122014$359,7807.47%$354,7622.90%$355,790-2.24%$370,0183.79%$375,3383.99%$367,0333.93%$367,7214.93%
132015$383,5206.60%$372,9775.13%#NULL!#NULL!#NULL!#NULL!#NULL!
14
15441 INVERRARY
162012$228,914$228,320$232,846$239,569$249,713$241,775$237,137
172013$244,3256.73%$242,6336.27%$243,1474.42%$244,2001.93%$243,886-2.33%$245,3501.48%$240,0581.23%
182014$248,4801.70%$252,7104.15%$254,7884.79%$258,9656.05%$257,1505.44%$258,6725.43%$259,7158.19%
192015$270,6438.92%$271,9267.60%#NULL!#NULL!#NULL!#NULL!#NULL!
20
Pivot-Property
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
By direct formula, you could wrap an IFERROR around your formula. For example:

=IFERROR(CurrentFormula,"")

Conditional formatting could also do it, using ISERROR(ref) as your Conditional format logic.
 
Upvote 0
I'm not having any luck with Conditional Formatting to solve the problem. Since this is a Pivot table custom calculation I have no access to the formula and cannot wrap it in an IFERROR. I am sure that conditional formatting is the answer, but I cannot seem to get the formula correct. Here is what I am doing.

1. I have selected a cell within the % Inc column, in this case $G$13
2. I select Conditional formatting - New Rule
3. In the rule I make the following entries:
Apply Rule to - All cells showing "% Inc" values
Rule Type - Use formula to determine which cells to format
Format values where this formula is true - =ISERROR($G$13)
Format = ;;;

This does not work, I am at a loss as to what do do. I cannot submit the report showing #NULL!'s. Any ideas? Any help would be greatly appreciated
 
Upvote 0
Oh you know it occurs to me there's an easier solution.

Right click on the pivot table -> Pivot Table Options ->check the box for "For error values show".
That will remove all error values from your pivot
 
Upvote 0
Perfect!!! Can't believe that the answer was so simple. I have seen that option a thousand times and it never occurred to me that I would need it.

Your assistance is most appreciated!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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