Jun 25 2020 11:50 AM
how do i copy a formula from 1 spreadsheet to another, and keep the formulas from referencing the original spreadsheet? I want the formulas to work in my new spreadsheet, instead of referencing the spreadsheet i copied them from.
when i copy =SUM(Jan!U44) it turns into =SUM('[MORSUM 2017.xls]Jan'!U44)
excel is adding the "morsum2017.xls" which is the source file name.
Jun 25 2020 12:26 PM
Jun 25 2020 12:43 PM
I was hoping not to copy and edit all 350 formulas.
Jun 25 2020 12:59 PM
Not sure exactly what your situation is, but in reading your last plea--I was hoping not to copy and edit all 350 formulas--it occurred to me that you might not be aware that you can simply copy the entire sheet either within the same workbook or to an entirely new workbook.
Just right click on the tab at the bottom and select "Move or Copy" and proceed to either, uh, move or copy, based on how you fill out the dialog box. That will keep the original formulas all with their internal reference points. It's a way (in effect) to have one sheet serve as a template for others designed to do the same thing.
Jun 25 2020 03:03 PM
Jun 26 2020 03:43 AM
Solution@bob_sipes
If I understood well your question, to resolve that, I usualy go to Data / Queries & Connections / Edit Links => Select the original spreadsheet ([MORSUM 2017.xls], on your exemple) => hit "Change Source" bottom => select the new spreadsheet.
Usualy It works.
But you must be carefully, in one case: If you have another cells in the same spreadsheet, with formulas (that you don't want to change) with references to the original spreadsheet, you will have a problem, because the formulas also going to be changed.
Jun 26 2020 04:29 AM
Brilliant, that did exactly what i wanted and needed. Thank you for sharing your time and knowledge.
Jun 26 2020 12:23 PM
Feb 28 2024 09:45 AM
@inCentea-Miguel_Lopes
Didn't work for me. When I go into Queries & Connections, there are none, yet it still wants to reference the original file. Very frustrating! I too don't want to copy/paste dozens of unique formulas one at a time from each cell. It would take all day. The only way I found so far that works 100% is to take several hours clicking on each cell one at a time and manually remove the references. Annoying a hell and a tremendous waste of time.
May 09 2024 07:36 AM
May 10 2024 04:09 AM
If I understood well your question, to resolve that, I added to n8jones post, a small detail, if it doesn't work:
Using the initial example: SUM(Jan!U44) it becomes =SUM('[MORSUM 2017.xls]Jan'!U44)
try on the "Find and Replace" function:
FIND WHAT: '[MORSUM 2017.xls]Jan'
REPLACE WITH: Jan
Select REPLACE ALL
NOTE: when you have a external referencing, Excel formula needs '', that are not necessary on internal referencing.
May 10 2024 04:21 AM
I wanted to clarify one point: when you work on the new worksheet, on the same sheet where you have the cells, the Replace function is different:
FIND WHAT: '[MORSUM 2017.xls]Jan'!
REPLACE WITH:
NOTE: on FIND WHAT you need to added !
and on REPLACE WHITH you don't put anything on (maintain blank)
Jun 26 2020 03:43 AM
Solution@bob_sipes
If I understood well your question, to resolve that, I usualy go to Data / Queries & Connections / Edit Links => Select the original spreadsheet ([MORSUM 2017.xls], on your exemple) => hit "Change Source" bottom => select the new spreadsheet.
Usualy It works.
But you must be carefully, in one case: If you have another cells in the same spreadsheet, with formulas (that you don't want to change) with references to the original spreadsheet, you will have a problem, because the formulas also going to be changed.