<?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>Fri, 27 Jan 2012 16:45:13 +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://1.gravatar.com/blavatar/72db48a689a5327f7bba8c9193cac8af?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-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>Conditionally formatting a row based on the value in a single cell</title>
		<link>http://blog.koenvermoesen.be/2011/11/30/conditionally-formatting-a-row-based-on-the-value-in-a-single-cell/</link>
		<comments>http://blog.koenvermoesen.be/2011/11/30/conditionally-formatting-a-row-based-on-the-value-in-a-single-cell/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:52:24 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://blog.koenvermoesen.be/?p=1379</guid>
		<description><![CDATA[The title of this post is probably longer than the post itself ;-) I&#8217;ve already mentioned that I use excel to manage task lists from time to time. Sometimes reality catches up and a task is invalid before you get to it. You could obviously remove the task from the list, but I prefer to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&amp;blog=3561314&amp;post=1379&amp;subd=k0v3&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title of this post is probably longer than the post itself ;-)</p>
<p>I&#8217;ve already <a title="How to use a dynamic range for data validation lists from another sheet" href="http://blog.koenvermoesen.be/2009/01/13/how-to-use-a-dynamic-range-for-data-validation-lists-from-another-sheet/">mentioned</a> that I use excel to manage task lists from time to time. Sometimes reality catches up and a task is invalid before you get to it. You could obviously remove the task from the list, but I prefer to keep a reference of the task and why it became invalid. Instead I set the value of my status column to &#8220;Cancelled&#8221;. (Other possible values are: &#8220;Not started&#8221;, &#8220;Ongoing&#8221;, and &#8220;Done&#8221;.)</p>
<p>Now in case a task gets cancelled I want to apply a strikeout effect to the entire row, not just that one cell. This is not to difficult to establish, but I always forget about one of the details and need to look up an old copy. Hence I&#8217;m writing this post &#8220;for future reference&#8221;, hopefully somebody else out there finds it useful.</p>
<p>Have a task list at hand and select the rows in it:</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130162347.png"><img class="aligncenter size-medium wp-image-1380" title="Image 20111130162347" src="http://k0v3.files.wordpress.com/2011/11/image-20111130162347.png?w=300&#038;h=135" alt="" width="300" height="135" /></a></p>
<p>Office 2010 Ribbon &gt; Home tab &gt; Conditional formatting &gt; new rule</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130163026.png"><img class="aligncenter size-medium wp-image-1381" title="Image 20111130163026" src="http://k0v3.files.wordpress.com/2011/11/image-20111130163026.png?w=300&#038;h=135" alt="" width="300" height="135" /></a></p>
<p>Select &#8220;Use a formula to determine which cells to format&#8221;</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130163140.png"><img class="aligncenter size-medium wp-image-1382" title="Image 20111130163140" src="http://k0v3.files.wordpress.com/2011/11/image-20111130163140.png?w=300&#038;h=289" alt="" width="300" height="289" /></a></p>
<p>The formula syntax needs to be along the lines of:</p>
<p><pre class="brush: plain;">=$e2=&quot;Cancelled&quot;</pre></p>
<p>Click the &#8220;format&#8221; button and check the &#8220;strikeout&#8221; effect:</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130170136.png"><img class="aligncenter size-medium wp-image-1391" title="Image 20111130170136" src="http://k0v3.files.wordpress.com/2011/11/image-20111130170136.png?w=300&#038;h=288" alt="" width="300" height="288" /></a></p>
<p>The end result:</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130164026.png"><img class="aligncenter size-medium wp-image-1384" title="Image 20111130164026" src="http://k0v3.files.wordpress.com/2011/11/image-20111130164026.png?w=300&#038;h=135" alt="" width="300" height="135" /></a></p>
<p>Now go ahead and try to make a rule that sets a green background for tasks where the status is set to done:</p>
<p><a href="http://k0v3.files.wordpress.com/2011/11/image-20111130164345.png"><img class="aligncenter size-medium wp-image-1385" title="Image 20111130164345" src="http://k0v3.files.wordpress.com/2011/11/image-20111130164345.png?w=300&#038;h=135" alt="" width="300" height="135" /></a></p>
<p>Things that usually go wrong (it&#8217;s in the details):</p>
<ul>
<li>Typing the wrong cell number; you need the row number of the first row in the area you selected</li>
<li>Forgetting about one of the equal sings or the quotes</li>
<li>Not specifying the formatting to apply</li>
<li>Incorrectly selecting the area the formatting needs to apply to</li>
</ul>
<br />Filed under: <a href='http://blog.koenvermoesen.be/category/tech/office/'>Office</a> Tagged: <a href='http://blog.koenvermoesen.be/tag/excel/'>Excel</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/1379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/1379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/1379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&amp;blog=3561314&amp;post=1379&amp;subd=k0v3&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2011/11/30/conditionally-formatting-a-row-based-on-the-value-in-a-single-cell/feed/</wfw:commentRss>
		<slash:comments>0</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/2011/11/image-20111130162347.png?w=300" medium="image">
			<media:title type="html">Image 20111130162347</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2011/11/image-20111130163026.png?w=300" medium="image">
			<media:title type="html">Image 20111130163026</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2011/11/image-20111130163140.png?w=300" medium="image">
			<media:title type="html">Image 20111130163140</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2011/11/image-20111130170136.png?w=300" medium="image">
			<media:title type="html">Image 20111130170136</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2011/11/image-20111130164026.png?w=300" medium="image">
			<media:title type="html">Image 20111130164026</media:title>
		</media:content>

		<media:content url="http://k0v3.files.wordpress.com/2011/11/image-20111130164345.png?w=300" medium="image">
			<media:title type="html">Image 20111130164345</media:title>
		</media:content>
	</item>
		<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&amp;blog=3561314&amp;post=215&amp;subd=k0v3&amp;ref=&amp;feed=1" width="1" height="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/gofacebook/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/k0v3.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/k0v3.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=3561314&amp;post=215&amp;subd=k0v3&amp;ref=&amp;feed=1" width="1" height="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>2</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>
