Many formulas in a worksheet don't occur in solitude—they often appear numerous times in a worksheet. For instance, you may copy a formula into a range of cells in a column, each formula operating on data on its own row.
When you copy formulas, Excel automatically adjusts any relative cell references in the formula so that they remain relative in the target cell. For instance, if a formula in cell C4 is =A4+B4, then copying the formula down to cell C5 results in the formula =A5+B5.
There may be times when you want to create an exact copy of a formula, without Excel adjusting the relative cell references during the copy process. Assuming you want to make an exact copy of the formula in cell C4 and copy it to C5, follow these steps:
During this paste process, the relative cell references are not updated—the formula in cell C5 is now an exact duplicate of the one in cell C4.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6159) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Exact Formula Copies.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
Given a range of cells, you may at some time want to calculate the sum of only the largest values in that range. Here is ...
Discover MoreWhen you need to pull information from a lot of different worksheets into a single worksheet, it can be baffling to ...
Discover MoreYou might wonder how you can calculate an IRR (internal rate of return) when the person repaying the loan pays different ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2019-09-26 00:50:42
Chuck F.
I have used this method for years for copying formulas while retaining the same values. 1. Select the cell you wish to copy. 2. Delete the equals sign. (This converts your numeric value to text.) 3. Copy and paste the contents of the selected cell to as many cells on the sheet as you wish. 4. ReInsert the previously deleted equals sign in all cells.
Hope you find this procedure useful.
2019-01-25 07:48:02
Willy Vanhaelen
Usefull hint, I didn't know that. But if you need it elsewhere in the sheet or in another workbbook the macro in my comment of 19 May 2018 is handy. See also Peter Atherton's comment just above it.
2019-01-24 11:54:42
Sandy Davis
If you want an exact copy of the cell in C4 to be placed in C5 (directly below), you can avoid all this work. Go to C5, and press Ctrl-' (Control and Apostrophe). Excel will copy down an exact copy without changing relative references.
2018-05-24 10:49:30
Peter Atherton
With regard to Allen's comments on Mac issues, I've just come across these links.
Here is a page listing known issues:
http://www.rondebruin.nl/mac/mac027.htm
Additional tips for cross-platform compatibility:
http://www.rondebruin.nl/mac.htm
Jim Gordon posted these on answers.microsoft.com
2018-05-24 10:00:46
MIchael Armstrong
I just select the cell with the formula, then select whatever portion of the formula I want to copy, then hit ESC. The to-be-copied string is now on the clipboard and I'm free to paste it anywhere I choose.
2018-05-23 10:18:40
Peter Atherton
Allen
Thanks for comment, Excel versions seem to becoming more separate. I seem to remember you mentioning TEXTJOIN and CELLTEXT functions (the names might be wrong), but these are both not included in xl2016. I just keep using my own UDFs to join cell text and to return the formula of a cell.
2018-05-22 09:28:05
Allen
I appreciate the comments provided by both Willy and Peter; they work great.
However, people may want to remember that NEITHER of their approaches will work in all versions of Excel on the Mac. In Office 365 on the Mac (Excel 2016 as of this writing), there is some funky problem where you cannot stuff information into the Clipboard, even using a Microsoft Forms 2.0 Library reference. When the solution provided by Peter is tried, it results in a run-time error of "ActiveX component can't create object."
These solutions work just fine on versions of Excel for Windows, but they don't work reliably on versions of Excel for the Mac.
-Allen
2018-05-22 08:56:46
Peter Atherton
Willy's macro works fine, but if you get an error trying to run it you need to make a reference to Forms. In the VB Editor choose Tools --> References --> Click checkbox against Microsoft Forms 2.0 Object Library and click OK. See the picture below. I guess that Willy did this so long ago he had forgotten it.
If you want to use this on many machines you might be quicker using the macro (link below) that does not need the the link as it is included in the code.
https://chandoo.org/forum/threads/copy-formula-from-excel-to-clipboard-in-vba-compatible-format.35997/
(see Figure 1 below)
Figure 1.
2018-05-19 06:27:59
Willy Vanhaelen
If you have to do this very often this macro can be helpfull:
Sub CopyExact()
If TypeName(Selection) <> "Range" Then Exit Sub
Dim X
Set X = New DataObject
X.SetText ActiveCell.Formula
X.PutInClipboard
End Sub
You can assign a shortcut to this macro or create a button on the QAT.
All you have to do is move the cell pointer to the cell whose formula you want to copy and run the macro. The formula text is now on the clipboard and you can paste it anywhere as a clone of the formula, preserving the original cell-references.
2018-05-18 18:19:42
Ruthie A. Ward
I suppose once you get the rhythym of the keystrokes, it might be faster to use the above method. I'll have to try it when I want to copy the entire formula in a cell without Excel automatically changing the references. Thanks!
2018-05-16 10:29:43
Cam Peneff
Mich easier to just copy and paste the cell. Rather than using the full handle.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments