Jump to content

Recommended Posts

Posted

Is there any way to use the autofill function to drag a formula from one cell to the next in a way that keeps one of the cells referenced in the formula constant?

 

In other words, if I have a bunch of cells that I want to subtract the value of cell A1 from, is there a way to use the autofill function so that I get:

 

B2-A1, C2-A1, D2-A1, etc. instead of B2-A1, C2-A2, D2-A3, etc when I try to drag the formula from one cell to another?

  • Replies 29
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

In the formula put a "$" before the value you want to remain static. E.g. if you want to keep the row static A$1, column static $A1, both static $A$1.

 

whoa!! geeks popping out of the woodwork. Like whack a mole!

Edited by chucK
Posted

Here's another way. Click in A1, then "insert","name" and "define". In the "names in the window" line type "k" and click OK. Back in A1, type the value that you want. Enter your data in column B, then in C1 type " = B1-k " (no quotes). Then drag the corner of B1 down.

 

I wish I knew a lot more about the program. It seems there's nothing it can't do.

Posted

afaik, ctrl-f3 calls the "name" definition window, or if the appropriate cell is active, you can type in a name in the left side of the formula bar. If you want to make a cell absolute, you should be able to just hit f4 when the cell is active. First f4, $a$1, second, $a1, third a$1 and fourth a1. That's off the top of my head.

 

You should name things the right name. Do not use something like average, or mean, or any other function name or single letter that might create confusion.

 

MatLab is good for some stuff, STATA is good for others, coding is good for others, and excel is great for a simple GUI that people who shouldn't be allowed near those other systems or the data. :)

 

 

Posted

New question

 

How do I format the top row (or rows) to be a header so that when I scroll down the top row stays put (so I can keep seeing the variable labels)?

Posted
btw, the rnd function is total crap. if you need a random number generator, don't use rnd()...

 

when has the RAND() function failed you? Excel 2003 and newer has a revised random number generator algorithm. Even the old algorithm was sufficient for probably 99.9%+ of all users.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...