<?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: VLOOKUP</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-67372</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 28 Oct 2011 16:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-67372</guid>
		<description>&lt;p&gt;Good one Justin.  Sally, if you&#039;re using 2003 or earlier, use&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;=IF(ISNA(VLOOKUP(&quot;XYZ&quot;, MyTable, 2, FALSE)),&quot;&quot;,VLOOKUP(&quot;XYZ&quot;, MyTable, 2, FALSE))&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Good one Justin.  Sally, if you&#8217;re using 2003 or earlier, use</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">=IF(ISNA(VLOOKUP(&#8220;XYZ&#8221;, MyTable, 2, FALSE)),&#8221;",VLOOKUP(&#8220;XYZ&#8221;, MyTable, 2, FALSE))</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-67370</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 28 Oct 2011 14:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-67370</guid>
		<description>&lt;p&gt;Sally, are you using a version of Excel prior to 2007? Sounds to me like IFERROR isn&#039;t being recognised otherwise you wouldn&#039;t see the error as the IFERROR would pick it up. Wow that sounded complicated!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sally, are you using a version of Excel prior to 2007? Sounds to me like IFERROR isn&#8217;t being recognised otherwise you wouldn&#8217;t see the error as the IFERROR would pick it up. Wow that sounded complicated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sally</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-67353</link>
		<dc:creator>sally</dc:creator>
		<pubDate>Thu, 27 Oct 2011 20:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-67353</guid>
		<description>&lt;p&gt;I am trying to write what i think is a simple vlookup IFERROR(VLOOKUP(&quot;XYZ&quot;, MyTable, 2, FALSE),&quot;&quot;) and it returns #NAME? error.  Not all the values the formula is looking up is in the table, is there a better way to write this formula?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am trying to write what i think is a simple vlookup IFERROR(VLOOKUP(&#8220;XYZ&#8221;, MyTable, 2, FALSE),&#8221;") and it returns #NAME? error.  Not all the values the formula is looking up is in the table, is there a better way to write this formula?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawood Mamedoff</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-40197</link>
		<dc:creator>Dawood Mamedoff</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-40197</guid>
		<description>&lt;p&gt;Yes, the last argument is not mandatory, however I always tend to set it as &quot;false&quot;. It&#039;s easy then to get rid of those #N/A! simply by finding them and replacing with blank field.&lt;/p&gt;
&lt;p&gt;This tutorial also helped me much to understand how vlookup works:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.myhowtoos.com/en/excel-howtoos/84-how-to-match-values-in-excel-using-vlookup&quot; rel=&quot;nofollow&quot;&gt;http://www.myhowtoos.com/en/excel-howtoos/84-how-to-match-values-in-excel-using-vlookup&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, the last argument is not mandatory, however I always tend to set it as &#8220;false&#8221;. It&#8217;s easy then to get rid of those #N/A! simply by finding them and replacing with blank field.</p>
<p>This tutorial also helped me much to understand how vlookup works:</p>
<p><a href="http://www.myhowtoos.com/en/excel-howtoos/84-how-to-match-values-in-excel-using-vlookup" rel="nofollow">http://www.myhowtoos.com/en/excel-howtoos/84-how-to-match-values-in-excel-using-vlookup</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Williams</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39128</link>
		<dc:creator>Charles Williams</dc:creator>
		<pubDate>Fri, 24 Apr 2009 12:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39128</guid>
		<description>&lt;p&gt;Zach,&lt;/p&gt;
&lt;p&gt;If there is a real-world possibility of looking for a value smaller than the smallest value in the list and you want to trap the #N/A for that special case then you are correct: either add an error trap or a dummy very small entry in the list.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Zach,</p>
<p>If there is a real-world possibility of looking for a value smaller than the smallest value in the list and you want to trap the #N/A for that special case then you are correct: either add an error trap or a dummy very small entry in the list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zach</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39116</link>
		<dc:creator>zach</dc:creator>
		<pubDate>Thu, 23 Apr 2009 19:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39116</guid>
		<description>&lt;p&gt;Charles, &lt;/p&gt;
&lt;p&gt;Nice.  Wish I would&#039;ve thought of that before resorting to the INDEX/MATCH pair.  But you would still need an error trap for the #N/A that you get if you are looking for a value smaller than the smallest value in your sorted list.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Charles, </p>
<p>Nice.  Wish I would&#8217;ve thought of that before resorting to the INDEX/MATCH pair.  But you would still need an error trap for the #N/A that you get if you are looking for a value smaller than the smallest value in your sorted list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacroMan</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39114</link>
		<dc:creator>MacroMan</dc:creator>
		<pubDate>Thu, 23 Apr 2009 15:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39114</guid>
		<description>&lt;p&gt;Great tip, thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great tip, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39113</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Thu, 23 Apr 2009 15:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39113</guid>
		<description>&lt;p&gt;Yep, it does need the extra INDEX of course.&lt;/p&gt;
