<?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; Date Fields</title>
	<atom:link href="http://www.pivot-table.com/category/date-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>Summarizing Formatted Dates in Excel Pivot Table</title>
		<link>http://www.pivot-table.com/excel-pivot-tables/summarizing-formatted-dates-in-excel-pivot-table</link>
		<comments>http://www.pivot-table.com/excel-pivot-tables/summarizing-formatted-dates-in-excel-pivot-table#comments</comments>
		<pubDate>Tue, 13 Apr 2010 04:02:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Date Fields]]></category>
		<category><![CDATA[Excel Pivot Tables]]></category>
		<category><![CDATA[Pivot Table]]></category>
		<category><![CDATA[pivot table grouping]]></category>

		<guid isPermaLink="false">http://www.pivot-table.com/excel-pivot-tables/summarizing-formatted-dates-in-excel-pivot-table</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 If you format a column of dates in your pivot table source data, to show as year and month (yyyy-mm), they won't automatically summarize by year and month in the pivot table. Format 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>If you format a column of dates in your pivot table source data, to show as year and month (yyyy-mm), they won't automatically summarize by year and month in the pivot table.</p>
<h3>Format the Source Data</h3>
<p>For example, in the source data shown below, there are several orders for January 2010, and three different dates are visible.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat01" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat01.png" border="0" alt="dateformat01" width="324" height="162" /></p>
<p>If you format those records as yyyy-mm, it looks like all the dates are the same.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat02" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat02.png" border="0" alt="dateformat02" width="327" height="161" /></p>
<h3>Summarize Formatted Dates</h3>
<p>However, when you add the OrderDate field to the Row Labels area of a pivot table, several items appear as 2010-01, instead of only one item.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat03" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat03.png" border="0" alt="dateformat03" width="256" height="179" /></p>
<p>The first instance of 2010-01 shows 3 orders, so that would be the Jan 2, 2010 orders. Below it is an item with a single order, and that's a summary of the Jan 3, 2010 orders.</p>
<p>Even though the dates are formatted to look the same in the source data, the underlying dates are still recognized by the pivot table. Those underlying dates are used for the pivot table summary. If you click a date in the Row Labels, you see the underlying date in the formula bar. Because the dates are different, each date is listed individually.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat04" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat04.png" border="0" alt="dateformat04" width="351" height="208" /></p>
<h3>Group the Dates</h3>
<p>Instead of formatting, you can group the dates in the pivot table to combine the data by month and year.</p>
<ol>
<li>Right-click an OrderDate row label, and then in the context menu, click Group.
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat05" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat05.png" border="0" alt="dateformat05" width="240" height="302" /></li>
<li>In the Grouping dialog box, in the By list, select Months and Years, and then click OK.</li>
</ol>
<p>The orders will be grouped by year and month, showing a total of 38 for January 2010.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat06" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat06.png" border="0" alt="dateformat06" width="218" height="174" /></p>
<h3>Calculate the Year and Month</h3>
<p>Grouping can cause some problems in a pivot table, such as preventing you from using calculated items. If you don't want to using grouping, you could add a new column to the source data, and enter a formula that converts the dates to text. Then, all the dates that have the same year and month will calculate to the same text string.</p>
<p>In our example, the order dates are in column A.</p>
<ol>
<li>Add a blank column to the source data table, with the heading YrMth.</li>
<li>In the cell below the heading, type the formula <strong>=TEXT(A2,”yyyy-mm”) </strong><strong><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat07" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat07.png" border="0" alt="dateformat07" width="381" height="139" /><br />
</strong></li>
<li>Copy the formula down to the last row of data in your table. (Note: If your data is in an Excel Table, the<br />
formula should fill down automatically.</li>
<li>Refresh the pivot table, so you can see the new YrMth field in the PivotTable Field List.</li>
<li>Add the YrMth field to the pivot table Row Labels area.</li>
<li> Remove the old OrderDate field from the pivot table layout.</li>
</ol>
<p>The orders are grouped by year and month, showing a total of 38 for January 2010.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="dateformat08" src="http://www.pivot-table.com/wp-content/uploads/2010/04/dateformat08.png" border="0" alt="dateformat08" width="253" height="207" /></p>
<p>_________________</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pivot-table.com/excel-pivot-tables/summarizing-formatted-dates-in-excel-pivot-table/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Message When Grouping Dates</title>
		<link>http://www.pivot-table.com/excel-pivot-tables/error-message-when-grouping-dates</link>
		<comments>http://www.pivot-table.com/excel-pivot-tables/error-message-when-grouping-dates#comments</comments>
		<pubDate>Sat, 23 Aug 2008 19:35:50 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Date Fields]]></category>
		<category><![CDATA[Excel Pivot Tables]]></category>
		<category><![CDATA[Grouping]]></category>
		<category><![CDATA[Pivot Table]]></category>
		<category><![CDATA[dates]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://www.pivot-table.com/?p=10</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 In Excel 2007, you added a date field to the pivot table's Row area, and you want to group the dates by year. However, you get an error message, "Cannot group that selection", when [...]]]></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>In Excel 2007, you added a date field to the pivot table's Row area, and you want to group the dates by year. However, you get an error message, "Cannot group that selection", when you try to group the dates.</p>
<p>This error occurs if there are cells in the source data that contain text, instead of dates. For example, you may have entered text such as N/A, if a date was not available when the data was being entered.</p>
<p>To correct the problem, do the following:</p>
<ol>
<li>In rows contain text, such as N/A, delete the text, and leave the cell blank, or replace the text with a date.</li>
<li>Refresh the pivot table, and try to group the dates.</li>
<li>If you’re still unable to group the dates, remove the date field from the pivot table layout, refresh the pivot table, then add the date field to the pivot table again.</li>
</ol>
<p>Note: In earlier versions of Excel, blank cells will also cause this error message. You can fill in actual dates, or use dummy dates, such as 2/2/2099, in the source data. Do not leave the cells blank if you want to group the dates.</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>
]]></content:encoded>
			<wfw:commentRss>http://www.pivot-table.com/excel-pivot-tables/error-message-when-grouping-dates/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

