Removing Phantom Excel Links
If you have ever opened an Excel file and been prompted to update links to another file, yet you are certain that there are no links to any other files, your file may contain phantom links.
To remove Phantom Links from a workbook, first check to make sure that there are not any non-phantom links in the file.
How to check for non-phantom links
Check for Real Links in your formulas
- Go to the Edit menu and select the Links option towards the bottom (if this option is grayed out, then there are no real formula links)
- Run a search (Ctrl + F) for the file that appears in the Edit Links menu
- Search all tabs simultaneously by pressing Shift + Ctrl + Page Down and then running the search
- You can use the * wildcard character in your search
- If you find a real link, change the file reference or delete the link
Check for Defined Name Links
- Go to the Insert Name Define menu
- Select each Name to see what is in the “Refers To” box
- If any of these names is referring to cells in another file, change or delete the Name
Check for Chart Links
- If there are any charts in the file, the charts may be linked to cells in another Excel file
- Check the data ranges and x-axis labels for each chart to ensure that they are not referencing data in another file
- If any of the charts is referring to cells in another file, change or delete the data references
Check for Object Links
- Links can exist in Object such as text boxes, auto shapes or drawing objects
- On each worksheet, press the F5 key, click the “Special” button and select “Objects”
- Delete these objects and then save the file
- Close and reopen the file to see if this has solved the problem (you may want to make a copy of your file before performing this step)
Check for Data Validation Links
- Links can exist as part of Data Validation criteria
- The easiest test is to remove all Validation and see if the link remains (you may want to make a copy of your file before performing this step)
- Copy any blank, unformatted cell
- Select all cells with Validation; press the F5 key, click the “Special” button and select “Data validation”
- Select Paste Special and then select Validation
- Save, close and reopen the file to see if this has solved the problem
- Repeat steps above for the remaining worksheets in the file
Check for Conditional Formatting Links
- Go to the Conditional Formatting Rules Manager
- Select “This Worksheet” from the drop down
- Check each Rule to ensure they are referencing data in an external file
- Amend or Delete the Rule to remove the Link
- Repeat steps above for the remaining worksheets in the file
Check for Links on Hidden Worksheets
- If you or anyone else has hidden any worksheets in the file, there may be links on these hidden sheets
- Check for hidden worksheets by going to the Format Sheet Unhide menu
- If this option is greyed out, the file probably doesn’t contain any hidden sheets; however, be sure to also check for Very Hidden Sheets with the Visual Basic Editor
- If there are hidden worksheets, unhide them and complete all of the steps above on the sheets that were hidden
If you perform the steps on the previous page and there are no Non-Phantom links, then the workbook probably contains Phantom Links.
Remove phantom links
Refer the Link to itself
Go to the Edit Links menu and select the unwanted link
Choose the “Change Source” button and refer the link to itself
This doesn’t usually work as Excel will probably tell you that there is an error in a formula, but it’s worth a try
Create a Real Link between the two files
- If the previous step doesn’t work, open the file containing the Phantom Link AND the file that is being referred to (if you can’t open the file that is being referred to, you will need to skip this step)
- Create a real link between the problem file and the file that is referred to
- Save both files
- Go to the file with the Phantom Links, select Edit Links, click the “Change Source” button and try to refer all the links to the file in which you just created the real link
- Save the files again and then delete the real link that you just created
- Save the file with the Phantom Links one last time
- This should remove the Phantom Links, but if it doesn’t you will need to follow the last step below
Delete Sections of the file with the Phantom Links
- The following step requires that you delete sections of the file with Phantom links, so you should create a copy of the file with Phantom links before proceeding with this step
- Open the copy of the file with Phantom Links and delete the first tab
- Save and then reopen the file
- If you are not prompted to update links, then you have found the tab containing the phantom link
- If you are still prompted to update links when you reopen the file, repeat the step above for each tab (you will need to add a new blank worksheet before you can delete the final tab in the file)
- Once you identify which tab contains the Phantom links, return to the original file with the Phantom links and create another copy of the file
- Open this new copy of the file and go to the worksheet that contains the Phantom Links (as identified in the step above)
- Select a section of approximately 100 cells and then select Edit Clear All
- Save the file, close it and then reopen the file
- If you are not prompted to updated links, then you have successfully identified the region of cells that contained the Phantom links
- If you are still prompted to update links, continue this step until you successfully remove a block of cells containing the Phantom Links
- Now go back to the original file with the Phantom links, clear the section of the worksheet containing the Phantom Links, and recreate the formulas
If you enjoyed reading this and want to improve your skills further, then try our Excel Best Practices Self-Study Course. You can also browse our other range of Self-Study Courses here.
Training The Street also offers a more advanced In-Person/Virtual Public Course called, Applied Excel. Where you can gain the skills needed for parsing, analyzing, and presenting information from large data sets.