&lt;p&gt;I submitted the reply too fast. Well spotted guys.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yep, it does need the extra INDEX of course.</p>
<p>I submitted the reply too fast. Well spotted guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Williams</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39087</link>
		<dc:creator>Charles Williams</dc:creator>
		<pubDate>Wed, 22 Apr 2009 08:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39087</guid>
		<description>&lt;p&gt;Jan Karel&#039;s idea is correct, but it does need the additional INDEX.&lt;/p&gt;
&lt;p&gt;For Dick&#039;s original question the fastest way to do VLOOKUP on SORTED data when there may not be an exact match is:&lt;/p&gt;
&lt;p&gt;=IF(VLOOKUP(&quot;XYZ&quot;, MyTable, 1, TRUE)=&quot;XYZ&quot;,VLOOKUP(&quot;XYZ&quot;, MyTable, 2, TRUE),&quot;&quot;)&lt;/p&gt;
&lt;p&gt;The first approximate VLOOKUP tests to see if the lookup value exists in the table by checking if the value returned from the lookup column is the same as the value you are looking for. If it is then it exists so you can do the VLOOKUP again to return the value from the answer column, but otherwise return &quot;&quot;.&lt;/p&gt;
&lt;p&gt;You can use the same idea with INDEX and MATCH.&lt;/p&gt;
&lt;p&gt;But the data MUST be sorted.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jan Karel&#8217;s idea is correct, but it does need the additional INDEX.</p>
<p>For Dick&#8217;s original question the fastest way to do VLOOKUP on SORTED data when there may not be an exact match is:</p>
<p>=IF(VLOOKUP(&#8220;XYZ&#8221;, MyTable, 1, TRUE)=&#8221;XYZ&#8221;,VLOOKUP(&#8220;XYZ&#8221;, MyTable, 2, TRUE),&#8221;")</p>
<p>The first approximate VLOOKUP tests to see if the lookup value exists in the table by checking if the value returned from the lookup column is the same as the value you are looking for. If it is then it exists so you can do the VLOOKUP again to return the value from the answer column, but otherwise return &#8220;&#8221;.</p>
<p>You can use the same idea with INDEX and MATCH.</p>
<p>But the data MUST be sorted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fzz</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/20/vlookup/#comment-39069</link>
		<dc:creator>fzz</dc:creator>
		<pubDate>Tue, 21 Apr 2009 22:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2358#comment-39069</guid>
		<description>&lt;p&gt;zach, the other problem Dick mentioned was the limitation that 2007&#039;s IFERROR traps &lt;b&gt;ALL&lt;/b&gt; errors, not just #N/A. If you try to use IFERROR on MATCH&#039;s result, what&#039;s the result when MATCH returns #N/A? If you use an augmented table, as I suggested before, you could use a 2007 formula like&lt;/p&gt;
&lt;p&gt;=INDEX(MyTable,IFERROR(MATCH(&quot;XYZ&quot;,INDEX(MyTable,0,1),0),1),2)&lt;/p&gt;
&lt;p&gt;The problem with MATCH or VLOOKUP calls against sorted tables is that it&#039;s still possible for MATCH or VLOOKUP to return errors when the lookup value is less than the value in the first column of the first row of the table. IOW, bullet proofing requires&lt;/p&gt;
&lt;p&gt;=IF(x&lt;INDEX(MyTable,1,1),&quot;&quot;,&lt;br&gt;
IF(INDEX(MyTable,MATCH(x,INDEX(MyTable,0,1)),1)x,&quot;&quot;,&lt;br&gt;
INDEX(MyTable,MATCH(x,INDEX(MyTable,0,1)),1)))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>zach, the other problem Dick mentioned was the limitation that 2007&#8242;s IFERROR traps <b>ALL</b> errors, not just #N/A. If you try to use IFERROR on MATCH&#8217;s result, what&#8217;s the result when MATCH returns #N/A? If you use an augmented table, as I suggested before, you could use a 2007 formula like</p>
<p>=INDEX(MyTable,IFERROR(MATCH(&#8220;XYZ&#8221;,INDEX(MyTable,0,1),0),1),2)</p>
<p>The problem with MATCH or VLOOKUP calls against sorted tables is that it&#8217;s still possible for MATCH or VLOOKUP to return errors when the lookup value is less than the value in the first column of the first row of the table. IOW, bullet proofing requires</p>
<p>=IF(x&lt;INDEX(MyTable,1,1),&#8221;",<br />
IF(INDEX(MyTable,MATCH(x,INDEX(MyTable,0,1)),1)x,&#8221;",<br />
INDEX(MyTable,MATCH(x,INDEX(MyTable,0,1)),1)))</p>
]]></content:encoded>
	</item>
</channel>
</rss>

