Categories: Formulas Have you ever copied a formula to another tab in your workbook, and the result was not at all what you expected? Moved a formula to a new location and were surprised that it didn’t change? “Relative reference” means that the formula changes when you copy it to another cell. In other words, the reference is relative to the location of the formula. Try it. In cell A1, enter “20”; and in cell A2, enter “30”. In cell B1, enter the formula “=A1+1”.
References in Excel work just as you would expect in most situations; but to understand how to fix the problem formulas, you need to know a little bit about how Excel formula references work in the Excel environment.Relative References
Now copy the formula in cell B1:
- Click on cell B1.
- Click the Copy button. The selection rectangle surrounding B1 will change to moving dashes.
- Select cell B2.
- Click the Paste button.
Now examine the formula in B2, and you’ll find that, instead of “=A1+1”, it shows “=A2+1”. The reference to A1 has changed to refer to A2. This is how a relative reference behaves. Wherever you copy this formula, you’ll find that it operates similarly, always referring to the cell directly to the left of the formula.
Absolute References
Excel defaults to relative references because that’s what you’ll need more often than not, yet sometimes you want a formula always to point to the original source. You can do this with an “absolute reference,” which means that the formula does not change when you copy it to another cell.
In the example above, edit the formula in cell B1 by inserting dollar signs in front of the “A” and the “1” in the cell reference.
Now copy the formula in cell B1 down to B2 and examine the result. Instead of changing to “=A2+1”, it shows “=$A$1+1”, just as you typed it in B1. Wherever you copy a formula with an absolute reference, it will always to point to the original source.
Mixed References
Sometimes you need a formula always to refer to the original source column, but to change with each row. You can do this with a mixed reference—that is, one that is made up partially of relative references and partially of absolute references.
In the example above, change the formula in B1 to “=$A1+1”. Now copy it to a cell in a different column and a different row. Wherever you paste the formula, it always refers to column A, but the row changes to the current row.
Single-Column References
Excel provides an alternative method of referring to the cell in a specific column of the current row: by referring only to the column, leaving the row out of the reference. In the example above, change the formula in B1 to “=$A:$A+1” and copy this formula anywhere in the spreadsheet.
Because of the dollar signs, this formula refers to the value in column A, regardless of where you paste it; and because the row is not specified, it always refers to the current row.
Next Steps
Excel’s relative and absolute references provide you the ability to create powerful formulas that can be copied across multiple rows and columns, always returning the answers that you need. For a next step, try using range names, which act like absolute references but, by using your own custom names, make your formulas easier to read and maintain.
PRYOR+ 7-DAYS OF FREE TRAINING
Courses in Customer Service, Excel, HR, Leadership, OSHA and more. No credit card. No commitment. Individuals and teams.
- -- By Sumit Bansal
Watch Video – Copy and Paste Formulas in Excel without Changing Cell References
When you copy and paste formulas in Excel, it automatically adjusts the cell references.
For example, suppose I have the formula =A1+A2 in cell B1. When I copy the cell B1 and paste it in B2, the formula automatically becomes =A2+A3.
This happens as Excel automatically adjusts the references to make sure the rows and columns now refer to the adjusted rows and columns.
Note: This adjustment happens when you’re using relative references or mixed references. In the case of absolute references, the exact formula gets copied.
Copy and Paste Formulas in Excel without Changing Cell References
When using relative/mixed references in your formulas, you may – sometimes – want to copy and paste formulas in Excel without changing the cell references.
Simply put, you want to copy the exact formula from one set of cells to another.
In this tutorial, I will show you how you can do this using various ways:
- Manually Copy Pasting formulas.
- Using ‘Find and Replace’ technique.
- Using the Notepad.
Manually Copy Paste the Exact Formula
If you only have a handful of formulas that you want to copy and paste without changing the cell references, doing it manually would be more efficient.
To copy paste formulas manually:
- Select the cell from which you want to copy the formula.
- Go to the formula bar and copy the formula (or press F2 to get into the edit mode and then copy the formula).
- Select the destination cell and paste the formula.
Note that this method works only when you have a few cells from which you want to copy formulas.
If you have a lot, use the find and replace technique shown below.
Using Find and Replace
Here are the steps to copy formulas without changing the cell references:
This will convert the text back into the formula and you will get the result.
Note: If you use the # character as a part of your formula, you can use any other character in Replace with (such as ‘ZZZ’ or ‘ABC’).
Using Notepad to Copy Paste Formulas
If you have a range of cells where you have the formulas that you want to copy, you can use a Notepad to quickly copy and paste the formulas.
Here are the steps to copy formulas without changing the cell references:
- Go to Formulas –> Show Formulas. This will
show all the formulas in the
worksheet.
- Copy the cells that have the formulas that you want to copy.
- Open a notepad and paste the cell contents in the notepad.
- Copy the content on the notepad and paste in the cells where you want the exact formulas copied.
- Again go to Formulas –> Show formulas.
Note: Instead of Formulas –> Show formulas, you can also use the keyboard shortcut Control + ` (this is the same key that has the tilde sign).
You May Also Like the Following Tutorials:
- How to Convert Formulas to Values in Excel.
- Show Formulas in Excel Instead of the Values.
- How to Lock Formulas in Excel.
- Understanding Absolute, Relative, and Mixed Cell References in Excel.
- How to reference another sheet in Excel.
- How to Remove Cell Formatting in Excel
- How to Copy Excel Table to Word
- How to Copy and Paste Column in Excel?
- How to Multiply a Column by a Number in Excel
Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster
31 thoughts on “How to Copy and Paste Formulas in Excel without Changing Cell References”
Thank you for your help.
“Using Find and Replace” is very good option. it really works.Thank you very much
BROOOOOO! This was so smart and easy. Thanks my friend!
Excellent. That has made my work today so much easier!!
Thanks you so much! This Helped me a lot!!
Great! Thanks for the teaching! Loving the Notepad method
Amazing….such a nice n easy way to do it with replace..thanks a lot
Thanks alot. really helpful
Nice. Very well explained, thank you.
OH. MY. GOSH. I’m 10 hours of copying and pasting formulas but this has saved me at least a few more and countless future hours! Replacing = with #, pasting, then replacing # with =. It’s so simple… why didn’t I think of it. 🙂 Thank you!
Thanks a lot Simple & Eazy
# is best and easiest solution, thanks a lot!!! very clever!
thanks a lot
This saved me tonnes of work. Thanks so much!
For a copying and pasting a large array of formulas comprising both relative and absolute references to different cells, sheets and workbooks, the ‘find and replace’ has proven to be convoluted, time consuming and problematic. One has to ‘cherry pick’ through the array to ensure which of one’s relative cell references are not to be changed.
I migrated to excel from lotus-123; as a comparison using ‘123’ back then, one would simply ‘highlight rows (or columns)’, ‘copy’, ‘insert’ equal rows (or columns), then ‘paste’ – quick and most importantly no cherry picking errors.
Excel’s ‘insert copied cells’ command hides the ‘insert row or column’ command, therefore one cannot emulate the ‘123’ way. Even if one tries the ‘insert sheet rows (or columns)’ command then attempt to paste directly from ‘clipboard’, only text and not formulas are pasted.amazing!
thanks
saved me 20 min. of work…THIS IS AWESOME! – THE # = TRICK. GENIUS!
THANK U VERY MUCH!Agree! This is so simple, but very helpful. Thanks!
I have a cell reference issue I hope someone can help me with. I have a cell outside of a range that I always want to refer to a specific cell inside of the range, even when cells are inserted or deleted from the range. For example, cell A10 refers to C10 in the range B1:D200. If someone inserts cells B7:D13, I still want A10 to refer to C10, not C17. I think I need a helper column that has the text “C10” in cell E10. What is the Function that gets A10 to use the static text in E10 to refer to cell C10?
You can use the INDIRECT function. This should work =INDIRECT(“C10”). If you have text C10 in cell E10, just use =INDIRECT(E10)
-
Thanks. That is the Function I was looking for, but could not remember.
Even though INDIRECT is less complicated, can you tell me why CELL(“contents”,ADDRESS(10,3)) didn’t work?
Jim,
although these are functions I’ve never had cause to use, I think this might be because the $C$10 from the ADDRESS function is seen as text, not a cell reference
CELL(“contents”,”$C$10″) certainly does not work
regards,
t’other jim
although INDIRECT is the way to go with this, you could also use OFFSET:
=OFFSET(A10,,2) should work
both are volatile formulae (will recalculate on every worksheet change), which you might be able to avoid by using =INDEX(C:C,10) which would only fail your requirements if a whole column were inserted or deleted somewhere between A:A and C:Ctaking this a step further, =INDEX(1:1048576,10,3) will always refer to C10 – but it’s very clumsy-looking
-
I’ve made a step in the right direction. ADDRESS(10,3) results in $C$10 and it does not change when cell C10 is moved. CELL(“contents”,$C$10) gives me the proper result. However, CELL(“contents”,ADDRESS(10,3)) is not even accepted. What is wrong with the nested formula?
you should use “=CELL(“contents”, INDIRECT(ADDRESS(10,3,1,1,”Sheet1″),1))” as there are certain arguments to ADDRESS function which ADDRESS(10,3) is not capturing and those arguments are not optional.
I think Bansal’s point was that sometimes you can have a range of dynamic formulae that you want to replicate elsewhere
I’ve had this situation occur before but I never thought of using the Notepad method – thanks for that, another weapon in my arsenalAbsolute cell reference is the best. i.e. =A$1$ + B$1$ this cell is locked in that way.
I use absolute/Dynamic references for doing this
I love method 3. Thanks you.
Comments are closed.