<?xml version="1.0" encoding="iso-8859-1"?>
<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>[Lowerbounds, Upperbounds] &#187; Excel</title>
	<atom:link href="http://magic.aladdin.cs.cmu.edu/category/software-tools/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://magic.aladdin.cs.cmu.edu</link>
	<description>Algorithms are everywhere.</description>
	<lastBuildDate>Tue, 23 Dec 2008 19:58:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why R1C1?</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/06/08/why-r1c1/</link>
		<comments>http://magic.aladdin.cs.cmu.edu/2006/06/08/why-r1c1/#comments</comments>
		<pubDate>Thu, 08 Jun 2006 23:26:19 +0000</pubDate>
		<dc:creator>Maverick Woo</dc:creator>
				<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=317</guid>
		<description><![CDATA[In this post I mentioned that I prefer the R1C1 style most of the time when I am using Excel. One of the reasons is formula visual consistency.
First a bit of notation. From now on I will refer to a cell as &#8220;&#124;ref&#124;&#8221; where &#8220;ref&#8221; is its location in the R1C1 style. For example, the [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://magic.aladdin.cs.cmu.edu/2006/05/15/excel-r1c1-reference-style/">this post</a> I mentioned that I prefer the R1C1 style most of the time when I am using Excel. One of the reasons is formula visual consistency.</p>
<p>First a bit of notation. From now on I will refer to a cell as &#8220;|ref|&#8221; where &#8220;ref&#8221; is its location in the R1C1 style. For example, the cell to the right of the home cell will be |R2C1|. A reference by itself will not be decorated. So you want to read |R2C1| as &#8220;the cell at R2C1&#8243;.</p>
<p>In Excel&#8217;s notation, a reference is absolute if the row and column are specified as fixed number. For example, R17C3 always refer to the cell at row 17 and column 3. Always.</p>
<p>But in many copy and paste operations, we usually want relative references. Suppose we start with an empty sheet and put the number 42 in |R1C1| and the number 7 in |R1C2|. </p>
<p>Then, in|R2C1|, type <code>=</code> and then press the up arrow. Excel will show <code>=R[-1]C</code> in the formula bar. This means &#8220;= the cell in the same column and one row above&#8221;. The number in the square bracket is the offset, and an offset of zero can be omitted.</p>
<p>Now copy |R2C1| to |R2C2| by copy and paste. Notice that the formula in |R2C2| is still <code>=R[-1]C</code>.</p>
<p>To toggle the formula view, press <code>Ctrl-`</code>. It&#8217;s a good shortcut to remember.</p>
<p>This is what you should see, roughly:</p>
<pre>
42	7
=R[-1]C	=R[-1]C
</pre>
<p>Now, in the A1 style:</p>
<pre>
42	7
=A1	=B1
</pre>
<p>It&#8217;s hard to settle on which one is more visually pleasant, but I think very few people will argue the A1 style is more visually consistent, even in a small example like ours.</p>
<p>P.S. While we are at the topic of relative vs. absolute references, another shortcut to remember is the function key <code>F4</code>. It cycles among the four possible combinations of relative and absolute references. Go to |R2C1|, press <code>F2</code> to modify the content, and press <code>F4</code> four times to cycle. </p>
<p>It&#8217;s a very handy shortcut if you use it well. For example, I confess that I have trouble counting rows and columns. So if I have to refer to a cell far away, I usually enter its absolute reference, say R42C18, and then press <code>F4</code> three times to convert it to the relative reference, which will be R[40]C[17] if the current cell is |R2C1|.</p>
]]></content:encoded>
			<wfw:commentRss>http://magic.aladdin.cs.cmu.edu/2006/06/08/why-r1c1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel R1C1 Reference Style</title>
		<link>http://magic.aladdin.cs.cmu.edu/2006/05/15/excel-r1c1-reference-style/</link>
		<comments>http://magic.aladdin.cs.cmu.edu/2006/05/15/excel-r1c1-reference-style/#comments</comments>
		<pubDate>Mon, 15 May 2006 17:18:03 +0000</pubDate>
		<dc:creator>Maverick Woo</dc:creator>
				<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://magic.aladdin.cs.cmu.edu/?p=313</guid>
		<description><![CDATA[Recently I have started a research project that requires quite a bit of Excel. Now if you don&#8217;t use Excel for research, maybe you still use it for keeping class grades once in a while?  
The first thing I do on every Excel installation is to change it to the R1C1 style. In Excel, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have started a research project that requires quite a bit of Excel. Now if you don&#8217;t use Excel for research, maybe you still use it for keeping class grades once in a while? <img src='http://magic.aladdin.cs.cmu.edu/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>The first thing I do on every Excel installation is to change it to the R1C1 style. In Excel, each cell can be referenced in two styles: A1 and R1C1. (See <a href="http://www.dssresources.com/history/sshistory.html">a bit of history here</a>.) </p>
<p>The former is the default (as of Version 2003). Each cell is referenced by its column name and then row number. So the first cell is called A1.</p>
<p>The latter is my preferred style. Each cell is referenced by its row number and column number. So the first cell is called R1C1.</p>
<p>Now some people may think that &#8220;E3&#8243; is more intuitive than &#8220;R3C5&#8243;, and I can probably agree with them when the spreadsheet is small. But when the spreadsheet gets big and spans a couple hundred columns, I cannot contemplate seeing &#8220;BK439&#8243;&#8230;</p>
<p>To switch to the R1C1 style, go to tools->Options->General->R1C1 Reference Style.</p>
<p>The two styles are equivalent in power (if you use them right), but I will show you later why R1C1 has an advantage when it comes to formula editing.</p>
]]></content:encoded>
			<wfw:commentRss>http://magic.aladdin.cs.cmu.edu/2006/05/15/excel-r1c1-reference-style/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
