<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx</link><description>Today’s author is Bob Umlas, an Excel MVP since 1994, and author of This isn’t Excel, it’s Magic , a book that is filled with tips and tricks for getting the most out of Excel. This tip is a formula which enables you to access a list of values interspersed</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx#9810197</link><pubDate>Wed, 01 Jul 2009 03:46:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9810197</guid><dc:creator>leniel</dc:creator><description>&lt;p&gt;Hi Bob,&lt;/p&gt;
&lt;p&gt;Really good post! :)&lt;/p&gt;
&lt;p&gt;One thing that I think should be emphasized with a bold font is this phrase:&lt;/p&gt;
&lt;p&gt;It’s an array formula which means that you must press Ctrl+Shift+Enter after entering the formula instead of just Enter.&lt;/p&gt;
&lt;p&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Leniel Macaferi&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://leniel.net"&gt;http://leniel.net&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx#9810554</link><pubDate>Wed, 01 Jul 2009 12:17:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9810554</guid><dc:creator>Lionel Cazarre</dc:creator><description>&lt;p&gt;Shouldn't the formula be:&lt;/p&gt;
&lt;p&gt;{=INDEX($A$1:$A$14,SMALL(IF($A$1:$A$14&amp;lt;&amp;gt;0,ROW($1:$14),&amp;quot;&amp;quot;),ROW()))}&lt;/p&gt;
&lt;p&gt;The formula did not work with ROW(A1). But it returns the correct result with ROW().&lt;/p&gt;
</description></item><item><title>re: Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx#9815710</link><pubDate>Fri, 03 Jul 2009 06:04:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9815710</guid><dc:creator>Harlan Grove</dc:creator><description>&lt;p&gt;Several improvements.&lt;/p&gt;
&lt;p&gt;First, if you want only POSITIVE numbers, then make the criterion &amp;gt;0, NOT &amp;lt;&amp;gt;0. If either positive or negative numbers are acceptable, then zero had also better be acceptable. IOW, it's almost always a domain error to exclude only zero rather than exclude nonpositives or nonnegatives.&lt;/p&gt;
&lt;p&gt;Second, why not return &amp;quot;&amp;quot; rather than an error and use formatting to hide the errors? If you need to perform subsequent calculations on these INDEX formula results, you'd need to use IF calls and array formulas to skip error values. Much better in the long run to return &amp;quot;&amp;quot; in the first place.&lt;/p&gt;
&lt;p&gt;Third, using ROW(A1) works in cell E1 (yes it does, Lionel Cazarre), but it becomes awkward when you want the topmost filtered result in, say, G7 but you don't want problems if rows are inserted or deleted. Better to use a literal 1 in cell G7 and a COUNT(G$7:G7)+1 in G8, then fill G8 down as needed.&lt;/p&gt;
&lt;p&gt;Fourth, your formula would return &amp;quot;&amp;quot; for cells containing zero-length strings and &amp;quot;0&amp;quot; for cells evaluating to the text string &amp;quot;0&amp;quot;. Unlikely users who'd find this useful would want that functionality. More likely they'd want to filter out just the positive numbers.&lt;/p&gt;
&lt;p&gt;So if the topmost result should be in cell G7, better to use&lt;/p&gt;
&lt;p&gt;G7:&lt;/p&gt;
&lt;p&gt;=IF(COUNTIF(A1:A14,&amp;quot;&amp;gt;0&amp;quot;),INDEX(A1:A14,&lt;/p&gt;
&lt;p&gt;MATCH(1,ISNUMBER(A1:A14)*(A1:A14&amp;gt;0),0)),&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;G8:&lt;/p&gt;
&lt;p&gt;=IF(COUNT(G$7:G7)&amp;lt;COUNTIF(A$1:A$14,&amp;quot;&amp;gt;0&amp;quot;),INDEX(A$1:A$14,&lt;/p&gt;
&lt;p&gt;SMALL(IF(ISNUMBER(A$1:A$14)*A$1:A$14&amp;gt;0),ROW(A$1:A$14)),&lt;/p&gt;
&lt;p&gt;COUNT(G$7:G7)+1)),&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Fill G8 down as far as needed.&lt;/p&gt;</description></item><item><title>re: Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx#9819459</link><pubDate>Mon, 06 Jul 2009 13:53:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9819459</guid><dc:creator>ianB</dc:creator><description>&lt;p&gt;Or even simpler:&lt;/p&gt;
&lt;p&gt;To have the list in accending sequence&lt;/p&gt;
&lt;p&gt;SMALL($A$1:$A$14,ROW())&lt;/p&gt;
&lt;p&gt;Or descending&lt;/p&gt;
&lt;p&gt;=LARGE($A$1:$A$14,ROW())&lt;/p&gt;
</description></item><item><title>re: Formula to Access a List of Values Interspersed with Zeros or Blanks</title><link>http://blogs.msdn.com/excel/archive/2009/06/30/formula-to-access-a-list-of-values-interspersed-with-zeros-or-blanks.aspx#9825632</link><pubDate>Thu, 09 Jul 2009 07:36:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9825632</guid><dc:creator>Harlan Grove</dc:creator><description>&lt;p&gt;ianB, the goal is to filter the list in its actual order, not sorted in either ascending or descending order.&lt;/p&gt;
</description></item></channel></rss>