<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: AutoFilter Tricks</title>
	<atom:link href="http://peltiertech.com/WordPress/autofilter-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/autofilter-tricks/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:02:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Tracy</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-148116</link>
		<dc:creator>Tracy</dc:creator>
		<pubDate>Thu, 27 Oct 2011 14:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-148116</guid>
		<description>Thanks so much for the post. It saves a lot of time for me. I am so pleased to have find the post, have been trying to get filter working in VBA for hours.</description>
		<content:encoded><![CDATA[<p>Thanks so much for the post. It saves a lot of time for me. I am so pleased to have find the post, have been trying to get filter working in VBA for hours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-39902</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Tue, 14 Sep 2010 09:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-39902</guid>
		<description>Here&#039;s a strange wee bug, related to this post. This screenshot of an excel 2007 pivottable shows the options available for a row field.
&lt;img src=&quot;http://peltiertech.com/images/2010-09/09.14.2010-21.46.09.png&quot;&gt;

If you then add an autofilter to a pivot table the way mentioned above, then here&#039;s what you see:
&lt;img src=&quot;http://peltiertech.com/images/2010-09/09.14.2010-21.48.49.png&quot;&gt;

The option that used to read &#039;More sort options&#039; now reads &#039;Sort by Color&#039;....although it in fact allows you to click on the &#039;Custom Sort&#039; button and sort by something actually useful.</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a strange wee bug, related to this post. This screenshot of an excel 2007 pivottable shows the options available for a row field.<br />
<img src="http://peltiertech.com/images/2010-09/09.14.2010-21.46.09.png"/></p>
<p>If you then add an autofilter to a pivot table the way mentioned above, then here&#8217;s what you see:<br />
<img src="http://peltiertech.com/images/2010-09/09.14.2010-21.48.49.png"/></p>
<p>The option that used to read &#8216;More sort options&#8217; now reads &#8216;Sort by Color&#8217;&#8230;.although it in fact allows you to click on the &#8216;Custom Sort&#8217; button and sort by something actually useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: athinaok</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-18744</link>
		<dc:creator>athinaok</dc:creator>
		<pubDate>Fri, 04 Sep 2009 13:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-18744</guid>
		<description>Thank you very much you saved me from hours of programming!</description>
		<content:encoded><![CDATA[<p>Thank you very much you saved me from hours of programming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-16505</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 21 Jul 2009 11:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-16505</guid>
		<description>Jeff -

This is a neat trick, and one that I&#039;ve resorted to when the calculated fields didn&#039;t calculate what I wanted.

You know how to get the original data out of a pivot table, don&#039;t you? Double clicking on any cell in a pivot table inserts a new sheet with the records used to calculate that cell. Double clicking on the grand total cell gives you all records in the original source data.</description>
		<content:encoded><![CDATA[<p>Jeff -</p>
<p>This is a neat trick, and one that I&#8217;ve resorted to when the calculated fields didn&#8217;t calculate what I wanted.</p>
<p>You know how to get the original data out of a pivot table, don&#8217;t you? Double clicking on any cell in a pivot table inserts a new sheet with the records used to calculate that cell. Double clicking on the grand total cell gives you all records in the original source data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff weir</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-16503</link>
		<dc:creator>jeff weir</dc:creator>
		<pubDate>Tue, 21 Jul 2009 09:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-16503</guid>
		<description>I stumbled across a neat hack today re filtering pivottables that&#039;s so obvious it has been right under my nose. 

As I point out above,  a problem with using a filter down the side of a pivottable to filter it can cause some issues if you are also using filters in the pivot fields. And as I also mentioned above, I&#039;ve previously been aggregating up some of my pivot table data fields into aggregate totals using a bit of SQL, so that they could then be dropped in to the pivottable as row fields and filtered. 

But today, I tried a different tack, after realising a pivottable can be used as a datasource for another pivot table. 

One bonus of this method is that you can effectively add ad-hoc fields to your original (Master) pivottable, that then show up fully intergrated in the new (Slave) pivottable. That is, you can build some ad-hoc formulas that far surpass what a calculated field will allow you to do, or introduce new data altogether (perhaps from a seperate data source, as I was doing today). This can then be dragged and dropped into the new pivot table as row fields or data fields, just like the original data can. So you can happily filter away, as well as sort the Slave pivot table by the new fields (which you can&#039;t do with the autofilter hack above). 


For instance, if you want your dates to coincide with a fiscal year that runs from 1 July, but you can&#039;t get at the original data source to add another field,  or you want a quick and dirty workaround, then you could put a new column to the left of your original pivottable (rather than the right, where it would get overwritten if the Master Pivot Table has any more row or data fields added to it) and use the formula to return a financial year field, using something like:

=IF(MONTH(B2)&gt;6,YEAR(B2)+1,YEAR(B12))   ...assuming this formula is in A2 and copied down, and the pivottable has dates in row B2, and you put &#039;financial year&#039; as a header in A1

Then when you selet the data source for the Slave pivot table, just be sure to include row A through to the last row that has pivot table data, and you&#039;ve solved your problem. Probably best to define a dynamic range for this in case the Master pivot table grows or shrinks.

This might be a convenient way to bring new data into a pivotchart too...if pivot charts are your thing.

What do you think? Worthwhile? Drawbacks?</description>
		<content:encoded><![CDATA[<p>I stumbled across a neat hack today re filtering pivottables that&#8217;s so obvious it has been right under my nose. </p>
<p>As I point out above,  a problem with using a filter down the side of a pivottable to filter it can cause some issues if you are also using filters in the pivot fields. And as I also mentioned above, I&#8217;ve previously been aggregating up some of my pivot table data fields into aggregate totals using a bit of SQL, so that they could then be dropped in to the pivottable as row fields and filtered. </p>
<p>But today, I tried a different tack, after realising a pivottable can be used as a datasource for another pivot table. </p>
<p>One bonus of this method is that you can effectively add ad-hoc fields to your original (Master) pivottable, that then show up fully intergrated in the new (Slave) pivottable. That is, you can build some ad-hoc formulas that far surpass what a calculated field will allow you to do, or introduce new data altogether (perhaps from a seperate data source, as I was doing today). This can then be dragged and dropped into the new pivot table as row fields or data fields, just like the original data can. So you can happily filter away, as well as sort the Slave pivot table by the new fields (which you can&#8217;t do with the autofilter hack above). </p>
<p>For instance, if you want your dates to coincide with a fiscal year that runs from 1 July, but you can&#8217;t get at the original data source to add another field,  or you want a quick and dirty workaround, then you could put a new column to the left of your original pivottable (rather than the right, where it would get overwritten if the Master Pivot Table has any more row or data fields added to it) and use the formula to return a financial year field, using something like:</p>
<p>=IF(MONTH(B2)&gt;6,YEAR(B2)+1,YEAR(B12))   &#8230;assuming this formula is in A2 and copied down, and the pivottable has dates in row B2, and you put &#8216;financial year&#8217; as a header in A1</p>
<p>Then when you selet the data source for the Slave pivot table, just be sure to include row A through to the last row that has pivot table data, and you&#8217;ve solved your problem. Probably best to define a dynamic range for this in case the Master pivot table grows or shrinks.</p>
<p>This might be a convenient way to bring new data into a pivotchart too&#8230;if pivot charts are your thing.</p>
<p>What do you think? Worthwhile? Drawbacks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Analytics Team &#187; Blog Archive &#187; Tips for using Excel auto filters</title>
		<link>http://peltiertech.com/WordPress/autofilter-tricks/comment-page-1/#comment-14437</link>
		<dc:creator>Analytics Team &#187; Blog Archive &#187; Tips for using Excel auto filters</dc:creator>
		<pubDate>Sat, 23 May 2009 23:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=1963#comment-14437</guid>
		<description>[...] PTS has some good tricks for using Excel&#8217;s auto filters including using auto filters with pivot tables [...]</description>
		<content:encoded><![CDATA[<p>[...] PTS has some good tricks for using Excel&#8217;s auto filters including using auto filters with pivot tables [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

