Copy & Paste formula

bailbonds

Board Regular
Joined
Mar 19, 2010
Messages
70
Hi,

When I copy a cell with formula from one workbook to another, if the formula contains links to cells in other worksheet then the paste function copies the formula with those same original links.

i.e
Original formula in workbook "Maths1" =('test1'!a1/'test2'!a1).

I then want this exact formula in another workbook "Maths2" but it copies it as -

=(['Maths1.xls]test1'a1/['Maths1.xls]test2'a1)

How can I paste it so it just does --> =('test1'!a1/'test2'!a1)

Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
After you've copy pasted the formula, and it has the link to the old book...

Go to Edit - Links
Select the Maths1.xls and click Change Source
Browse to and select Maths2.xls


Hope that helps.
 
Upvote 0
You can't, but after pasting you can Edit|Links and change the Source to the target workbook (using the Browse button).
 
Upvote 0
Hi

If it's just one formula, double-click to edit the cell, select it with the mouse (like you're selecting text in Word) and then paste into the new spreadsheet.

If it's several formulas, copy and paste as normal and then use Find & Replace to get rid of the workbook references. In this case, replace ['Maths1.xls]test1' with 'test1' and repeat for test2. (In fact, looking at your post, you might need to include ! in your replacement text, but I guess that's a typo?)

cheers
dan
 
Upvote 0
Cheers all,

I've selected change source which opens up my drives where I can select the worksheet. When selected, however, it returns the mesaage

"Your formula contains an invalid external reference to a worksheet. Verify that the path, workbook, and range name or cell reference are correct, and try again."
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top