<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bacon Bits: &#187; Named Range</title>
	<atom:link href="http://datapigtechnologies.com/blog/index.php/tag/named-range/feed/" rel="self" type="application/rss+xml" />
	<link>http://datapigtechnologies.com/blog</link>
	<description>A DataPig Technologies Blog</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:20:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Protecting VLOOKUPS from Expanding Data</title>
		<link>http://datapigtechnologies.com/blog/index.php/protecting-vlookups-from-expanding-data/</link>
		<comments>http://datapigtechnologies.com/blog/index.php/protecting-vlookups-from-expanding-data/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 12:27:48 +0000</pubDate>
		<dc:creator>datapig</dc:creator>
				<category><![CDATA[Excel Formulas]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Formulas]]></category>
		<category><![CDATA[Named Range]]></category>
		<category><![CDATA[Named Ranges]]></category>

		<guid isPermaLink="false">http://datapigtechnologies.com/blog/?p=1219</guid>
		<description><![CDATA[I'm fresh back from the Excel Power Analyst Boot Camp we had here in Dallas. If you were there, thanks for all the great tips &#8211; I had lots of fun. If you weren't there, you missed quite the event. The Spice Girls showed up to talk about their new movie: Spice Racks. It was [...]]]></description>
			<content:encoded><![CDATA[<p>I'm fresh back from the Excel Power Analyst Boot Camp we had here in Dallas. If you were there, thanks for all the great tips &#8211; I had lots of fun. If you weren't there, you missed quite the event. The Spice Girls showed up to talk about their new movie: Spice Racks. It was awesome. Lesson learned eh? Next time you'll join us.</p>
<p> </p>
<p>One of the topics that kept surfacing at last week's event was the use of Tables/Lists. These are auto-expanding ranges that allow anything built on top of them to keep up with your data changes (similar to the dynamic named ranges you can create by using OFFSET and COUNTA, but much simpler). Today, I'll show you how to employ Tables/Lists to protect your VLOOKUPS from breaking when you add data to your lookup range.</p>
<p> <span id="more-1219"></span></p>
<p><span style="font-size:14pt"><strong>The Problem:<br />
</strong></span></p>
<p>VLOOKUPs are typically tied to a static table arrays (in this example, the table array is A6:B10). By static, I mean that the arrays to which VLOOKUPs are tied usually don't auto-expand when data is added.</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/11/110409_1227_ProtectingV1.png" alt="" /></p>
<p> </p>
<p>Case in point &#8211; Although I added a new row, the VLOOKUP doesn't automatically recognize the range has changed. So it just fails.</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/11/110409_1227_ProtectingV2.png" alt="" /></p>
<p> </p>
<p> </p>
<p><span style="font-size:14pt"><strong>The Solution:<br />
</strong></span></p>
<p>The solution is to turn your table array into a 2007 'Table' or a 2003 'List'.  Again, Tables/Lists allow you to create a defined range that will automatically shrink or expand with the data.  This enables any component, chart, pivottable or formula tied to that range to keep up with changes in your data.</p>
<p>In Excel 2007, highlight your range and click Table on the Insert tab.</p>
<p>In Excel 2003, highlight your range and choose Data -&gt;List-&gt;Create List.</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/11/110409_1227_ProtectingV3.png" alt="" /></p>
<p>It's the same functionality between the two versions, only different names. I'm not sure why Microsoft changed the name from List to Table. It may have something to do with SharePoint and the association of the word 'list' to SharePoint Lists.</p>
<p> </p>
<p>Once your table array has been converted to a Table/List, then you can rebuild your VLOOKUP formula to point to the table/list. Notice in the formula shown below, the table array argument now points to Table2. This is a Excel 2007 thing (Excel created an internal named range). In Excel 2003, pointing your formula to a List won't show you a named range &#8211; it shows you a normal range.</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/11/110409_1227_ProtectingV4.png" alt="" /></p>
<p> </p>
<p>Now, my VLOOKUP keeps up with any new rows I add.</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/11/110409_1227_ProtectingV5.png" alt="" /></p>
<p> </p>
<p>Obviously, this technique is really only valuable where you have VLOOKUPS that are searching highly volatile table arrays. For example, I maintain dashboard reports that contain VLOOKUPS tied to ranges that change in size from one reporting month to another. Instead of constantly re-jiggering my VLOOKUP formulas, I've tied them all to 'Tables'. Now I can unbutton the top button on my pants and sleep soundly….at my desk.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://datapigtechnologies.com/blog/index.php/using-access-to-combine-multiple-excel-files-method-2/" rel="bookmark" class="crp_title">Using Access to Combine Multiple Excel Files: Method 2</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/sending-variable-access-data-to-an-excel-range/" rel="bookmark" class="crp_title">Sending Variable Access Data To An Excel Range</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/handling-different-data-types-with-one-chart/" rel="bookmark" class="crp_title">Handling Different Data Types with One Chart</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/copying-vlookups-across-multiple-columns/" rel="bookmark" class="crp_title">Copying VLOOKUPs Across Multiple Columns</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/fun-with-custom-lists/" rel="bookmark" class="crp_title">Fun with Custom Lists</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://datapigtechnologies.com/blog/index.php/protecting-vlookups-from-expanding-data/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using Arrows to Edit a Named Range</title>
		<link>http://datapigtechnologies.com/blog/index.php/using-arrows-to-edit-a-named-range/</link>
		<comments>http://datapigtechnologies.com/blog/index.php/using-arrows-to-edit-a-named-range/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 06:57:06 +0000</pubDate>
		<dc:creator>datapig</dc:creator>
				<category><![CDATA[Excel Tips and Tricks]]></category>
		<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Formulas]]></category>
		<category><![CDATA[Named Range]]></category>
		<category><![CDATA[Named Ranges]]></category>

		<guid isPermaLink="false">http://datapigtechnologies.com/blog/?p=29</guid>
		<description><![CDATA[So there you are, editing a named range in like the Excel superstar you are, when you make the mistake of hitting the left arrow key to go back a few characters in your formula. Excel instantly references the cell to the left. Argh!


Well this can be avoided by simply pressing F2 while you're in [...]]]></description>
			<content:encoded><![CDATA[<p>So there you are, editing a named range in like the Excel superstar you are, when you make the mistake of hitting the left arrow key to go back a few characters in your formula. Excel instantly references the cell to the left. Argh!</p>
<p><img src="http://datapigtechnologies.com/blog/wp-content/uploads/2009/06/061009-0657-usingarrows1.png" alt="" /></p>
<p><span id="more-29"></span></p>
<p>Well this can be avoided by simply pressing <strong><span style="color: #800000;">F2 </span></strong>while you're in the 'Refers to' field. This will allow you to safely move back and forth using arrow keys.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://datapigtechnologies.com/blog/index.php/highlight-named-ranges-part-2/" rel="bookmark" class="crp_title">Highlight Named Ranges Part 2</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/vbe-tips-i-wish-i-knew-5-years-ago/" rel="bookmark" class="crp_title">VBE Tips I Wish I Knew 5 Years Ago</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/highlight-all-named-ranges-part-1/" rel="bookmark" class="crp_title">Highlight All Named Ranges Part 1</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/leveraging-the-edit-directly-in-cell-option/" rel="bookmark" class="crp_title">Leveraging the Edit Directly in Cell Option</a></li><li><a href="http://datapigtechnologies.com/blog/index.php/handling-different-data-types-with-one-chart/" rel="bookmark" class="crp_title">Handling Different Data Types with One Chart</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://datapigtechnologies.com/blog/index.php/using-arrows-to-edit-a-named-range/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
