<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alfa BBT &#187; Excel</title>
	<atom:link href="http://blog.koenvermoesen.be/tag/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.koenvermoesen.be</link>
	<description>Allways looking for a better Blog Title...</description>
	<lastBuildDate>Tue, 13 Jul 2010 09:33:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.koenvermoesen.be' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/72db48a689a5327f7bba8c9193cac8af?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alfa BBT &#187; Excel</title>
		<link>http://blog.koenvermoesen.be</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.koenvermoesen.be/osd.xml" title="Alfa BBT" />
	<atom:link rel='hub' href='http://blog.koenvermoesen.be/?pushpress=hub'/>
		<item>
		<title>How to use a dynamic range for data validation lists from another sheet</title>
		<link>http://blog.koenvermoesen.be/2009/01/13/how-to-use-a-dynamic-range-for-data-validation-lists-from-another-sheet/</link>
		<comments>http://blog.koenvermoesen.be/2009/01/13/how-to-use-a-dynamic-range-for-data-validation-lists-from-another-sheet/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 16:30:21 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/2009/01/13/how-to-use-a-dynamic-range-for-data-validation-lists-from-another-sheet/</guid>
		<description><![CDATA[I have an Excel sheet I use for managing my to do lists. It consists of 2 sheets the first one contains the actual actions items the second one contains some lists to be used in drop down boxes in the previous sheet When setting up data validation you cannot simply refer to a range [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=215&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have an Excel sheet I use for managing my to do lists. It consists of 2 sheets</p>
<ul>
<li>the first one contains the actual actions items</li>
<li>the second one contains some lists to be used in drop down boxes in the previous sheet</li>
</ul>
<p><a href="http://k0v3.files.wordpress.com/2009/01/image.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="161" alt="image" src="http://k0v3.files.wordpress.com/2009/01/image-thumb.png?w=244&#038;h=161" width="244" border="0"></a> <a href="http://k0v3.files.wordpress.com/2009/01/image1.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="161" alt="image" src="http://k0v3.files.wordpress.com/2009/01/image-thumb1.png?w=244&#038;h=161" width="244" border="0"></a> </p>
<p>When setting up data validation you cannot simply refer to a range (e.g. &#8220;<code>List!$A$2:$A$4"</code>) on another sheet. You will get an error saying:<br />
<blockquote>
<p>You may not use references to other worksheets for data validation criteria.</p>
</blockquote>
<p>A workaround consists in defining a Name as MrExcel <a href="http://www.mrexcel.com/td0037.html" target="_blank">explains</a>. Go to the second sheet, highlight your list and give it a name with Formulas &gt; Define Name. Make sure you set the scope to workbook rather than sheet!</p>
<p><a href="http://k0v3.files.wordpress.com/2009/01/image5.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="171" alt="image" src="http://k0v3.files.wordpress.com/2009/01/image-thumb5.png?w=244&#038;h=171" width="244" border="0"></a> </p>
<p>Now you can refer to the name you just defined in the the Data Validation dialog.</p>
<p><a href="http://k0v3.files.wordpress.com/2009/01/image3.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="193" alt="image" src="http://k0v3.files.wordpress.com/2009/01/image-thumb3.png?w=244&#038;h=193" width="244" border="0"></a> </p>
<p>This solution works very fine for lists of a fixed length (e.g. priorities). Things get a little less pretty if your list doesn&#8217;t have a fixed length (e.g. the people possibly assigned to a particular task):</p>
<ul>
<li>you can change the definition of your name every time something gets added/removed to/from your list</li>
<li>you can set a range that is too big, resulting in a number of empty entries in the drop down</li>
<li>you can use a dynamic range. This is definitely the best solution.</li>
</ul>
<p><a href="http://k0v3.files.wordpress.com/2009/01/image6.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="143" alt="image" src="http://k0v3.files.wordpress.com/2009/01/image-thumb6.png?w=244&#038;h=143" width="244" border="0"></a> </p>
<p>The offset function used for easy cut&#8217;n'paste.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> =OFFSET(List!$B$1;1;0;COUNTA(List!$B:$B)-1;1)</pre>
</div>
</div>
<p>The drop down will now expand nicely  every time you add value to your list.</p>
<p>I learned about dynamic ranges in Excel <a href="http://peltiertech.com/Excel/Charts/DynamicColumnChart1.html" target="_blank">here</a> (Thx sak1n1 for sending me that link!) </p>
<br />Posted in Software Tagged: Excel <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=215&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2009/01/13/how-to-use-a-dynamic-range-for-data-validation-lists-from-another-sheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f646bcfc3f7534b20fa79e0347353eb?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">k0v3</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2009/01/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2009/01/image-thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2009/01/image-thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2009/01/image-thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2009/01/image-thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>