Pivot table, calculated field calculates rather than summing the values

madsmads

New Member
Joined
Jan 2, 2011
Messages
27
Dear Forum,

I've got data structured in the following manner:
ProductEstimated cost monthReal Cost to date
A5060
B5020
C5030

<tbody>
</tbody>

Based on the cost to date, I'm trying to allocate the cost for the remainder of the month. Imagine that the data set is MUCH larger than this one, and I currently have all the data linked to pivot tables. In the pivot table I'm % of column total in order to do my allocation. I've made a calculated field, using MAX(0,Est.cost-Real.cost) in order to not allocate any more costs to products which have already spent/overspent their allowance.

Now the issue I keep running into is, that the grand total is also a calculation rather than a summation of the information in the calculated field column. So in this example, the sum column% will looks like this:
Product% allocation of remaining cost
A0% (since they have overspent)
B75% (since it's 30 of the 40 remaining total cost)
C50% (since it's 20 of the 40 remaining total cost)
Grand total100% (since it's 40 of the 40 remaining total cost)

<tbody>
</tbody>

Now my issue is that I cannot use this allocation for anything as it does not add up to 100. Is there another formula I can use for the calculated field, which will allow me to leave overspent at 0%, and allocate the remaining product's cost% to sum up to 100% in the grand total?

Hope the explanation makes sense, otherwise I'll be happy to elaborate.
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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