<?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>Shim&#039;s Big Blog of Learning</title>
	<atom:link href="http://shimrah.com/learning/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://shimrah.com/learning</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 06 Apr 2012 00:46:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Shim&#8217;s 2012 List o&#8217; Life</title>
		<link>http://shimrah.com/learning/?p=195</link>
		<comments>http://shimrah.com/learning/?p=195#comments</comments>
		<pubDate>Wed, 04 Jan 2012 03:01:17 +0000</pubDate>
		<dc:creator>shimrah</dc:creator>
				<category><![CDATA[List o' Life]]></category>

		<guid isPermaLink="false">http://shimrah.com/learning/?p=195</guid>
		<description><![CDATA[This is a test. This is only a test. Were is a real List &#8216;o Life, there would be&#8230; a list&#8230; or something.]]></description>
			<content:encoded><![CDATA[<p>This is a test.</p>
<p>This is only a test.</p>
<p>Were is a real List &#8216;o Life, there would be&#8230; a list&#8230; or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://shimrah.com/learning/?feed=rss2&#038;p=195</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array Functions in Excel</title>
		<link>http://shimrah.com/learning/?p=46</link>
		<comments>http://shimrah.com/learning/?p=46#comments</comments>
		<pubDate>Tue, 30 Mar 2010 04:15:45 +0000</pubDate>
		<dc:creator>shimrah</dc:creator>
				<category><![CDATA[useful tidbits]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://shimrah.com/learning/?p=46</guid>
		<description><![CDATA[Keeping an Excel journal of my running has forced me to learn a few new tricks in Excel. The latest of these tricks is the ability to create array functions. An array function in Excel is also knows as a Control-Shift-Enter (or CSE) function, because that&#8217;s what you have to hit (instead of just Enter) [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping an Excel journal of my running has forced me to learn a few new tricks in Excel. The latest of these tricks is the ability to create <strong>array functions</strong>.</p>
<p>An array function in Excel is also knows as a Control-Shift-Enter (or CSE) function, because that&#8217;s what you have to hit (instead of just Enter) once you&#8217;ve entered the function in order to tell Excel that what you&#8217;ve just entered is an array function.</p>
<p>So what is an array function? Well, according to Microsoft, &#8220;An <strong>array formula</strong> is a formula that can perform multiple calculations on one or more of the items in an array.&#8221; Nice. And an array, for those of you who have never heard the term, is simply a set of values. For example:</p>
<blockquote><p>{Monday, Tuesday, Wednesday, Thursday, Friday}</p></blockquote>
<p>is an array of days of the week.</p>
<p>But back to Excel. Here&#8217;s the conundrum I was dealing with. I have a spreadsheet with the following data:</p>
<table style="height: 144px;" width="96">
<tbody>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>Week</td>
<td>Distance</td>
</tr>
<tr>
<td>1</td>
<td>5.5</td>
</tr>
<tr>
<td>1</td>
<td>7.9</td>
</tr>
<tr>
<td>2</td>
<td>12.3</td>
</tr>
<tr>
<td>2</td>
<td>5.3</td>
</tr>
<tr>
<td>2</td>
<td>3.5</td>
</tr>
</tbody>
</table>
<p>Now, imagine I want to create a summary of my longest runs for each week. How is a man to manage this? Usually, finding the largest of a series of values uses the Max(RANGE) function; in Excel, this would give me the largest of a number of values. But how to select for the week? Something like CountIf would let me count up the number of instances for a given week number&#8230; and SumIf would let me sum them&#8230; but, sadly, MaxIf does not exist.</p>
<p>Looking for a MaxIf function, I stumbled across several references to array formulas. It turns out that, if I start with a column of week numbers, as in column D, below:</p>
<table style="height: 144px;" width="96">
<tbody>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
<td>E</td>
</tr>
<tr>
<td>Week</td>
<td>Distance</td>
<td></td>
<td>Week (Summary)</td>
<td>Longest Run</td>
</tr>
<tr>
<td>1</td>
<td>5.5</td>
<td></td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>7.9</td>
<td></td>
<td>2</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td>12.3</td>
<td></td>
<td>3</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td>5.3</td>
<td></td>
<td>4</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td>3.5</td>
<td></td>
<td>5</td>
<td></td>
</tr>
</tbody>
</table>
<p>I can then create another column to display the maximum distance I&#8217;d run that week with the following:</p>
<blockquote><p>={Max((A2:A65536=D2)*(B2:B65536))}</p></blockquote>
<p>(Being sure to enter this formula without the curly brackets above, but hitting Control-Shift-Enter when I&#8217;m done.)</p>
<p>There are a couple of things to note, here:</p>
<ol>
<li>To explain the logic above: the entire array, A2:A65536 (the maximum row in Excel) is checked one at a time; if the element in the array = D2 (the week of interest) a 1 (&#8220;true&#8221;) is returned, which is then multiplied by the Distance. Otherwise, a 0 (&#8220;false&#8221;) is returned. Then, this array of distances and zeros is returned, and the Max function returns the highest one.</li>
<li>Some may ask why I&#8217;ve decided to multiply these two arrays together instead of using an IF function, which should allow me a similar result. The reason is because it didn&#8217;t work, and I&#8217;m not sure why. Perhaps someone will enlighten me, some day.</li>
<li>The reason I use A2:A65536 instead of just A:A (to select the entire column) is that doing the latter gives me an error. Including the non-numeric label in the range, apparently, confuses the array interpreter. (Though in actuality, I defined the ranges as &#8220;Week&#8221; and &#8220;Distance&#8221;.)</li>
</ol>
<p>So that&#8217;s it &#8212; my adventure in array formulas. I hope this helps someone in need of a MaxIf function!</p>
]]></content:encoded>
			<wfw:commentRss>http://shimrah.com/learning/?feed=rss2&#038;p=46</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

