Difficulty: Moderately Easy
Things You’ll Need:
Step1
In Excel, links are used to pull data from other locations either within the same spreadsheet or workbook or from a separate spreadsheet. Linked cells returns the exact value from a specified location as in the illustrated example below. The price of bananas shows as $2.47, but the cell actually contains a formula referencing the location of the original data: =’Fruit Prices!’B2
Excel is set up so that anytime you move a formula, by copying & pasting, the linked formula changes … this is called a relative reference. If you copy cell B2 and paste it three cells over to the right, the formula will move the referenced location three cells over to the right also. This is why sorting will change the location of the linked cell.
Step2
To keep formulas from changing as they are moved around, you have to anchor the cell reference by placing a dollar sign in front of both the column reference and the row reference. Instead of =’Fruit Prices!’B2, an anchored reference should look like =’Fruit Prices!’$B$2. No matter where the linked cell moves, the formula will reference that exact location … this is called an absolute reference.
Step3
Unfortunately there is not an simple and easy way to change relative references to absolute references. If a set of cell formulas share a row or column in common, you can use edit and replace to add dollar signs. See example below.
Comments
PauloItaliano said
on 6/5/2008 Hi, I can not agree with the statement above:
"If you cut cell B2 and paste it three cells over to the right, the formula will move the referenced location three cells over to the right also." – this is a complete nonsense. If you cut and paste the cell, the contained formula won't change. And it is not dependent on the reference type. This also does not explain why the sorting changes the contents of the sorted cells. Only if you copy the formula then Excel updates the cell content if it is not an absolute ($$) reference.
I had a problem with the sorting too. I have solved it using the INDIRECT function. This happend to be a very useful formula. The main idea behind is - a user can define absolute reference to other cell's row/column/both in a separate cell. I will explain its functioning on an example. Let’s say we have a scrap of spreadsheet (I will call it a ‘list’) containing two
Melody said
on 2/28/2008 Retta19 - this article's focus is on keeping a formula from changing when the cell containing the formula is relocated due to sorting, not cutting/copying/pasting. Excel always updates formulas to reflect new locations when you move data around by cutting/pasting. Maybe you could use a reference formula like LOOKUP or INDEX to find data regardless of specific cell location.
retta19 said
on 2/27/2008 this doesn't work for me. if i cut cell D33 and paste it into D25, the formula in my 2nd sheet changes from ='FT wk1'!$D$33 to ='FT wk1'!$D$25. this doesn't make any sense and it's driving me crazy!!! i don't want to have to cut/paste/delete. any suggestions?? (I am using the 2003 version)
revisitingnixon said
on 5/31/2007 Congrats on having this article be picked as the winner for the "Top Written Requested How to Article!" Check out the forums and see which other winners we have this week. Check it out at:
http://www.ehow.com/community/forums/topic_15235_top-most-requested-articles:-weekly-submission-winners.aspx
-Rich
Mamasan said
on 5/28/2007 Wow! This is an excellent tip! I, too, use Excel all the time, and I am very glad to see this helpful article. Thank you very much!