<?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: Sorting Formulas with Sheet Names</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Andrey</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-64709</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Tue, 14 Jun 2011 22:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-64709</guid>
		<description>&lt;p&gt;I&#039;m coming across this 2 years after the last post but this is still an issue in 2007 and 2010 and I think it happens a lot more than folks think...a simple exercise like doing a plain sumif on sheet1 when the data is on sheet2 will generate a same-sheet reference which I bet most folks won&#039;t bother with assuming that it is relative. Seems like a huge friggin bug or feature with really unintended consequences.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m coming across this 2 years after the last post but this is still an issue in 2007 and 2010 and I think it happens a lot more than folks think&#8230;a simple exercise like doing a plain sumif on sheet1 when the data is on sheet2 will generate a same-sheet reference which I bet most folks won&#8217;t bother with assuming that it is relative. Seems like a huge friggin bug or feature with really unintended consequences.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lindsay</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-40738</link>
		<dc:creator>Lindsay</dc:creator>
		<pubDate>Fri, 21 Aug 2009 18:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-40738</guid>
		<description>&lt;p&gt;Thank you Jason!  Whew.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you Jason!  Whew.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Page</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-37579</link>
		<dc:creator>Page</dc:creator>
		<pubDate>Wed, 28 Jan 2009 21:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-37579</guid>
		<description>&lt;p&gt;I&#039;m glad I Googled this topic and found you. I have had this problem for years, and have finally decided the best answer is to get the formula results, and copy/paste special/values and then sort to get the desired result. I usually copy and paste the formula back in after the sort.&lt;br&gt;
I agree it&#039;s a bug they need to fix! BTW if it matters I use version 2007&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad I Googled this topic and found you. I have had this problem for years, and have finally decided the best answer is to get the formula results, and copy/paste special/values and then sort to get the desired result. I usually copy and paste the formula back in after the sort.<br />
I agree it&#8217;s a bug they need to fix! BTW if it matters I use version 2007</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-30289</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 01 Feb 2008 18:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-30289</guid>
		<description>&lt;p&gt;bump!&lt;/p&gt;
&lt;p&gt;I&#039;ve got a use for this!  So i&#039;m thinking it&#039;s a UDF (undocumented feature)&lt;/p&gt;
&lt;p&gt;The use - I&#039;ve got a pivot table which contains data I&#039;m using in a formula (user-defined) in cells next to the pivot.  I want to be able to sort the pivot table using the result of the formula but you can&#039;t sort a pivot table using something not in the pivot table.&lt;/p&gt;
&lt;p&gt;In order to sort it then, I&#039;ve linked other cells to the values in the pivot table, used these to calculate the formula and then I can sort...?  Nope - because all the references are relative so when they&#039;re sorted, they just update to there new place and so don&#039;t appear changed.  BUT, if you use the sheet-qualified references, the references don&#039;t update and the data is sorted as required.&lt;/p&gt;
&lt;p&gt;So 2.5 yrs after the original post - a use for it!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>bump!</p>
<p>I&#8217;ve got a use for this!  So i&#8217;m thinking it&#8217;s a UDF (undocumented feature)</p>
<p>The use &#8211; I&#8217;ve got a pivot table which contains data I&#8217;m using in a formula (user-defined) in cells next to the pivot.  I want to be able to sort the pivot table using the result of the formula but you can&#8217;t sort a pivot table using something not in the pivot table.</p>
<p>In order to sort it then, I&#8217;ve linked other cells to the values in the pivot table, used these to calculate the formula and then I can sort&#8230;?  Nope &#8211; because all the references are relative so when they&#8217;re sorted, they just update to there new place and so don&#8217;t appear changed.  BUT, if you use the sheet-qualified references, the references don&#8217;t update and the data is sorted as required.</p>
<p>So 2.5 yrs after the original post &#8211; a use for it!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-28018</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 12 Oct 2007 09:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-28018</guid>
		<description>&lt;p&gt;Thanks Jason.  This was the answer/solution that I was looking for.  I had this problem when using the index function, and must have created the sheet referenced links while clicking back and forth between the sheets that are referenced in the formula.  I consider this a bug.  The cell references aren&#039;t absolute, so they shouldn&#039;t be treated as absolute references.  Note, I&#039;m using excel 2002 which doesn&#039;t have the same filtering capabilities as excel 2003, so not sure if this problem applies to both versions - but I imagine it does.  Cheers, Robert&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Jason.  This was the answer/solution that I was looking for.  I had this problem when using the index function, and must have created the sheet referenced links while clicking back and forth between the sheets that are referenced in the formula.  I consider this a bug.  The cell references aren&#8217;t absolute, so they shouldn&#8217;t be treated as absolute references.  Note, I&#8217;m using excel 2002 which doesn&#8217;t have the same filtering capabilities as excel 2003, so not sure if this problem applies to both versions &#8211; but I imagine it does.  Cheers, Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: earl</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-22058</link>
		<dc:creator>earl</dc:creator>
		<pubDate>Tue, 09 Jan 2007 22:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-22058</guid>
		<description>&lt;p&gt;Is it possible to sort 1 sheet based on the column of another sheet?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;earl&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is it possible to sort 1 sheet based on the column of another sheet?</p>
