Avg of montly totals in a pivot table

jmn

New Member
Joined
Sep 22, 2011
Messages
1
How can I get a pivot table to calculate the average of the monthly totals and not the average of all the raw data.

Below is a pivot table of the data on the left. When the pivot table averages the months it calculates the average of every single record, 48.83. How can I get it to average the monthly totals:average(apr,may,Jun)= 179.05


<table width="710" border="0" cellpadding="0" cellspacing="0"><colgroup><col style="mso-width-source:userset;mso-width-alt:2816;width:58pt" width="77"> <col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="mso-width-source:userset;mso-width-alt:2816; width:58pt" span="3" width="77"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="mso-width-source:userset;mso-width-alt:4169;width:86pt" width="114"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td style="height:15.0pt;width:58pt" height="20" width="77">Date</td> <td style="width:61pt" width="81">cost</td> <td style="width:77pt;font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#DBE5F1;mso-pattern:#DBE5F1 none" width="102">Sum of cost</td> <td style="width:58pt;font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#DBE5F1;mso-pattern:#DBE5F1 none" width="77">Years</td> <td style="width:58pt;font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#DBE5F1;mso-pattern:#DBE5F1 none" width="77">Date</td> <td style="width:58pt;font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#DBE5F1;mso-pattern:#DBE5F1 none" width="77">
</td> <td style="width:79pt;font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;background:#DBE5F1;mso-pattern:#DBE5F1 none" width="105">
</td> <td style="width:86pt" width="114">
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">4/1/2011</td> <td class="xl68">-75.00</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; background:#DBE5F1;mso-pattern:#DBE5F1 none">
</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; background:#DBE5F1;mso-pattern:#DBE5F1 none">2011</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; background:#DBE5F1;mso-pattern:#DBE5F1 none">
</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; background:#DBE5F1;mso-pattern:#DBE5F1 none">
</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; background:#D8D8D8;mso-pattern:#D8D8D8 none">2011 Average</td> <td class="xl65">Monthly Average</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">4/11/2011</td> <td class="xl68">-58.88</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; border:none;background:#DBE5F1;mso-pattern:#DBE5F1 none">
</td> <td class="xl65" style="font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border:none;background:#DBE5F1;mso-pattern:#DBE5F1 none">Apr</td> <td class="xl65" style="font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border:none;background:#DBE5F1;mso-pattern:#DBE5F1 none">May</td> <td class="xl65" style="font-size:11.0pt;color:black;font-weight:700; text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border:none;background:#DBE5F1;mso-pattern:#DBE5F1 none">Jun</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; border:none;background:#D8D8D8;mso-pattern:#D8D8D8 none">
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">4/15/2011</td> <td class="xl68">-56.51</td> <td style="font-size:11.0pt;color:black;font-weight:700;text-decoration:none; text-underline-style:none;text-line-through:none;font-family:Calibri; border-top:.5pt solid #95B3D7;border-right:none;border-bottom:none; border-left:none;background:#DBE5F1;mso-pattern:#DBE5F1 none">Total</td> <td class="xl66" style="font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:none;border-left:none;background:#DBE5F1;mso-pattern:#DBE5F1 none" align="right">-$240.39</td> <td class="xl66" style="font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:none;border-left:none;background:#DBE5F1;mso-pattern:#DBE5F1 none" align="right">-$178.04</td> <td class="xl66" style="font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:none;border-left:none;background:#DBE5F1;mso-pattern:#DBE5F1 none" align="right">-$118.71</td> <td class="xl66" style="font-size:11.0pt;color:black;font-weight: 700;text-decoration:none;text-underline-style:none;text-line-through:none; font-family:Calibri;border-top:.5pt solid #95B3D7;border-right:none; border-bottom:none;border-left:none;background:#DBE5F1;mso-pattern:#DBE5F1 none" align="right">-$48.83</td> <td class="xl67" align="right">-$179.05</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">4/27/2011</td> <td class="xl68">-50.00</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">5/13/2011</td> <td class="xl68">-48.89</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">5/13/2011</td> <td class="xl68">-43.45</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">5/13/2011</td> <td class="xl68">-43.12</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">5/23/2011</td> <td class="xl68">-42.58</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">6/10/2011</td> <td class="xl68">-39.95</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">6/10/2011</td> <td class="xl68">-39.95</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl65" style="height:15.0pt" height="20" align="right">6/17/2011</td> <td class="xl69">-38.81</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" height="20">avg</td> <td class="xl68">-48.83</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> </tbody></table>
 

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
Excel Workbook
FG
6Row LabelsSum of cost
7Apr-289.28
8May-129.15
9Jun-118.71
10Grand Total-537.14
11-179.0466667
Sheet2


For the Column containing row data, right click a cell, Group, group by months and for the Vlaue column use the Sum

You can then just add a celle below and do a Sum like the one in G11 and copy the PT formatting using the painter

hope that helps
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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