Comments on: Excel copy/paste question
http://ask.metafilter.com/217339/Excel-copypaste-question/
Comments on Ask MetaFilter post Excel copy/paste questionFri, 08 Jun 2012 16:53:00 -0800Fri, 08 Jun 2012 16:57:14 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: Excel copy/paste question
http://ask.metafilter.com/217339/Excel-copypaste-question
Probably a simple Excel copy/paste issue... <br /><br /> See <a href="http://dl.dropbox.com/u/41592968/example.xls">example</a> workbook. I have a value in cell (E1, in this case), and a formula that references that cell. In the example, that formula in cell E3 is =D3/(1-(E1/100)). I want to copy and paste that formula into a bunch of other cells (a few in my example, but in practice it is hundreds). When I do this, the formula changes to =D3/(1-(<b>E2</b>/100)), =D3/(1-(<b>E3</b>/100)), =D3/(1-(<b>E4</b>/100)), and so on, instead of always staying at E1. This results in a bunch of #VALUE! errors, and depending on how the sheet is laid out, this stair-stepping can sometimes start referencing cells with data in them, producing wildly incorrect results.<br>
<br>
So what I'm wanting is when I copy E3 in my example sheet, and paste it into E4 through E8, I want the formula in E4 to say =D4/(1-(E1/100)), and E5 should say =D5/(1-(E1/100)), and E6 should say =D6/(1-(E1/100)), and so on.... the first part changing, but always referencing E1 for the latter part.<br>
<br>
Is there a way to make paste do this? Or a better/easier way of accomplishing the same end result? What I don't want is to have rows and rows of the same value (E1's value), just to make the pasting work.<br>
<br>
I swear I've done this before, and pretty simply, but for the life of me I can't remember how, and Excel's help is not turning up anything relevant.post:ask.metafilter.com,2012:site.217339Fri, 08 Jun 2012 16:53:00 -0800xedrikexcelspreadsheetsresolvedBy: brainmouse
http://ask.metafilter.com/217339/Excel-copypaste-question#3137612
You want, instead of E1, $E$1 -- the dollar signs tell it not to change when you fill down or whatever.comment:ask.metafilter.com,2012:site.217339-3137612Fri, 08 Jun 2012 16:57:14 -0800brainmouseBy: huckit
http://ask.metafilter.com/217339/Excel-copypaste-question#3137615
A dollar sign locks the reference. So it looks like you want cell E3 to be:<br>
=D3/(1-(E$1/100))comment:ask.metafilter.com,2012:site.217339-3137615Fri, 08 Jun 2012 16:58:36 -0800huckitBy: yuwtze
http://ask.metafilter.com/217339/Excel-copypaste-question#3137625
Yep, the huckitt has it. The dollar sign causes the row or column reference to remain fixed. <br>
<br>
So $E1 will always refer to column E, but the row will change if you copy it up or down, E$1 will always refer to row 1 but the column will change if you copy it left or right, and $E$1 will always refer to cell E1 no matter which way you copy it.comment:ask.metafilter.com,2012:site.217339-3137625Fri, 08 Jun 2012 17:06:51 -0800yuwtzeBy: jeather
http://ask.metafilter.com/217339/Excel-copypaste-question#3137628
The words you will care about for this in the future are absolute and relative reference. <br>
<br>
You can also name a cell (select the cell, type your name into the name box -- it's the one with the cell reference, so E1 in your case) and then use the name of the cell in your formula, so if you named the cell <i>xedrik</i>, your formula in E4 would be =D$(1-(xedrik/100)).<br>
<br>
Not terribly necessary to do for this, but really useful in other cases (particularly for ranges).comment:ask.metafilter.com,2012:site.217339-3137628Fri, 08 Jun 2012 17:09:12 -0800jeatherBy: xedrik
http://ask.metafilter.com/217339/Excel-copypaste-question#3137847
Fantastic. Great info from everyone, thanks so much!comment:ask.metafilter.com,2012:site.217339-3137847Fri, 08 Jun 2012 22:26:46 -0800xedrik