<?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>Geekgirl&#039;s Plain English Computing &#187; Excel</title>
	<atom:link href="http://www.geekgirls.com/category/office/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekgirls.com</link>
	<description>Tutorials and commentary on all things Windows &#38; web, with a few tangential offerings.</description>
	<lastBuildDate>Mon, 31 Oct 2011 12:17:56 +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>Spreadsheeting II: Good Spreadsheet Design</title>
		<link>http://www.geekgirls.com/2010/04/good-spreadsheet-design/</link>
		<comments>http://www.geekgirls.com/2010/04/good-spreadsheet-design/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 03:43:31 +0000</pubDate>
		<dc:creator>rosevines</dc:creator>
				<category><![CDATA[Basic Computing]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office Apps]]></category>
		<category><![CDATA[spreadsheets]]></category>

		<guid isPermaLink="false">http://www.geekgirls.com/?p=618</guid>
		<description><![CDATA[What makes a good spreadsheet? Two things: good design and good data.

This may sound obvious, but it's all too easy to dive into creating a spreadsheet without putting much thought into its design. And a poorly designed spreadsheet is bound to make it harder to enter valid data. Without valid data, your spreadsheet will never yield useful results.

Good design doesn't mean making your spreadsheet look good – although spreadsheet appearance can definitely aid in usability and readability. Good spreadsheet design consists of organising your data logically and ensuring that all your formulae are correct.]]></description>
			<content:encoded><![CDATA[<p>What makes a good spreadsheet? Two things: good  design and good   data.</p>
<p>This may sound obvious, but it&#8217;s all too easy to dive into creating  a   spreadsheet without putting much thought into its design. And a poorly   designed spreadsheet is bound to make it harder to enter valid data.  Without   valid data, your spreadsheet will never yield useful results.</p>
<p>Good design doesn&#8217;t mean making your spreadsheet look good –  although   spreadsheet appearance can definitely aid in usability and  readability. Good   spreadsheet design consists of organising your data logically and  ensuring   that all your formulae are correct.</p>
<h3>A simple spreadsheet  design</h3>
<div id="attachment_622" class="wp-caption alignright" style="width: 310px"><a href="http://www.geekgirls.com/wp-content/uploads/ss011.jpg"><img class="size-medium wp-image-622" title="Simple share tracker" src="http://www.geekgirls.com/wp-content/uploads/ss011-300x192.jpg" alt="Simple share tracker" width="300" height="192" /></a><p class="wp-caption-text">Spreadsheet cells can contain raw data (numbers, dates, text labels and so on) or formulae. In this spreadsheet, the value in column D (Current Value) is the result of a formula: multiplying Current Shareholding by Current Share Price. The highlighted cell (D4) thus contains the formula =(B4*C4) which you can see displayed in the Data Entry box; while the result of the calculation is displayed in the cell D4 itself.</p></div>
<p>Let&#8217;s take an ultra simple example: a share listing which displays  the   stock names, stockholding, and current share price of the stocks you  own. Our   spreadsheet will consist of four columns labelled   Company, Current Shareholding, Current Share Price and Current Value.  We&#8217;ll   enter the details for each company in a separate row under these  columns.</p>
<p>Thus, if we&#8217;re fortunate enough to have shares in Microsoft, IBM, Apple, Google and Amazon, our  spreadsheet   will have column labels in cells A1 to D1 (remember cells are <em>addressed</em> by their column and row coordinates), thus:</p>
<p>A1: Company</p>
<p>B1: Current Shareholding</p>
<p>C1: Current Share Price</p>
<p>D1: Current Value</p>
<p>The details for Microsoft will be entered in the second row, that  is, cells   A2 to D2; for IBM in cells A3 to D3; for Apple in cells A4 to D4;  and so   on.</p>
<p>When you&#8217;re entering data, you simply click in a cell to position  the   cursor, type the value into the cell, and move to a new cell by using  the   arrow keys or (in most spreadsheets) by pressing the tab key.</p>
<h3>Using formulae</h3>
<p>Where do the values come from that appear in the Current Value  column?</p>
<p>Well, you could manually multiply the Current Shareholding by the  Current   Share Price. But that&#8217;s what your spreadsheet is for: doing the manual   labour of calculating. So, instead of working out the value and typing  it in   the appropriate row in column D, we insert a <em>formula</em> in  column D   instead of a <em>value</em>.</p>
<p>The formula for the Current Value of our Microsoft stocks, for  example, is   B2*C2 (that is, the value contained in cell B2 multiplied by the value  in cell   C2) and the result is placed in cell D2. The value of our IBM stocks  is   derived by the formula B3*C3, and the formula is placed in cell D3.</p>
<p>Once you&#8217;ve placed a formula in a cell, you no longer have to  bother   about working out the calculation yourself. More importantly, any time  you   change the contents of a cell <em>referenced</em> by that formula, the   contents of the cell containing the formula will be updated to show  the new   result.</p>
<p>For instance, if we have 1000 Microsoft shares which we  bought   yesterday at $31.00 per share, and the price rises today to $31.36,  all we   need to do is type in the new share price in cell C2 and the Current  Value in   cell D2 will be automatically updated to a healthy $31,360.00.</p>
<p>That&#8217;s the benefit of using formulae: you enter the formula once in  the   appropriate cell, and from then on the value displayed in that cell  will   reflect the latest data typed into your spreadsheet.</p>
<h3>Eliminating repetitive  work</h3>
<p>This is all very well, but it still seems like a fair amount of  work.</p>
<p>What if we had a portfolio of 60 different shareholdings, instead  of our   measly (but valuable) five? Would we have to type in 60 different  formulae in   column D to find out the current value of each of our shareholdings?</p>
<p>No. Spreadsheets are much smarter than that. Instead of creating a  series   of formulae such as B2*C2, B3*C3, B4*C4 and so on, you create the  first   formula, and then copy and paste it. The spreadsheet will not only  copy the   formula to the destination cells you select, but it will <em>update</em> the   formula to reflect its new position.</p>
<p>For example, we place the formula B2*C2 in cell D2 to get the  Current Value   of our Microsoft shareholding. We select that formula and copy it (the  copying   method differs from one spreadsheet program to another), and  then   select cells D3 to D6 and paste the formula into them.</p>
<p>Of course, we don&#8217;t want the exact formula (B2*C2) copied, or the  Current   Value column will repeatedly show the value of our Microsoft  shareholding.   Fortunately, spreadsheets are smart enough to adapt the formula to its  current   position, filling in the appropriate B3*C3, B4*C4 and so on. If we  have 60   different stocks, all we do is create the formula, copy it, select the  next 59   cells in column D, and paste the formula. The spreadsheet will do all  the hard   work of pasting the appropriate formula in each cell.</p>
<p>In Microsoft Excel, there&#8217;s an even easier shorthand method: After having typed the formula =(B2*C2) into cell D2, click in D2 and drag the small handle at the bottom right of the cell down across D3, D4, D5 and D6. Voila! The formula is copied to those cells and updated to match its context. Use the same technique for copying a formula to five cells or 500.</p>
<h3>Automatic  numbering and   labelling</h3>
<p>Spreadsheets are wonderful at eliminating repetitive work. Not only  can you   automatically copy formulae in this fashion, but you&#8217;ll find most   spreadsheets also have a feature called &#8216;auto-series&#8217; which  automatically   inserts series of numbers, dates, days or months.</p>
<p>For instance, to place the months of the year across the top of a   spreadsheet, type &#8220;January&#8221; in the first column, select the next 11   cells and click the auto-fill button (with Excel, you can  simply   click-and-drag the &#8216;handle&#8217; in the bottom right corner of the cell to  get   the same effect).</p>
<p>Apart from these auto-series and formula shortcuts, every  spreadsheet   includes an auto-sum shortcut. Probably the most common type of  spreadsheet   task is the quick totting up of a row or column of numbers.  Spreadsheets turn   this calculation into a one-click task: click beside or beneath the  numbers   you want summed, and click the auto-sum button on the toolbar. A  formula   summing the numbers is placed in the cell immediately to the right or  beneath   the appropriate numbers.</p>
<h3>Other spreadsheet  shortcuts</h3>
<p>Depending on the power of the spreadsheet program you&#8217;re using,  you&#8217;ll   find endless variations on such shortcuts. Most spreadsheets, for  example,   don&#8217;t force you to type in cryptic ranges such as D9:L27. Instead, you  can   click and drag to select the range of cells your formula will  reference, and   the spreadsheet inserts that range automatically in the formula.</p>
<p>Microsoft Excel gets  really   fancy and lets you choose names for individual cells or ranges of cells,  or   refer to cells by their row and column labels.</p>
<p>For example, if we have the months listed across our columns and  budget   items such as Petrol, Rent, Phone and so on as our row labels, in  Excel we can   refer to a cell&#8217;s contents as January Rent or March Phone. Not only  does   this make formulae much easier to understand, it also eliminates many  errors   that result from trying to get our cell addresses correct.</p>
<h3>Useable spreadsheets</h3>
<p>This leads us back to our starting point: good spreadsheet design.</p>
<p>As you can see, it&#8217;s not at all difficult to get disoriented in the  maze   of cell references. You need to pay close attention to ensure that  your   spreadsheet formulae perform the right actions on the correct range of  cells.</p>
<p>Before you start creating any spreadsheet, think ahead and decide  how you   want to label your columns and rows. Sometimes the number of rows or  columns   in a spreadsheet will be fixed, sometimes it will increase over time.  In our   share tracking spreadsheet, for example, the columns are fixed but  we&#8217;ll add   (or subtract) rows as we change the stocks in our share portfolio. You  can   always insert or delete rows and columns later on, and copy formulae  to the   newly created cells.</p>
<p>When you enter formulae, check and double-check the row and column   coordinates. You&#8217;ll often find it easier to check your formulae if you  enter   some test data in your spreadsheet, check the results, alter the test  data and   re-check the results. If your software lets you, use descriptive  labels   wherever possible instead of column and row coordinates, so your  formulae are   easier to understand and check.</p>
<h3>Checking your design</h3>
<p>Make sure you not only check the cell&#8217;s contents but also use the  data   entry and address boxes at the top of the screen to double-check your  position   and the entire contents of a cell. Sometimes the contents of a cell  are not   totally visible, and the data entry box will provide a quick means to  see the   entire contents.</p>
<p>If you find a cell contains a series of hash marks (#), it means  the value   the cell contains is too large to be displayed. You can remedy this by   resizing the column (usually a matter of positioning the cursor at the  top of   the worksheet on the line separating one column from another, and  clicking and   dragging the double-headed arrow until the column is the desired  width).</p>
<p>Finally, you can use different typefaces and colour to make your   spreadsheet easier to read. You can choose different   background and font colours for different segments of your  spreadsheet,   enabling you to highlight important information and distinguish  different   areas of the spreadsheet. Make sure you use these formatting features   judiciously: the aim is not to dazzle, but to make your spreadsheet  easier to   use and understand.</p>
<p>If you take care in your spreadsheet design, the task of data entry  will be   that much easier. It&#8217;s the combination of good design and correct data  entry   that will yield you useful results.</p>
<h3>Advanced tools</h3>
<p>This is just a taste of the design and data tools available to you. Programs like Microsoft Excel also provide data validation rules to help ensure the data you enter falls within permissable ranges; and a range of tools for checking that the formulae you type really do the job you want.</p>
<p>Related posts:<ol>
<li><a href='http://www.geekgirls.com/2010/04/spreadsheeting-basic-concepts/' rel='bookmark' title='Spreadsheeting I: Basic concepts'>Spreadsheeting I: Basic concepts</a></li>
<li><a href='http://www.geekgirls.com/2010/02/understanding-excel-references/' rel='bookmark' title='Understanding Excel references'>Understanding Excel references</a></li>
<li><a href='http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/' rel='bookmark' title='Shading every other row in Excel'>Shading every other row in Excel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekgirls.com/2010/04/good-spreadsheet-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheeting I: Basic concepts</title>
		<link>http://www.geekgirls.com/2010/04/spreadsheeting-basic-concepts/</link>
		<comments>http://www.geekgirls.com/2010/04/spreadsheeting-basic-concepts/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 23:00:53 +0000</pubDate>
		<dc:creator>rosevines</dc:creator>
				<category><![CDATA[Basic Computing]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office Apps]]></category>
		<category><![CDATA[spreadsheets]]></category>

		<guid isPermaLink="false">http://www.geekgirls.com/?p=615</guid>
		<description><![CDATA[While word processing programs are the most commonly used office application and browsers are probably the most commonly used application of all, much of the success of personal computers is due to spreadsheets. In 1979, two blokes – Dan Bricklin and Bob Frankston – developed the first spreadsheet. Their creation was called VisiCalc and it [...]]]></description>
			<content:encoded><![CDATA[<p>While word processing programs are the most  commonly used office application and browsers are probably the most commonly used application of all, much of the success of personal computers is due to   spreadsheets.</p>
<p>In 1979, two blokes – Dan Bricklin and Bob Frankston – developed  the   first spreadsheet. Their creation was called VisiCalc and it helped  turn the   Apple II computer into something more than simply a hobbyist&#8217;s plaything. In  fact,   VisiCalc was the first application developed for a microcomputer that  really <em>sold</em> the computer. Four years later, the launch of Lotus 1-2-3 did the same  thing   for the IBM PC, turning the still developing new product into a  must-have item   in the business world.</p>
<h3>What spreadsheets do</h3>
<p>What made spreadsheets so hot? Well, to understand that you need to  be able   to picture the type of problems spreadsheets solve and what life was  like   before the advent of computer spreadsheets.</p>
<p>Imagine you own a business that manufactures widgets. As in any  business,   in order to make a profit you need to ensure your income exceeds your   expenses. You need to track things such as the cost of your raw  materials,   labour costs, utilities, maintenance, employee benefits, government  fees,   advertising, distribution costs and so on. On the income side, you  need to   charge prices that cover your costs and allow for a profit, while  maintaining   your competitiveness in the market.</p>
<p>Trying to track this information by hand involves listing all the  different   expense categories, the amounts you spend in each, the cost of  producing each   item in your inventory, the margin you sell it at, your sales volume  on each   type of widget, and so on. Picture all these figures in a grid of rows  and   columns, with categories listed down the side and months across the  top to   track expenses over time. Numbers in one cell will depend on the  values in   others, and so the whole grid will be dynamic.</p>
<p>Before computer spreadsheets, companies needing to track this sort  of   information would create vast grids of figures, either on long  blackboards   (sometimes stretching the length of rooms) or on massive, unwieldy  sheets of   paper. As one figure was updated, any dependent numbers would need to  be   adjusted to reflect the changes, necessitating much rubbing out and  rewriting.   Because the grid contained not just simple figures but also  relationships   between figures (formulae) you can imagine how easy it was in a  spreadsheet of   any size to let an error slip in.</p>
<h3>Computerised number  crunching</h3>
<p>Enter computer-based spreadsheets. In a way, spreadsheets and  computers are   the perfect fit. You&#8217;ve probably heard computers referred to as  &#8220;number   crunchers&#8221;. Well, with spreadsheets that&#8217;s exactly what they do:  ingest   masses of numbers, perform calculations at dazzling speed, and spit  out the   answer.</p>
<p>In a computer-based spreadsheet, you define your row and column  categories,   and then in each cell you type in the appropriate value, or a formula  showing   how the value in that cell should be derived from other values in the   spreadsheet.</p>
<p>Once you&#8217;ve set up the relationships between figures in the  spreadsheet   (which could be as simple as summing a column of figures to arrive at a  total,   or could involve much more complex formulae) and entered your initial  data,   you&#8217;ve done the bulk of the work. If you have to update a number, you  type   the new value in the appropriate cell and the spreadsheet performs all  the   necessary recalculations. No rubbing out, no massive recalculations,  no need   to remember all the dependent relationships and make sure you update  each one.</p>
<h3>Getting the design right</h3>
<p>Obviously what you <em>do</em> need to ensure is that your original   spreadsheet design is correct, that you&#8217;ve used both accurate  modelling of   your information as well as the correct formulae applied to the  correct   numbers, and that data you type in is accurate.</p>
<p>While computers take the vast bulk of the grunt work out of  creating and   maintaining spreadsheets, the old GIGO adage (garbage in, garbage out)  still   applies, something you&#8217;ll need to focus on when you start creating  your own   spreadsheets.</p>
<h3>What you can do  with a   spreadsheet</h3>
<p>While tracking the income and expenditure of a large company may be  out of   your league, spreadsheets can be put to a myriad different uses.</p>
<p>You can use a spreadsheet to budget your personal finances or keep  track of   your investments. You can follow loan repayments or compare the  benefits of   different mortgages. You can analyse the weather patterns in your  area,   perform classroom or meeting room timetabling, assess the performance  of   students in a class, create invoices, and much, much more.</p>
<p>Not only are spreadsheets great for tracking your current financial   position, they also excel at &#8220;what if?&#8221; scenarios. What will my bottom   line look like if I take an extended holiday this year? How soon can I  pay off   that loan if I pay fortnightly instead of monthly?</p>
<p>The great thing for beginners is that most spreadsheet programs  come with a   swag of pre-designed &#8216;solutions&#8217; which have all the basic layouts and   formulae worked out for you. All you need to do is customise them (if  need be)   and enter your own data.</p>
<h3>Finding your way around</h3>
<p>Considering there are dozens of spreadsheet programs on the market,  it&#8217;s   a tribute to Bricklin and Frankston&#8217;s original design that almost all  of   them look pretty much the same and work in similar ways. Lotus 1-2-3  also set   its stamp on how a spreadsheet should appear and function, so much so  that it   later tried to prosecute other spreadsheet developers for stealing its  &#8220;look   and feel&#8221;.</p>
<p>While you&#8217;ll find different features, twists and approaches in the   various spreadsheets, if you get to know one you&#8217;ll have a flying  start in   using almost any other spreadsheet available. Even the simple  spreadsheets   included in low-end integrated products such as Microsoft   Works have a lot in common with up-market offerings such as Microsoft Excel.</p>
<h3>Spreadsheet jargon</h3>
<p>All spreadsheets basically consist of a grid of <em>cells</em>. The <em>columns</em> are labelled across the top, usually from A to Z, and then from AA to  AZ and   so on. The <em>rows</em> are numbered down the side. Even simple  spreadsheet   programs let you have at least 256 columns and at least that many  rows. The   more powerful spreadsheets increase these limits to thousands of  columns and   rows (and yes, some people actually make use of such power).</p>
<p>Each cell in the spreadsheet can be uniquely identified by its cell  <em>address</em>,   which is the intersection of the column and row. For example, the  first cell   in column A is called A1. The 29<sup>th </sup>cell in column H is H29.  When   you click in a cell, you&#8217;ll see its address displayed in the address  box,   usually near the top left of the window.</p>
<p>You can also refer to a <em>range</em> of cells by specifying the  first and   last cells in the range, separated by a colon. Thus, L12:R19 refers to  a range   of cells starting in column L, row 12 and extending to column R row  19. To   select a range of cells, click in the first cell and, keeping the  mouse button   depressed, drag the mouse pointer to the last cell you want to select  and then   release the mouse button. The address of the selected range will  appear in the   address box.</p>
<p>You can also select a whole column by clicking the column label (A,  B, C   and so on) or select an entire row by clicking the row label (1, 2, 3,  et   cetera). To select multiple rows or columns, click-and-drag from the  first   column or row to the final column or row you wish to select.</p>
<h3>A window on your data</h3>
<p>Obviously, you&#8217;re not going to be able to see at a glance any  spreadsheet   that spreads across even a few dozen columns or rows: that&#8217;s too much   information to display in a single window on screen.</p>
<p>Instead, you should think of the screen as displaying a movable  window that   you can pan across your spreadsheet, using the scroll bars at the  bottom and   right sides of the window.</p>
<p>Advanced spreadsheets provide ways of hiding some of the details in  your   spreadsheet so you can quickly see summary or totals columns and get a  better   overall picture of your information. Such programs also let you split   information across multiple &#8220;worksheets&#8221;, and then consolidate the  figures   into summary worksheets, so your information is viewable in more  easily   digested chunks.</p>
<h3>Entering data</h3>
<p>Near the top of the spreadsheet window, usually immediately below  the   toolbars, you&#8217;ll find a white box that stretches most of the way  across the   window. This is the <em>data entry area</em>.</p>
<p>What? Don&#8217;t you enter information directly into the grid of cells?  Well,   the answer is &#8220;yes and no&#8221;. Certainly you can type data and formulae   directly into the cells themselves, but, as you&#8217;ll soon discover, the  cells are   often too small to display the complete contents of what you need to  type.</p>
<p>For instance, if a cell contains a formula summing the values in  cells C1   to C10 (which will appear something like =SUM(C1:C10), depending on  which   spreadsheet you&#8217;re using), you&#8217;ll find that there isn&#8217;t enough room to   display this complete formula when you type in the cell. While it&#8217;s an  easy   task to change the width and height of cells, it&#8217;s even easier to use  the   data entry box to enter the contents of a cell.</p>
<p>You&#8217;ll find you can type a value or formula into either the data  entry   box or the cell itself – the choice is yours. In a way, it&#8217;s easiest  to   use both: type directly into the cells (as this helps you &#8216;position&#8217;   yourself mentally in the spreadsheet and ensures you are placing a  value in   the correct cell), but check the complete entry as it appears in the  data   entry box.</p>
<h3>Values and contents</h3>
<p>The other reason for having the data entry box is that usually  cells   display the final results of calculations, not the formulae on which  they&#8217;re   based. For instance, if you have a series of values in cells C1 to C10  and   want to display the sum of those values in C11, the <em>contents</em> of  C11 is   SUM(C1:C10). While this formula remains the same and will be displayed  in the   data entry box whenever you select cell C11, the <em>value of the  contents </em>in   C11 will change depending on the numbers contained in cells C1 to C10.</p>
<p>Not only can spreadsheet cells contain numbers or formulae, they  can also   contain text, dates, times and currency values. You can alter the  appearance   of cells by changing their size, by selecting a specific type of  number,   currency or date format, by altering the alignment of the contents of  cells,   or by applying formatting such as bolding, italicising, and coloured  text or   backgrounds.</p>
<p>Related posts:<ol>
<li><a href='http://www.geekgirls.com/2010/04/good-spreadsheet-design/' rel='bookmark' title='Spreadsheeting II: Good Spreadsheet Design'>Spreadsheeting II: Good Spreadsheet Design</a></li>
<li><a href='http://www.geekgirls.com/2010/02/understanding-excel-references/' rel='bookmark' title='Understanding Excel references'>Understanding Excel references</a></li>
<li><a href='http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/' rel='bookmark' title='Shading every other row in Excel'>Shading every other row in Excel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekgirls.com/2010/04/spreadsheeting-basic-concepts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shading every other row in Excel</title>
		<link>http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/</link>
		<comments>http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 22:15:06 +0000</pubDate>
		<dc:creator>rosevines</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office Apps]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[spreadsheet]]></category>
		<category><![CDATA[spreadsheets]]></category>

		<guid isPermaLink="false">http://www.geekgirls.com/?p=449</guid>
		<description><![CDATA[I sometimes wonder whether Microsoft spends so much on its programming budget it has little left over to spend on designers. This thought often crosses my mind when working with Office sample files, templates and styles. Take, for example, the auto-formats supplied with pre-2007 versions of Excel. Who designed these things? Not only are they [...]]]></description>
			<content:encoded><![CDATA[<p>I sometimes wonder whether Microsoft spends so much on its  programming budget it has little left over to spend on designers. This  thought often crosses my mind when working with Office sample files,  templates and styles.</p>
<p>Take, for example, the auto-formats supplied  with pre-2007 versions of Excel. Who designed these things? Not only  are they ugly, they also don’t address basic formatting needs such as  coloring every other row in order to make a table more readable. Yes,  there’s one auto-format option which gives you this – sort of – but it  comes with unattractive headings and footer formatting and it’s  inflexible.</p>
<p>The solution? Do the job yourself, using conditional  formatting. Conditional formatting lets you apply formatting based on  the value contained in a cell or based on the result of a formula.</p>
<p><a href="http://www.geekgirls.com/wp-content/uploads/shading.png"><img class="alignright size-full wp-image-452" title="Shading Excel rows" src="http://www.geekgirls.com/wp-content/uploads/shading.png" alt="Shading Excel rows" width="316" height="154" /></a>Here’s  how you can use it to apply shading to alternate rows:</p>
<ol>
<li>Select  the range of cells you wish to format.</li>
<li>Click  Format -&gt; Conditional Formatting.</li>
<li>In the drop-down box,  select Formula Is.</li>
<li>In the box type:</li>
</ol>
<blockquote><p>=MOD(ROW(),2)=0</p></blockquote>
<ol>
<li>Click the Format button  and then click the Patterns tab.</li>
<li>Select a color for the shaded  rows and click OK twice.</li>
</ol>
<p>There you have it: a table  with banded colors. If you find you don’t like your chosen color, simply  select the range once more, open the Conditional Formatting box and  choose another color.</p>
<p>The real beauty of this method is that even  if you delete a row in your table, the banding will be maintained  automatically.</p>
<div style="overflow:hidden;; " class="alignnone">
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat left top; width: 30px; height: 2px; float: left;" class="shadow_img"></div>
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat right top; width: 30px; height: 2px; float: right;" class="shadow_img"></div>
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small_top.png) repeat-x center top; margin: 0 30px; height: 2px;" class="shadow_img"></div>
<table style="margin:0;padding:0;width:100%;empty-cells:show;border-collapse:collapse;"><tr>
<td style="margin:0;padding:0;border-width:0;background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat left -2px; width: 6px; height: 25px;" class="shadow_img"></td>
<td rowspan=2 style="margin:0;padding:0;border-width:0; background-color: transparent;">

<blockquote class="shadow_osx_small" style="margin:0 !important; max-width:100% !important; min-height: 25px !important; border: 1px solid #d4d4d4;">
<h3>Formatting in Excel 2007</h3>
<p>If  you’re using Excel 2007, you have a whole range of new formatting tools  at your disposal, including the alternate row shading offered through  the Format As Table options. I’ll be writing more about these options in  the future.</p>
<p>Nevertheless, you can still roll your own conditional  formats if you choose: from the Home tab, click Conditional Formatting  -&gt; New Rule -&gt; Use A Formula To Determine Which Cells To Format  and then use the same formula described in Step 4 above to create  banding.</p></blockquote>

</td>
<td style="margin:0;padding:0;border-width:0;background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat right -2px; width: 6px; height: 25px;" class="shadow_img"></td>
</tr>
<tr>
<td style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small_left.png) repeat-y left center; width: 6px;margin:0;padding:0;border-width:0;" class="shadow_img"></td>
<td style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small_right.png) repeat-y right center; width: 6px;margin:0;padding:0;border-width:0;" class="shadow_img"></td>
</tr>
</table>
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat left bottom; width: 30px; height: 10px; float: left;" class="shadow_img"></div>
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small.png) no-repeat right bottom; width: 30px; height: 10px; float: right;" class="shadow_img"></div>
<div style="background: transparent url(http://www.geekgirls.com/wp-content/plugins/shadows/shadow_osx_small_bottom.png) repeat-x center bottom; margin: 0 30px; height: 10px;" class="shadow_img"></div>
</div>


<h3>Conditional formatting  explained</h3>
<p>If you’re not familiar with conditional  formatting, a little explanation is in order.</p>
<p>Conditional  formatting is applied to a cell when the condition you specify is true.  The condition may relate to the cell’s contents. For example, you could  set all cells containing negative values to be displayed in a red font.  Alternatively, you can use a <em>logical expression</em> or formula  which evaluates as TRUE or FALSE, as we did in the example above. In  Excel, a 0 value equates to FALSE, while any number greater than 0  equates to TRUE.</p>
<h3>The MOD() and ROW() functions</h3>
<p>The  formula we used contains two functions, ROW(<em>reference</em>) and MOD(<em>number,divisor</em>).  The ROW function returns the number of the row contained in <em>reference</em> or, if the reference is omitted (as in our example) it returns the  number of the row containing the function. So, if you place the formula  =ROW() in cell A9, the value returned is 9.</p>
<p>The MOD function  returns the remainder of the <em>number</em> divided by the <em>divisor</em>.  So, the formula =MOD(7,6) returns a value of 1, while =MOD(6,7) returns  6.</p>
<h3>Evaluating Logical Expressions</h3>
<p>Now take a look  at the formula we used to create shading on every other row:</p>
<p>=MOD(ROW(),2)=0</p>
<p>In this case, ROW() provides the <em>number</em> while 2 is the <em>divisor</em> in our MOD() function. In English, we divide the current row number by  2. The remainder will either be 0 for even numbered rows or 1 for  odd-numbered rows.</p>
<p>We then compare the result to 0. For even  numbered rows, we end up with the expression 0=0, which is TRUE. Because  the condition evaluates to TRUE, we apply the selected formatting. For  odd-numbered rows, the result is 1=0, which is clearly FALSE, and thus  the formatting is not applied and the row remains the default color.</p>
<p>Astute readers may be wondering, “Why do we need the =0 on the end  of this expression, when we could simply evaluate =MOD(ROW(),2)?” It’s  true, we could leave off the =0 and we’d still end up with an expression  with alternating values of 0 and 1 and the same bands of color  (although the shaded/non-shaded rows would be reversed). But by adding  the =0 we make it very easy to extend this expression to coloring every  third or fourth or fifth row, and so on. For example:</p>
<blockquote><p>=MOD(ROW(),3)=0</p></blockquote>
<p>will color every third row. This is easy to check by evaluating the  expression for rows 1 through 6:</p>
<blockquote><p>=MOD(1,3) = 1 1 = 0  is FALSE (not shaded)<br />
=MOD(2,3) = 2 2 = 0 is FALSE (not shaded)<br />
=MOD(3,3)  = 0 0 = 0 is TRUE (shaded)<br />
=MOD(4,3) = 1 1 = 0 is FALSE (not shaded)<br />
=MOD(5,3)  = 2 2 = 0 is FALSE (not shaded)<br />
=MOD(6,3) = 0 0 = 0 is TRUE (shaded)</p></blockquote>
<p>And so on.</p>
<p>So what happens if you leave the =0 off the  expression? Instead of shading every nth row you’d color n-1 rows then  leave the next row unshaded, something that might come in handy, too. In  the case above, you’d shade rows 1 and 2, leave row 3 untouched, shade  rows 4 and 5, and leave row 6 untouched.</p>
<h3>Column and checkerboard shading</h3>
<p><a href="http://www.geekgirls.com/wp-content/uploads/checkerboard.png"><img class="alignright size-full wp-image-451" title="Checkerboard shading" src="http://www.geekgirls.com/wp-content/uploads/checkerboard.png" alt="Checkerboard shading" width="279" height="105" /></a>You  can use a similar technique to create alternating shading on columns.  Instead of using the ROW() function, you use the COLUMN() function:</p>
<blockquote><p>=MOD(COLUMN(),2)=0</p></blockquote>
<p>Note that the COLUMN() function returns the column <em>number</em>,  with column A=1, column B=2 and so on.</p>
<p>Anyone for checkerboard  shading? Try:</p>
<blockquote><p>=MOD(ROW(),2) =MOD(COLUMN(),2)</p></blockquote>
<p>You’ll end up with a checkerboard shading pattern.</p>
<h3>Understanding  the logic</h3>
<p>If you’re content with this result and don’t need  to know the nuts and bolts, class dismissed. If, on the other hand,  you’d like to understand how we end up with a checkerboard pattern from  this expression, stick with me. Unless you have some programming or a  philosophy degree under your belt, trying to get your head around  logical expressions can be a little confusing at first.</p>
<p>Note that  to produce the checkerboard pattern, we’ve used two formulas one after  the other; we’ve also dispensed with the final =0 we used in the earlier  formulas.</p>
<p>Why is this so?</p>
<p>Well, instead of comparing the  result of an expression to 0, we compare the result of the first  expression to the result of the second expression, and determine whether  they are equivalent. So, Excel evaluates the first formula and  determines whether it is TRUE or FALSE. It then evaluates the second  formula and determines whether it is TRUE or FALSE. Finally, it equates  the two results and determines whether the end result is TRUE or FALSE.</p>
<p>In other words, you end up with four possible intermediate results:</p>
<ol>
<li>Both expressions are TRUE.</li>
<li>The first is TRUE; the  second is FALSE.</li>
<li>Both expressions are FALSE.</li>
<li>The first  is FALSE, the second is TRUE.</li>
</ol>
<p>Now, take the final step  and evaluate these four intermediate results. The first and third  evaluate to TRUE (that is, TRUE = TRUE is clearly TRUE, just as FALSE =  FALSE is clearly TRUE); the second and fourth evaluate to FALSE (TRUE =  FALSE is FALSE; FALSE = TRUE is FALSE).</p>
<p>So, if you apply the  conditional expression =MOD(ROW(),2) =MOD(COLUMN(),2) to cell A1 (where  both the row and column number are equal to 1) you get:</p>
<blockquote><p>=MOD(1,2)  =MOD(1,2)<br />
1 = 1 which is TRUE</p></blockquote>
<p>For cell A2:</p>
<blockquote><p>=MOD(2,2)  =MOD(1,2)<br />
0 = 1 which is FALSE</p></blockquote>
<p>For cell A3:</p>
<blockquote><p>=MOD(3,2)  =MOD(1,2)<br />
1 = 1 which is TRUE</p></blockquote>
<p>For cell A4:</p>
<blockquote><p>=MOD(4,2)  =MOD(1,2)<br />
0 = 1 which is FALSE</p></blockquote>
<p>For cell B1:</p>
<blockquote><p>=MOD(1,2)  =MOD(2,2)<br />
1 = 0 which is FALSE</p></blockquote>
<p>For B2:</p>
<blockquote><p>=MOD(2,2)  =MOD(2,2)<br />
0 = 0 which is TRUE</p></blockquote>
<p>For B3:</p>
<blockquote><p>=MOD(3,2)  =MOD(2,2)<br />
1 = 0 which is FALSE</p></blockquote>
<p>For B4:</p>
<blockquote><p>=MOD(4,2)  =MOD(2,2)<br />
0 = 0 which is TRUE</p></blockquote>
<p>And so on, with  the alternating TRUE/FALSE/TRUE/FALSE in one column and  FALSE/TRUE/FALSE/TRUE in the next building up the checkerboard shading.</p>
<p>Related posts:<ol>
<li><a href='http://www.geekgirls.com/2010/02/understanding-excel-references/' rel='bookmark' title='Understanding Excel references'>Understanding Excel references</a></li>
<li><a href='http://www.geekgirls.com/2010/04/good-spreadsheet-design/' rel='bookmark' title='Spreadsheeting II: Good Spreadsheet Design'>Spreadsheeting II: Good Spreadsheet Design</a></li>
<li><a href='http://www.geekgirls.com/2010/02/using-words-hidden-calculator/' rel='bookmark' title='Using Microsoft Word&#8217;s hidden calculator'>Using Microsoft Word&#8217;s hidden calculator</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Understanding Excel references</title>
		<link>http://www.geekgirls.com/2010/02/understanding-excel-references/</link>
		<comments>http://www.geekgirls.com/2010/02/understanding-excel-references/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 23:36:15 +0000</pubDate>
		<dc:creator>rosevines</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office Apps]]></category>

		<guid isPermaLink="false">http://www.geekgirls.com/?p=14</guid>
		<description><![CDATA[When you refer to a cell in an Excel formula, you can use any of three different ways of referring to that cell, known as relative, absolute and mixed references. Relative cell references are the most commonly used. A relative cell reference in a formula is based on the position of the formula’s cell relative [...]]]></description>
			<content:encoded><![CDATA[<p>When you refer to a cell in an Excel formula, you can use  any of three different ways of referring to that cell, known as  relative, absolute and mixed references.</p>
<p><strong> Relative  cell references </strong> are the most commonly used. A relative cell  reference in a formula is based on the position of the formula’s cell  relative to the cell to which it refers. That means if you move the  formula cell, or copy it elsewhere, the reference changes.</p>
<p>You  denote a relative reference simply by using the cell’s column letter  followed by its row number: A1. A simple formula that uses relative cell  references to add the numbers in cells B1 through B9 is:</p>
<blockquote><p>=SUM(B1:B9)</p></blockquote>
<p>If you place this formula in cell B10  and then copy it across from B10 to C10, Excel makes the sensible  assumption that you want to total the values in the same relative  positions in column C – that is, cells C1 to C9 – and so it  automatically adjusts the formula to read:</p>
<blockquote><p>=SUM(C1:C9)</p></blockquote>
<p><strong> An absolute reference </strong> refers to a cell in a fixed location. Such references come in handy  when you want to refer consistently to the same cell, or range of cells,  throughout a worksheet.</p>
<p>For example, if you use a worksheet to  estimate a mileage allowance for business travel, you could put the  allowance rate per mile in cell D2 and then use an absolute reference to  that cell anywhere you use a formula based on the mileage rate. To  indicate an absolute reference use dollar signs, thus: $D$2.</p>
<h3>Name  that cell</h3>
<p>You can make life easier for yourself by naming  a cell or range of cells. This is particularly handy when you want to  refer to a certain cell repeatedly in formulas. When you name a cell,  Excel automatically makes it an absolute reference.</p>
<p><a href="http://www.geekgirls.com/wp-content/uploads/mileagerate1.jpg"><img class="size-full wp-image-121 alignnone" title="mileagerate" src="http://www.geekgirls.com/wp-content/uploads/mileagerate1.jpg" alt="" width="568" height="234" /></a></p>
<p>For example, to name our mileage rate cell in Excel 2007:</p>
<ol>
<li> Right-click the cell and select Name A Range from the pop-up menu.</li>
<li> Type a name in the Name box, such as MileageRate and click OK. Although  you can’t include spaces in the name, you can use underscores  (Mileage_Rate), periods/full stops (Mileage.Rate) or slashes  (Mileage\Rate). Excel ignores the case, but it can make your worksheets  more readable if you mix lower- and uppercase.</li>
</ol>
<p>To name  the cell in Excel 2003:</p>
<ol>
<li> Click the cell.</li>
<li> Click  Insert -&gt; Name -&gt; Define.</li>
<li> Type in the name, MileageRate,  and click OK.</li>
</ol>
<p>Once you’ve named the cell, you can use  its name in any formula, thus:</p>
<blockquote><p>=E7*MileageRate</p></blockquote>
<p>As you define the name, notice the value in the Refers To box.  You’ll see the full absolute reference consists of the worksheet name  followed by an exclamation mark and the absolute cell reference, for  example:</p>
<blockquote><p>=’Travel Expenses’!$D$2</p></blockquote>
<p>That  means you can use the named reference – in our case, MileageRate – in  any worksheet in your workbook, not just the current worksheet.</p>
<h3>Specifying  the scope of a name</h3>
<p><a href="http://www.geekgirls.com/wp-content/uploads/scope.png"><img class="alignright size-full wp-image-195" title="scope" src="http://www.geekgirls.com/wp-content/uploads/scope.png" alt="" width="322" height="238" /></a>That’s great, but what if you’ve set your workbook up with a separate  worksheet for each employee and each of those employees has a different  mileage rate? In that case, you won’t want a reference to MileageRate on  Mildred’s worksheet grabbing the value from Darren’s worksheet.</p>
<p>In Excel 2003, you deal with this situation by specifying the worksheet  when defining a name: in the Name box, first type the current  worksheet’s name, followed by an exclamation mark, followed by your  chosen cell name. For example:</p>
<blockquote><p>Darren!MileageRate</p></blockquote>
<p>Excel  2007, makes this easier by including a Scope box in the New Name  dialog: when you define the name, select the current worksheet from the  drop-down Scope box to restrict the reference to the current sheet, and  Excel will name it appropriately.</p>
<h3>Deleting a name</h3>
<p>If  you ever need to delete a cell/range name, in Excel 2003:</p>
<ol>
<li> Click Insert -&gt; Name -&gt; Define.</li>
<li> In the Define Name  dialog, click the name you want to delete then click the Delete button.</li>
</ol>
<p>In Excel 2007:</p>
<ol>
<li> On the Formulas tab click Name  Manager.</li>
<li> In the Name Manager dialog, click the name you want  to delete and click the Delete button.</li>
</ol>
<h3>Mixed references</h3>
<p><strong> Mixed references </strong> are a combination of  relative and absolute: either the column is relative and the row fixed  (absolute), for example D$2, or the column is fixed and the row  relative: $D2.</p>
<p>When would you need such a reference? One case  is when you create any table where the values are derived by multiplying  the x axis by the y axis. A multiplication table is the simplest  example of this.</p>
<p><a href="http://www.geekgirls.com/wp-content/uploads/2010/01/mixed_references.jpg"><img class="alignright size-full wp-image-193" title="mixed_references" src="http://www.geekgirls.com/wp-content/uploads/mixed_references.jpg" alt="" width="319" height="282" /></a>The easiest way to get a feel for  mixed references is to give them a try:</p>
<ol>
<li> Place the values 1  through 12 across in cells B2 to M2. This is the x axis of your  multiplication table.</li>
<li> Place the values 1 through 12 down in  cells A3 to A14. This is the y axis of your multiplication table.</li>
<li> In the top, leftmost cell of the results grid, cell B3, enter the  formula: =B$2*$A3.</li>
<li> Copy that formula down and then across to  include the entire table.</li>
</ol>
<p>This formula translates as:  multiply the value in row 2, column x by the value in column A, row y.  For the first cell referenced in the formula, the row remains constant  (row 2, the x axis where you placed the values 1 through 12) while the  column changes. For the second cell reference, the column remains  constant (column A, the y axis where you placed the values 1 through  12), while the row changes. No matter where you click in the table,  you’ll see row 2 and column A referenced in the formula bar, while the  other values vary.</p>
<h3><a href="http://www.geekgirls.com/wp-content/uploads/2010/01/mixed_references_02.jpg"><img class="alignnone size-full wp-image-194" title="mixed_references_02" src="http://www.geekgirls.com/wp-content/uploads/mixed_references_02.jpg" alt="" width="319" height="298" /></a></h3>
<h3><a href="http://www.geekgirls.com/wp-content/uploads/mixed_references_02.jpg"></a>Changing reference types</h3>
<p>If you find you’ve used the wrong type of reference in a  formula, Excel offers a shortcut for changing the reference:</p>
<ol>
<li> Click the offending cell.</li>
<li> In the formula bar, click the  incorrect cell reference and press F4. Each time you press F4, Excel  will cycle the reference through relative -&gt; absolute -&gt; mixed  (relative/absolute) -&gt; mixed (absolute/relative).</li>
<li> Repeat  this process for each incorrect reference in the formula.</li>
</ol>
<p>A  memory jogger to help you remember to use the F4 key for changing  references is to take a look at your keyboard: notice how the $ symbol,  used to denote absolute references, is above the number 4.  Use it as a  reminder (a trick I learnt from a Kiwi school teacher).</p>
<p>Related posts:<ol>
<li><a href='http://www.geekgirls.com/2010/03/shading-every-other-row-in-excel/' rel='bookmark' title='Shading every other row in Excel'>Shading every other row in Excel</a></li>
<li><a href='http://www.geekgirls.com/2010/04/good-spreadsheet-design/' rel='bookmark' title='Spreadsheeting II: Good Spreadsheet Design'>Spreadsheeting II: Good Spreadsheet Design</a></li>
<li><a href='http://www.geekgirls.com/2010/04/spreadsheeting-basic-concepts/' rel='bookmark' title='Spreadsheeting I: Basic concepts'>Spreadsheeting I: Basic concepts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekgirls.com/2010/02/understanding-excel-references/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

