<?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: A Linked Table to Sort Data for Charting</title>
	<atom:link href="http://peltiertech.com/WordPress/a-linked-table-to-sort-data-for-charting/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/a-linked-table-to-sort-data-for-charting/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Thu, 11 Mar 2010 22:03:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/a-linked-table-to-sort-data-for-charting/comment-page-1/#comment-39</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 28 Feb 2008 16:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/02/22/a-linked-table-to-sort-data-for-charting/#comment-39</guid>
		<description>I noticed that John Mansfield has covered this exact topic on his cellMatrix blog:
&lt;a href=&quot;http://www.cellmatrix.net/index.php/site/comments/auto_sort_chart/&quot; rel=&quot;nofollow&quot;&gt;Auto-Sort Chart&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I noticed that John Mansfield has covered this exact topic on his cellMatrix blog:<br />
<a href="http://www.cellmatrix.net/index.php/site/comments/auto_sort_chart/" rel="nofollow">Auto-Sort Chart</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/a-linked-table-to-sort-data-for-charting/comment-page-1/#comment-38</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 26 Feb 2008 17:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/02/22/a-linked-table-to-sort-data-for-charting/#comment-38</guid>
		<description>Andrew -

Thanks for the comments. I noticed the reverse sorting of items in the sorted list: Delta, Epsilon, and Theta all show the same value, but they are listed with with Theta first, because ROW()/1000 gives a larger value for a higher row. I could have changed the added term to something like (100-ROW())/10000, which would restore the order of the items in the original list. Your formula looks nicer, though, and precludes the user having to decide what large number to divide the row number by.

You also mentioned that my chart is actually showing slightly distorted data, with numbers exaggerated by ROW()/1000. I should follow one of my cardinal rules, which is, if you should use another column, use another column. The added column would use the sorted numbers in column F to look up the actual data from column C, much as the labels in column E are looked up. The lookup formula is:

=INDEX($C$2:$C$9,MATCH(F2,$A$2:$A$9,0))

In fact I use this in my own web site tracking workbook, where I track statistics backwards for six months. I use the lookup for all six months of the tracking data, based on the sorted values for the most recent month.

Maybe when I get a minute I&#039;ll fix the protocol above to address both of your suggestions.</description>
		<content:encoded><![CDATA[<p>Andrew -</p>
<p>Thanks for the comments. I noticed the reverse sorting of items in the sorted list: Delta, Epsilon, and Theta all show the same value, but they are listed with with Theta first, because ROW()/1000 gives a larger value for a higher row. I could have changed the added term to something like (100-ROW())/10000, which would restore the order of the items in the original list. Your formula looks nicer, though, and precludes the user having to decide what large number to divide the row number by.</p>
<p>You also mentioned that my chart is actually showing slightly distorted data, with numbers exaggerated by ROW()/1000. I should follow one of my cardinal rules, which is, if you should use another column, use another column. The added column would use the sorted numbers in column F to look up the actual data from column C, much as the labels in column E are looked up. The lookup formula is:</p>
<p>=INDEX($C$2:$C$9,MATCH(F2,$A$2:$A$9,0))</p>
<p>In fact I use this in my own web site tracking workbook, where I track statistics backwards for six months. I use the lookup for all six months of the tracking data, based on the sorted values for the most recent month.</p>
<p>Maybe when I get a minute I&#8217;ll fix the protocol above to address both of your suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://peltiertech.com/WordPress/a-linked-table-to-sort-data-for-charting/comment-page-1/#comment-37</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 25 Feb 2008 04:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/02/22/a-linked-table-to-sort-data-for-charting/#comment-37</guid>
		<description>I suggest the following improvements:

In cell A2, use
=RANK(C2,$C$2:$C$9)+COUNTIF($C$2:C2,C2)-1
This formula creates an artificial sort allowing for duplicates with the use of the COUNTIF function. When duplicates values arise the first label in the list takes precedence.

In cell E2, use
=INDEX($B$2:$B$9,MATCH(ROW()-ROW($E$1),$A$2:$A$9,0))
This formula works in the same way as described in the blog but makes reference to the updated sort column.

In cell F2, use
=INDEX($C$2:$C$9,MATCH(ROW()-ROW($F$1),$A$2:$A$9,0))

Each of these formulae should be copied down.

The result is slightly different in that (a) my sort function is based on first listed data (as opposed to introducing ROW() as a tolerance variable), and (b) returns actual results (rather than close estimates).</description>
		<content:encoded><![CDATA[<p>I suggest the following improvements:</p>
<p>In cell A2, use<br />
=RANK(C2,$C$2:$C$9)+COUNTIF($C$2:C2,C2)-1<br />
This formula creates an artificial sort allowing for duplicates with the use of the COUNTIF function. When duplicates values arise the first label in the list takes precedence.</p>
<p>In cell E2, use<br />
=INDEX($B$2:$B$9,MATCH(ROW()-ROW($E$1),$A$2:$A$9,0))<br />
This formula works in the same way as described in the blog but makes reference to the updated sort column.</p>
<p>In cell F2, use<br />
=INDEX($C$2:$C$9,MATCH(ROW()-ROW($F$1),$A$2:$A$9,0))</p>
<p>Each of these formulae should be copied down.</p>
<p>The result is slightly different in that (a) my sort function is based on first listed data (as opposed to introducing ROW() as a tolerance variable), and (b) returns actual results (rather than close estimates).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
