How to copy formulas that contain references in Excel
In daily work, you are often exposed to referenced formulas, but for the convenience of work you want to use the formula or want to copy the formula, which makes some people confused. The following article details how to copy formulas that contain references in excel.
1. Copy formulas that contain relative references or formulas that contain both absolute and relative references
With formulas containing relative references, there are 2 ways to copy:
1.1. Copy the reference formula changes to the new address
- First you should understand what is relative reference. Relative references are references that do not have a fixed address or are simply stated in column and row addresses that do not contain the $ sign. When copying the relative reference formula to another position => the column and row positions change.
- Formulas that contain both absolute and relative references usually have a fixed reference, which doesn't change when copying the formula.
For example: Copy a formula in a column into money.
After entering the formula for cell F6, you want to Copy the formula for other cells in column F6 with the following ways:
Option 1: Click on cell F6 -> press Ctrl + C -> Highlight from cells E7 to E12 -> Press Ctrl + V => Copied the formula for the remaining cells. In this case, right-click and choose Copy and Paste .
Method 2: Highlight the whole formula input box ( F6 ) to cell F12, press Ctrl + D => Copy the formula to all the other cells.
Method 3: Select the first formula input cell, where cell F6 -> moves down the lower right corner of the cell when the plus sign appears and drag to the remaining cells or double click => So Copy job formula for the remaining cells.
All 3 ways give the same result:
With formulas that contain both absolute and relative references do the same.
1.2. Copy the reference formula as it is when moving the new position
In case you want to copy the relative reference formula but keep the formula you can do the following:
- Method 1: Apply when you want to copy to 1 data box.
Click on the cell containing the relative reference formula -> move the formula bar -> highlight the formula copy -> select Ctrl + C (Please do not copy the cell containing the reference formula) -> move to the cell you need paste the formula press Ctrl + V .
Result: The formula remains the same when copied to the cell below:
Note: In this way, besides using the key combination Ctrl + C , Ctrl + V, you can use the right mouse to select Copy and Paste .
Method 2: Copy the unchanged formula for multiple data cells.
Step 1: Select the formula block you want to copy.
Step 2: Press Ctrl + H -> the dialog box appears, select the Replace tab in the Find What section, enter the "=" sign, the Replace entry enter any characters not in the example formula here, enter & - > Click Replace All .
Step 3: After selecting Replace All , the = sign in the formula is replaced with the & symbol:
Step 4: Press Ctrl + C (or right-click and select Copy ) -> Move the mouse to the position where you need to paste the formula -> press Ctrl + V (or right-click and select Paste ). Result:
Step 5: Press the key combination Ctrl + H -> in the Replace tab, replace the & sign with the = sign. In the Find What section, enter the & symbol, the Replace item, enter =, and then click Replace All .
Result:
So you copied the formula containing relative references but didn't change the formula.
The same goes for formulas that contain both absolute references and relative references you do the same.
2. Copy the formula containing absolute references
When working with formulas that contain absolute references, please note that because they are absolute references, the row and column addresses do not change so when making Copy for other references the value is incorrect. For example, setting the value in cell F6 converts the relative address to an absolute address by pressing F4 => result:
In case you use the Copy operation reference formula with relative results:
Due to the absolute address, when copying the formula does not change.
So when you copy a formula that contains absolute references, you do the following:
Option 1: Click on cell F6 -> press Ctrl + C -> Highlight from cells E7 to E12 -> Press Ctrl + V => Copied the formula for the remaining cells. In this case, right-click and choose Copy and Paste .
Method 2: Highlight the whole formula input box ( F6 ) to F12, press Ctrl + D => Copy the formula to all the other cells.
Method 3: Select the first formula input cell, where cell F6 -> moves down the lower right corner of the cell when the plus sign appears and drag to the remaining cells or double click => So Copy job formula for the remaining cells.
All 3 ways produce the same results:
Above is how to copy the reference formula. Depending on the reference you choose the most optimal copy.
Good luck!
You should read it
- Complete guide to Excel 2016 (Part 15): Relative and absolute reference cells
- How to automatically calculate and copy formulas in Excel
- How to hide formulas in Excel
- MS Excel - Lesson 5: Excel formulas and functions
- Guidelines for importing Chemistry formulas in Excel
- How to create an Excel formula in Notepad ++
- How to color formula cells in Excel automatically
- Instructions for copying formulas and data between Excel tables
May be interested
- Instructions for copying formulas and data between Excel tablesoften you still copy and paste normally with the key combination ctrl + c and ctrl + v for each data. but if you need to copy data or formulas to different cells and not adjacent to each other, this will take a lot of time ...
- How to copy formulas and data between Excel tables quicklycopying formulas and data between excel tables helps you work more efficiently without having to re-enter them manually. depending on your needs, you can use keyboard shortcuts or advanced features to ensure accurate copying. let's explore effective ways to do it in this article.
- How to delete quick recipe on Excelin addition to locking excel formulas, we can delete formulas and retain results, or delete all cells with formulas and results.
- How to lock formulas in Excel - Protect excel formulaswhen sharing excel files, if you don't want others to edit the formulas or view the formulas, you can lock the formulas.
- How to create References - A list of references to standard references in Wordhow to create references - a list of references to standard references in word. for every topic, dissertation or scientific research report, a lot of references and cited reports are required. however by manually citing the document after doing so
- How to display formulas and print formulas in Exceldisplay formulas and print formulas in excel so you can see the formula directly in the data cell, not see the results anymore. to be able to display and print the formula so please follow the instructions below of tipsmake.com.
- A complete guide to Excel 2016 (Part 14): Create complex formulasafter learning about the recipe in excel 2016, tipsmake.com continues to guide you how to create more complex formulas. invite you to consult!
- How to lock formulas in Excelwhen sharing an excel file, you don't want other people to edit the formulas, see the formulas, then lock the formulas again.
- Instructions and examples of array formulas Array Formulas in Excelthe following article details array formulas and practical examples in excel to help you better understand and apply them in your work most effectively.
- Lock cells with formulas in Excel - Lock and protect cells containing formulas in Excelwhen sharing excel files with others, you don't want to be edited by other formulas. the following article will help you know how to lock formulas in excel.