<?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: How to Round and Sort Data using Excel Formulas?</title>
	<atom:link href="http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/feed/" rel="self" type="application/rss+xml" />
	<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/</link>
	<description>Fresh Excel Tips, Tricks, Charts, Tutorials, Downloads, Dashboards and Visualization Showcase for your Inspiration and Productivity</description>
	<lastBuildDate>Fri, 19 Mar 2010 01:49:59 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jazz</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-95069</link>
		<dc:creator>Jazz</dc:creator>
		<pubDate>Tue, 23 Feb 2010 09:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-95069</guid>
		<description>hi
nice posts.
i want to rank/sort data array but some values are repeating e.g. 
a  7
b  4
c  7
d  4
would you please help me devising some formula that should return as under
a  7
c  7
b  4
d  4
Looking Forward</description>
		<content:encoded><![CDATA[<p>hi<br />
nice posts.<br />
i want to rank/sort data array but some values are repeating e.g.<br />
a  7<br />
b  4<br />
c  7<br />
d  4<br />
would you please help me devising some formula that should return as under<br />
a  7<br />
c  7<br />
b  4<br />
d  4<br />
Looking Forward</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-86943</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-86943</guid>
		<description>@Chandoo: Thanks again, it works perfectly now! Because I can&#039;t easily sort the rows given the type of worksheet this is, and there are almost 60 values per list being ranked, I think I&#039;m going to use conditional formatting to 1) highlight the bottom (max) ranks which include all of the references to the blank / text cells and 2) bold any other duplicate ranks which will indicate ties, which I&#039;m interested in. Think I have a template to use for future instances!</description>
		<content:encoded><![CDATA[<p>@Chandoo: Thanks again, it works perfectly now! Because I can&#8217;t easily sort the rows given the type of worksheet this is, and there are almost 60 values per list being ranked, I think I&#8217;m going to use conditional formatting to 1) highlight the bottom (max) ranks which include all of the references to the blank / text cells and 2) bold any other duplicate ranks which will indicate ties, which I&#8217;m interested in. Think I have a template to use for future instances!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandoo</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-86939</link>
		<dc:creator>Chandoo</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-86939</guid>
		<description>@Robert... no problems, I am glad to help.

It is rounding down the values to nearest integer, so 14.8 becomes 14 and 15.3 becomes 15. If you need to round to nearest integer, replace the INT()s with ROUND()s.</description>
		<content:encoded><![CDATA[<p>@Robert&#8230; no problems, I am glad to help.</p>
<p>It is rounding down the values to nearest integer, so 14.8 becomes 14 and 15.3 becomes 15. If you need to round to nearest integer, replace the INT()s with ROUND()s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-86938</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-86938</guid>
		<description>@Chandoo: This is terrific, thanks for providing that workaround (and so quickly - it works!). I just noticed one thing with this formula, both in the version you just provided and the original one I asked about. It seems to provide correct ranked ties in some situations (i.e. correctly associating two #1 rankings to the rounded values of 26.6 and 26.8) but not in others (i.e., when the rounded values were 14.8 and 15.3, it gave me rankings #7 and #8, when both rankings should have been #7 based on a rounded value of 15). So instead of rounding the values, the formulas seem to just &quot;lop off&quot; the decimal and the associated tenth value and rank based on the original integer, not the rounded value of the integer. Am I seeing this correctly?

Thanks again Chandoo, you have a great site!
Robert</description>
		<content:encoded><![CDATA[<p>@Chandoo: This is terrific, thanks for providing that workaround (and so quickly &#8211; it works!). I just noticed one thing with this formula, both in the version you just provided and the original one I asked about. It seems to provide correct ranked ties in some situations (i.e. correctly associating two #1 rankings to the rounded values of 26.6 and 26.8) but not in others (i.e., when the rounded values were 14.8 and 15.3, it gave me rankings #7 and #8, when both rankings should have been #7 based on a rounded value of 15). So instead of rounding the values, the formulas seem to just &#8220;lop off&#8221; the decimal and the associated tenth value and rank based on the original integer, not the rounded value of the integer. Am I seeing this correctly?</p>
<p>Thanks again Chandoo, you have a great site!<br />
Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandoo</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-86929</link>
		<dc:creator>Chandoo</dc:creator>
		<pubDate>Wed, 02 Dec 2009 18:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-86929</guid>
		<description>@Robert: You can wrap the sumproduct with error checking using ISNUMBER formula like this: =SUMPRODUCT(--(INT(IF(ISNUMBER(B2);B2;0))&lt;INT(IF(ISNUMBER($B$2:$B$9);($B$2:$B$9);0))))+1

but you have to CTRL+SHIFT+ENTER this formula as it uses arrays inside sumproduct... I have told the formula to use &quot;0&quot; when the value is TEXT. But if you prefer, you can also use a very high number (so that texts rank at top instead of bottom).

All the best</description>
		<content:encoded><![CDATA[<p>@Robert: You can wrap the sumproduct with error checking using ISNUMBER formula like this: =SUMPRODUCT(&#8211;(INT(IF(ISNUMBER(B2);B2;0))<INT(IF(ISNUMBER($B$2:$B$9);($B$2:$B$9);0))))+1</p>
<p>but you have to CTRL+SHIFT+ENTER this formula as it uses arrays inside sumproduct&#8230; I have told the formula to use &#8220;0&#8243; when the value is TEXT. But if you prefer, you can also use a very high number (so that texts rank at top instead of bottom).</p>
<p>All the best</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-86924</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 02 Dec 2009 18:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-86924</guid>
		<description>Thanks all for the great rounding / ranking function (=SUMPRODUCT(- – (INT(B2)&lt;INT($B$2:$B$34)))+1
), it was exactly what I needed for my project. Only one question - in my case, I have a large and messy delimited spreadsheet that results in text being interspersed amidst the range. So, if I use the range as is I get the #VALUE! result. I could fix the problem just be deleting the text but it is a very large spreadsheet with many instances of the text occuring. Is there a way I can easily &quot;adjust&quot; the formula to ignore the text values in the range?</description>
		<content:encoded><![CDATA[<p>Thanks all for the great rounding / ranking function (=SUMPRODUCT(- – (INT(B2)&lt;INT($B$2:$B$34)))+1<br />
), it was exactly what I needed for my project. Only one question &#8211; in my case, I have a large and messy delimited spreadsheet that results in text being interspersed amidst the range. So, if I use the range as is I get the #VALUE! result. I could fix the problem just be deleting the text but it is a very large spreadsheet with many instances of the text occuring. Is there a way I can easily &quot;adjust&quot; the formula to ignore the text values in the range?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandoo</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-69615</link>
		<dc:creator>Chandoo</dc:creator>
		<pubDate>Fri, 10 Jul 2009 12:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-69615</guid>
		<description>@Cheryl: Sorry for misunderstanding your requirement. I thought you want to rank the values (as in rearranging them in certain order). 

Let us know after trying the options suggested by Jeff and Elias.

@Jeff: that is a very good observation. After reading her mail, even I thought she wanted to rank the values. But then I later interpreted rank as common English use and sorted the values. 

Thanks for the formula. 

@Elias: That is very cool. Can you please explain how the formula works?</description>
		<content:encoded><![CDATA[<p>@Cheryl: Sorry for misunderstanding your requirement. I thought you want to rank the values (as in rearranging them in certain order). </p>
<p>Let us know after trying the options suggested by Jeff and Elias.</p>
<p>@Jeff: that is a very good observation. After reading her mail, even I thought she wanted to rank the values. But then I later interpreted rank as common English use and sorted the values. </p>
<p>Thanks for the formula. </p>
<p>@Elias: That is very cool. Can you please explain how the formula works?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheryl</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-69564</link>
		<dc:creator>Cheryl</dc:creator>
		<pubDate>Fri, 10 Jul 2009 02:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-69564</guid>
		<description>Thanks Jeff &amp; Elias! Yes I want ties. I have a row where I&#039;m indicating what the best score is and then on the row below inhave where my office ranked. Two different mgrs count differently and after 3 meetings I figured out the problem was one was quite literal and the other rounded. This was my compromise to them. I had tried many alternate formulas to try to round then rank.  Glad to hear I wasn&#039;t the only one not able to do that.  I&#039;ll test the sumproduct solution. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks Jeff &amp; Elias! Yes I want ties. I have a row where I&#8217;m indicating what the best score is and then on the row below inhave where my office ranked. Two different mgrs count differently and after 3 meetings I figured out the problem was one was quite literal and the other rounded. This was my compromise to them. I had tried many alternate formulas to try to round then rank.  Glad to hear I wasn&#8217;t the only one not able to do that.  I&#8217;ll test the sumproduct solution. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff weir</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-69534</link>
		<dc:creator>Jeff weir</dc:creator>
		<pubDate>Thu, 09 Jul 2009 19:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-69534</guid>
		<description>@Elias nice use of sumproduct. I&#039;d use your formula rather than my array version. 

Note:
I think wordpress has changed your two minus signs into a long dash. So the formula comes up wrong. It should read:
=SUMPRODUCT(-  - (INT(B2)&lt;INT($B$2:$B$34)))+1

The gap between the minus signs is just to make it clear there are 2 of them, and has no impact on performance</description>
		<content:encoded><![CDATA[<p>@Elias nice use of sumproduct. I&#8217;d use your formula rather than my array version. </p>
<p>Note:<br />
I think wordpress has changed your two minus signs into a long dash. So the formula comes up wrong. It should read:<br />
=SUMPRODUCT(-  &#8211; (INT(B2)&lt;INT($B$2:$B$34)))+1</p>
<p>The gap between the minus signs is just to make it clear there are 2 of them, and has no impact on performance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elias (sailepaty)</title>
		<link>http://chandoo.org/wp/2009/07/06/excel-formulas-round-sort/#comment-69498</link>
		<dc:creator>Elias (sailepaty)</dc:creator>
		<pubDate>Thu, 09 Jul 2009 13:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://chandoo.org/wp/?p=2205#comment-69498</guid>
		<description>@Cheryl - If Jeff&#039;s assumption on what you need is right, you can get it with this formula.

=SUMPRODUCT(--(INT(B2)&lt;INT($B$2:$B$34)))+1

Regards</description>
		<content:encoded><![CDATA[<p>@Cheryl &#8211; If Jeff&#8217;s assumption on what you need is right, you can get it with this formula.</p>
<p>=SUMPRODUCT(&#8211;(INT(B2)&lt;INT($B$2:$B$34)))+1</p>
<p>Regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>
