<?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; Captions</title>
	<atom:link href="http://www.pivot-table.com/category/captions/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>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>