<p>thanks</p>
<p>earl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim T.</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-12433</link>
		<dc:creator>Jim T.</dc:creator>
		<pubDate>Thu, 19 May 2005 18:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-12433</guid>
		<description>&lt;p&gt;Just to make you really shake your head. Sort Column E using A-&gt;Z... Nothing Happens. Now use Z-&gt;A and the results resort themselves. Use Z-&gt;A agan and they resort themselves back again. I have not found a legitimate use for this. More it is something to watch out for. I found it in a spreadsheet created by a coworker who did not know that anything was wrong.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just to make you really shake your head. Sort Column E using A-&gt;Z&#8230; Nothing Happens. Now use Z-&gt;A and the results resort themselves. Use Z-&gt;A agan and they resort themselves back again. I have not found a legitimate use for this. More it is something to watch out for. I found it in a spreadsheet created by a coworker who did not know that anything was wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-12397</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Mon, 16 May 2005 21:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-12397</guid>
		<description>&lt;p&gt;This problem could show itself if you build formula strings using references returned from RefEdit controls.&lt;br&gt;
They tend to attach sheet names to references.&lt;/p&gt;
&lt;p&gt;Something like this would solve:&lt;/p&gt;
&lt;p&gt;Private Sub refGetAddress_Exit(ByVal Cancel As MSForms.ReturnBoolean)&lt;br&gt;
    If IsRange(refGetAddress.Text) Then _&lt;br&gt;
        If Range(refGetAddress.Text).Worksheet Is ActiveSheet Then _&lt;br&gt;
            refGetAddress = Range(refGetAddress.Text).Address&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;ActiveSheet is an assumption - if you know the destination sheet up front then use that.&lt;/p&gt;
&lt;p&gt;(in this example, IsRange is a function which returns boolean if the parameter looks like a range)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This problem could show itself if you build formula strings using references returned from RefEdit controls.<br />
They tend to attach sheet names to references.</p>
<p>Something like this would solve:</p>
<p>Private Sub refGetAddress_Exit(ByVal Cancel As MSForms.ReturnBoolean)<br />
    If IsRange(refGetAddress.Text) Then _<br />
        If Range(refGetAddress.Text).Worksheet Is ActiveSheet Then _<br />
            refGetAddress = Range(refGetAddress.Text).Address<br />
End Sub</p>
<p>ActiveSheet is an assumption &#8211; if you know the destination sheet up front then use that.</p>
<p>(in this example, IsRange is a function which returns boolean if the parameter looks like a range)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-12396</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 16 May 2005 18:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-12396</guid>
		<description>&lt;p&gt;This is a known issue (in all versions of Excel, I think).  You only get those same-sheet references in a formula if you write a formula using your mouse that points to another sheet first.  For example, you might write/click&lt;/p&gt;
&lt;p&gt;=match(sheet2!A:A,sheet1!A1,0)&lt;/p&gt;
&lt;p&gt;That sheet1 reference happens automatically which doesn&#039;t seem like a bad thing - until you try to sort!  The sheet1 reference in the formula gets treated like an absolute reference.  Best practice is to clean up same-sheet formula elements of this type.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is a known issue (in all versions of Excel, I think).  You only get those same-sheet references in a formula if you write a formula using your mouse that points to another sheet first.  For example, you might write/click</p>
<p>=match(sheet2!A:A,sheet1!A1,0)</p>
<p>That sheet1 reference happens automatically which doesn&#8217;t seem like a bad thing &#8211; until you try to sort!  The sheet1 reference in the formula gets treated like an absolute reference.  Best practice is to clean up same-sheet formula elements of this type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/15/sorting-formulas-with-sheet-names/#comment-12388</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Mon, 16 May 2005 14:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1130#comment-12388</guid>
		<description>&lt;p&gt;I am using Excel 2000 Premium 9.0.6926 SP-3&lt;/p&gt;
&lt;p&gt;I cannot reproduce the problem you speak of.  It works as expected both ascending and descending.  However, if I hand type the formula in Sheet2 and hit enter I get #NAME error, which is kinda strange...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am using Excel 2000 Premium 9.0.6926 SP-3</p>
<p>I cannot reproduce the problem you speak of.  It works as expected both ascending and descending.  However, if I hand type the formula in Sheet2 and hit enter I get #NAME error, which is kinda strange&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

