<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Excel Pivot Tables &#187; Data Fields</title>
	<atom:link href="http://www.pivot-table.com/category/data-fields/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pivot-table.com</link>
	<description>Pivot Table Tutorials, Pivot Table Tips and Pivot Table News</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:03:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<image><title>Excel Pivot Tables</title><url>http://www.pivot-table.com/wp-content/themes/atahualpa/images/ColoursRSS.gif</url><link>http://www.pivot-table.com</link><width>34</width><height>34</height><description>Excel pivot table tips and tutorials.</description></image>		<item>
		<title>Pivot Table Summary Functions: Average</title>
		<link>http://www.pivot-table.com/excel-pivot-tables/pivot-table-summary-functions-average</link>
		<comments>http://www.pivot-table.com/excel-pivot-tables/pivot-table-summary-functions-average#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:38:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Data Fields]]></category>
		<category><![CDATA[Excel Pivot Tables]]></category>
		<category><![CDATA[Pivot Table]]></category>
		<category><![CDATA[pivot table subtotals]]></category>
		<category><![CDATA[Pivot Table Totals]]></category>
		<category><![CDATA[pivot table value fields]]></category>
		<category><![CDATA[Source Data]]></category>

		<guid isPermaLink="false">http://www.pivot-table.com/excel-pivot-tables/pivot-table-summary-functions-average</guid>
		<description><![CDATA[<p>Thank you for subscribing to the RSS feed for <a href="http://www.pivot-table.com">Excel Pivot Tables</a> .

Please visit the <a href="http://www.facebook.com/PivotTables">Pivot Tables page on Facebook</a> </p>
Thank you for subscribing to the RSS feed for Excel Pivot Tables . Please visit the Pivot Tables page on Facebook When you add a numeric data field to the Values area in a pivot table, the summary function defaults to either Sum or Count. You can change that field to use one of the [...]]]></description>
			<content:encoded><![CDATA[<p>Thank you for subscribing to the RSS feed for <a href="http://www.pivot-table.com">Excel Pivot Tables</a> .

Please visit the <a href="http://www.facebook.com/PivotTables">Pivot Tables page on Facebook</a> </p>
<p>When you add a numeric data field to the Values area in a pivot table, the <a title="summary function defaults to either Sum or Count" href="http://www.pivot-table.com/pivot-table-tutorial/pivot-table-defaults-to-sum-or-count">summary function defaults to either Sum or Count</a>. You can change that field to use one of the other summary functions, such as Average.</p>
<h3>The Average Function</h3>
<p>The <b>Average</b> function in a pivot table works like the AVERAGE function on the worksheet to calculate the average (mean) of the values. It totals all the underlying values in the Values area, and divides by the number of values.&#160; </p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage05" border="0" alt="pivottableaverage05" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage05.png" width="203" height="190" />&#160;</p>
<p>You can use the <strong>Average</strong> function to compare amounts, such as order sizes, student grades, and project times, across a large number of instances.</p>
<h3>Blanks and Zeros</h3>
<p>Just as they are on the worksheet, blank cells are ignored when calculating the pivot table averages, but zero cells are included. </p>
<p>In the data source shown below, cell C7 is blank. That blank cell is not included in either the worksheet average (C12),</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage01" border="0" alt="pivottableaverage01" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage01.png" width="244" height="280" /></p>
<p>or in the pivot table average, shown below.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage05" border="0" alt="pivottableaverage05" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage05.png" width="203" height="190" />&#160;</p>
<h3>Hidden Zeros</h3>
<p>If you have formatted the worksheet to hide zero values, remember that those zero values will be included in the averages, even if the cells appear blank. </p>
<p>In the two data sources shown below, the overall average is different. Zeros are hidden on the worksheet, and cell F7 contains a zero. Cell C7 is blank. </p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage04" border="0" alt="pivottableaverage04" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage04.png" width="401" height="314" /></p>
<p>If you create pivot tables from these two data sources, the pivot table Average function would include the hidden zeros, just as the worksheet Average does.</p>
<h3>Format the Results</h3>
<p>When you use the <b>Average</b> summary function, the results will probably show a strange mixture of decimal places, as shown in the pivot table at the left, in the screen shot below.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage03" border="0" alt="pivottableaverage03" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage03.png" width="400" height="228" /></p>
<p>Format the field to have a consistent number of decimal places (as in the pivot table at the right, above), so the numbers are easy to compare. </p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivottableaverage02" border="0" alt="pivottableaverage02" src="http://www.pivot-table.com/wp-content/uploads/2010/07/pivottableaverage02.png" width="388" height="279" /></p>
<p>____________</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pivot-table.com/excel-pivot-tables/pivot-table-summary-functions-average/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename a Pivot Table Data Field</title>
		<link>http://www.pivot-table.com/source-data/rename-a-pivot-table-data-field</link>
		<comments>http://www.pivot-table.com/source-data/rename-a-pivot-table-data-field#comments</comments>
		<pubDate>Tue, 28 Jul 2009 01:57:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Captions]]></category>
		<category><![CDATA[Data Fields]]></category>
		<category><![CDATA[Source Data]]></category>

		<guid isPermaLink="false">http://www.pivot-table.com/source-data/rename-a-pivot-table-data-field</guid>
		<description><![CDATA[<p>Thank you for subscribing to the RSS feed for <a href="http://www.pivot-table.com">Excel Pivot Tables</a> .

Please visit the <a href="http://www.facebook.com/PivotTables">Pivot Tables page on Facebook</a> </p>
Thank you for subscribing to the RSS feed for Excel Pivot Tables . Please visit the Pivot Tables page on Facebook When you add a field to the pivot table Data area, it automatically gets a custom name, such as Sum of Units or Count of Units. Instead of “Sum of Units”, you might want [...]]]></description>
			<content:encoded><![CDATA[<p>Thank you for subscribing to the RSS feed for <a href="http://www.pivot-table.com">Excel Pivot Tables</a> .

Please visit the <a href="http://www.facebook.com/PivotTables">Pivot Tables page on Facebook</a> </p>
<p>When you add a field to the pivot table Data area, it automatically gets a custom name, such as Sum of Units or Count of Units.</p>
<p><img title="PivotDataNames01" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="202" alt="PivotDataNames01" src="http://www.pivot-table.com/wp-content/uploads/2009/07/pivotdatanames01.png" width="399" border="0" /> </p>
<p>Instead of “Sum of Units”, you might want the name to show as “Units”, so it’s easier to read and the column is narrower. </p>
<p>Unfortunately, if you select the cell and type Units, you’ll see an error message: “PivotTable field name already exists.” </p>
<p><img title="PivotDataNames02" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="229" alt="PivotDataNames02" src="http://www.pivot-table.com/wp-content/uploads/2009/07/pivotdatanames02.png" width="398" border="0" /> </p>
<p>When you try to use a custom name that’s identical to a field name in the source data, you’ll see that error message. In this example, one of the fields in the source data is named Units, so you can’t use Units as a custom name in the pivot table.</p>
<h3>Use a Slightly Different Custom Name</h3>
<p>To avoid this problem, you can <strong>add a space character</strong> to the end of the custom name, and it will be accepted. </p>
<p>In the screen shot below, I’ve added a space after typing Units. When I press the Enter key, the name will be accepted, without an error message.</p>
<p><img title="PivotDataNames03" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="178" alt="PivotDataNames03" src="http://www.pivot-table.com/wp-content/uploads/2009/07/pivotdatanames03.png" width="361" border="0" /> </p>
<h3>Use a Macro To Fix Names</h3>
<p>If you have lots of Data field names to change you could use a macro, to make the job easier. For example, the following macro will change all the Data field captions in the first pivot table on the active sheet.</p>
<pre><font color="#0000ff">Sub </font>ChangeCaptions()
Dim pf As PivotField
Dim pt As PivotTable
Set pt = ActiveSheet.PivotTables(1)
For Each pf In pt.DataFields
    pf.Caption = pf.SourceName &amp; &quot; &quot;
Next pf
End Sub</pre>
<p>There are instructions here for <a href="http://www.contextures.com/xlvba01.html">adding code to your workbook</a>, and running it. This code would go onto a regular module.</p>
<p>____________________</p>
<p>For more information on pivot tables, see the <a href="http://www.contextures.com/tiptech.html#PivotTables">Pivot Table Topics</a> on my Contextures web site.</p>
<p>___________________________</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pivot-table.com/source-data/rename-a-pivot-table-data-field/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

