Excel for Microsoft 365 for Mac Excel 2021 for Mac Excel 2019 for Mac Excel 2016 for Mac More…Less
If your workbook contains a link to data in a workbook or other file that was moved to another location, you can fix the link by updating the path of that source file. If you can’t find or don’t have access to the document that you originally linked to, you can prevent Excel from trying to update the link by turning off automatic updates or removing the link.
Important:
linked object are not the same as hyperlinks. The following procedure will not fix broken hyperlinks. To learn more about hyperlinks, see Create or edit a hyperlink.
Fix a broken link
Caution: This action can’t be undone. You might want to save a backup copy of the workbook before you begin this procedure.
-
Open the workbook that contains the broken link.
-
On the Data tab, click Edit Links.
The Edit Links command is unavailable if your workbook doesn’t contain links.
-
In the Source file box, select the broken link that you want to fix.
Note: To fix multiple links, hold down , and then click each link.
-
Click Change Source.
-
Browse to the location of the file containing the linked data.
-
Select the new source file, and then click Change Source.
-
Click Close.
Remove a broken link
When you break a link, all formulas that refer to the source file are converted to their current value. For example, if the formula =SUM([Budget.xls]Annual!C10:C25) results in 45, the formula would be converted to 45 after the link is broken.
-
Open the workbook that contains the broken link.
-
On the Data tab, click Edit Links.
The Edit Links command is unavailable if your workbook doesn’t contain links.
-
In the Source file box, select the broken link that you want to delete.
Note: To remove multiple links, hold down , and then click each link.
-
Click Break Link.
-
Click Close.
See also
Import data from a CSV, HTML, or text file
Need more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.
While working on the Excel sheet, it is common to find some of the broken links in the data. However, it happens due to various unforeseen reasons and hence, it should be fixed ASAP. In this optimized post, you are going to learn how to find broken links in Excel and how to fix Excel broken links with less effort.
Ways to Find Broken Links in Excel |
Step-By-Step Solutions Guide |
Method 1: Using Find And Replace Method |
Open your Excel sheet >> press CTRL + F to open the Find and Replace dialog box…Complete Steps |
Method 2: Through Cell Relationship Diagram |
From the menu bar choose the Files > Options tab…Complete Steps |
Method 3: Using Excel VBA |
For using the code, you have to add a reference Microsoft XML V3…Complete Steps |
Method 4: Using Edit Links Command |
Open your Excel sheet >> go to the Data ribbon >> select Edit Links…Complete Steps |
To fix Excel corrupt files, we recommend this tool:
This software will prevent Excel workbook data such as BI data, financial reports & other analytical information from corruption and data loss. With this software you can rebuild corrupt Excel files and restore every single visual representation & dataset to its original, intact state in 3 easy steps:
- Download Excel File Repair Tool rated Excellent by Softpedia, Softonic & CNET.
- Select the corrupt Excel file (XLS, XLSX) & click Repair to initiate the repair process.
- Preview the repaired files and click Save File to save the files at desired location.
Those who don’t know what breaking links in Excel are or what causes this problem in detail, they can simply check out the below subtopics.
What Is Breaking Links In Excel?
Excel sheet cells are often linked with several different files that are having relevant data like formulas, codes, etc. for one or many reasons. When these source files are gets deleted, relocated, removed, or corrupted then the link related to a specific workbook cell will automatically break down.
After that these broken links can’t perform the targeted function anymore.
Method 1- Using Find And Replace Method
The easiest way to find Excel broken links is by using the Find and Replace method of Excel.
When the link is created with the source file each worksheet cell obtains a unique file extension. This extension signifies that the source file is linked with that respective cell.
So when the source file is relocated or deleted from the device then the worksheet starts troubling you with the broken link issue.
Follow the below-given steps to find broken links in Excel:
- First of all, open your Excel sheet which is showing broken link issues.
- After that press the Ctrl+F button from your keyboard. This will open the Find and Replace dialog box.
- In the opened dialog box of find and replace go to the Find what box. Here you have to enter your respective file extension which is linked with the cell.
- Now in the “within” box option, choose the option “Workbook”.
- After that in the box of Look in you have to choose the “Formulas” option.
- At last press the find all button.
After performing these steps, you will easily get Excel broken links.
Now you have to replace the problem having a link with the functional or correct new link.
Also read: 8 Tricks to Fix Excel Break Links Not Working
Method 2- Through Cell Relationship Diagram
Excel Cell relationship diagram is mainly used to elaborate links association of any particular worksheet cells with other cells, worksheets, or any workbook.
To find the broken links using the cell relationship diagram, you need to add a specific add-in within your Excel workbook. After then only the cell relationship diagram will show you the cell link-up detail.
Here are the steps to find broken links in Excel using the cell relationship diagram:
- From the menu bar choose the Files > Options tab.
- In the opened window of Excel options hit the Add-ins tab.
- Now from the drop-down choose the COM add-in and press the ok button. In the opened com Add-in dialog box choose the “Inquire”.
- After that, you will see that the tab of Inquire will get added in the Excel Ribbon.
- From the diagram group, you have to choose Cell Relationship.
- The next window of the cell relationship diagram will appear on the screen.
- Choose the options as per your desire from the opened dialog box and then press the OK button.
- Very soon you will see the diagram will start appearing on your Excel screen.
- You can zoom in to see the links between one cell to another cell, or one cell to another worksheet.
- Here you will see the entire cell relationship diagram having all the included links. In this diagram, you can also check the broken links present in your Excel workbook.
I found this method as the best way to find the cell having the broken Excel links.
Method 3- Using Excel VBA
Another method to find Excel broken links is by using the Excel VBA. In this method, we will use the massive code to track the broken link related to any Excel workbook cell.
You can also restore the return value of the accessing source links to find whether links are actually broken or not.
For using the code, you have to add a reference Microsoft XML V3:
Private Function CheckHyperlink(HypelinksCell As Range) As String
On Error GoTo ErrorHandler
Dim oHttp As New MSXML2.XMLHTTP30
oHttp.Open “HEAD”, HypelinksCell.Text, False
oHttp.send
CheckHyperlink = oHttp.Status & ” ” & oHttp.statusText
Exit Function
ErrorHandler:
CheckHyperlink = “Error: ” & Err.Description
End Function
Sub Test()
Debug.Print CheckHyperlink(Range(“A1”))
End Sub
Using the above-given code you can easily track the broken link detail of any worksheet cell.
Also Read: How To Fix Excel Error “We Can’t Update Some Of The Links”?
Method 4- Using Edit Links Command
Apart from the above three effective methods, there is another yet option to find broken links in Excel cells which is to use the edit links command.
Here is how you can do so:
- Open your Excel sheet that contains broken links >> go to the Data ribbon then select Edit Links. Now, a dialog box will seem on your screen.
- In a Source tab, you will find all workbooks associated with the cells in your current workbook.
- After this, press on Check Status which you can see on the right side.
- Here, if the status is showing ‘Source is open’, it simply means that a consistent workbook is active & open it right now.
- After that, click on the option “Change Sources.”
- Now, a File Browser gets opens up.
- Choose a source file of a consistent workbook >> press OK.
- At this time, click on the option Check Status again & now you will see no error under a Status bar which is in an Edit Links dialogbox.
What Causes Broken Links in Excel?
Important:
Always keep in mind that Linked objects are completely different from hyperlinks. So, the following procedure won’t help you to fix broken hyperlinks in Excel.
Main there are two possible reasons associated with broken links problems in Excel:
- The source folder is get deleted: After the deletion of the source folder, it’s impossible to track data that is linked with the cell.
- Files/folders shifted to another location: This Excel broken link issue also arises when the location of the linked file or folder is relocated.
How To Fix Broken Links In Excel?
Caution: This step can’t be reversed, so it will be better if you keep the backup copy of your Excel workbook before starting up the procedure.
- Open your Excel workbook having the broken link issue.
- Go to the Data tab and tap to the Edit Links option. If you won’t get the Edit Links option then it means your workbook doesn’t contain any links.
- Now from the Source file box, choose the broken link which you need to fix off.
- Hit the Change Source option.
- Search the location of the Excel file having the source of your linked data.
- Now choose the new source file and hit the Change Source option.
- Tap to the Close option.
How To Remove Broken Link In Excel?
When you break any link in Excel, all the formula referring to that particular source file automatically gets converted to its current value. Suppose, if you have used the formula =SUM([Budget.xls]Annual!C10:C25) and your result is 45 then your formula will get converted to 45 after breaking the link.
Follow the below steps for how to remove broken links in Excel:
- Open the Excel workbook showing the broken link.
- Now go to the Data tab, hit the Edit Links button.
- Within the Source file box, choose the broken link which you need to remove.
- Hit the Break Link button.
- Tap to the Close option.
Also Read: 3 Ways To Fix Excel Hyperlinks Not Working Problem
How to Repair Corrupt Excel File?
If somehow your Excel file gets corrupted then you can use the best & recommended Excel File Repair Tool. It has the ability to repair & recover corrupted, or inaccessible Excel files.
Even though it can solve different Excel-related issues & errors and restore entire data such as charts, worksheet properties cell comments, etc.
* Free version of the product only previews recoverable data.
So, once download this tool on your PC and follow the below steps to know how to repair corrupt Excel files easily.
Wrap Up:
If your Excel workbook is having a link with the data present in a workbook or any other file which is moved to another location. In that case, you can fix Excel broken link issue by updating the source file location in the linked cell.
But if in case you won’t find the source file then immediately stop Excel to update the link and permanently remove that link.
Priyanka is an entrepreneur & content marketing expert. She writes tech blogs and has expertise in MS Office, Excel, and other tech subjects. Her distinctive art of presenting tech information in the easy-to-understand language is very impressive. When not writing, she loves unplanned travels.
When we work with several excel files and use formula to get the work done, we intentionally or unintentionally create links between different files. Normal formula links can be easily broken by using break links option.
When we break links between two files, the values that were dynamically pulled by linked file become static. And this is what we want. But some times the break links option doesn’t work properly. For such cases, we have this article. This article can help you if you have problem breaking links in Excel file.
Break Links Between Files Effectively
Now if you are working with multiple files and your final file has links to other files that you don’t want to keep, just follow these steps:
Go to Data —> Edit Links. Here you will see all the links to the file. Select the link and click on the break links option.
This should break the link to selected file.
Now sometimes it happens that the break link button is dimmed out and does not work. And sometimes the break link option button is working but id does not break links. Let’s see each case and solve them.
1. Break links button is dimmed out
Sometimes when you click on the edit links menu for breaking the links between the excel files, the break links button gets dimmed out and becomes non functional. It happens when the sheet or the workbook is protected. You need to unprotect the sheet or the workbook.
Go to Review and click on the button unprotect sheet.
It is possible that the sheet is protected using a password. You will need to enter that password. Once the sheet is unprotected, the button for breaking the link will be functional.
This was an usual case. There are some unusual cases of breaking links that does not seem to work properly.
2. Breaking link dialog box pops up every time workbook is opened.
Now this is an rare case but annoying one. Sometimes we break the links to the source file but when reopen the file main file, it again shows the break link dialog box. The links are not actually removed.
It happens when the file has data validations linked to other files. Normal link breaking does work on these. In such cases do this.
1. First Duplicate the file and save it. Now start working on the duplicate file so that your main file is safe.
2. Check the data validation if they contain links to external files. Remove them.
2. Similarly check the conditional formatting formulas you have used. If they contain links to external files then remove them to. Make these conditional formatting local.
3. Check Chart series ranges. If they contain ranges from different workbook, remove them. Do check the headers. We often link the headers to a cell.
4. Check the named ranges used from different workbook. This is a rare one. But to be on the safe side check for the named ranges if they contain range from external file. Remove or amend them to suit you.
When you have checked all these. Try again to remove the links and save the duplicate file. I am sure that all the external links that you wanted to remove, will be removed from the main file
I hope this was helpful. If you have any doubts regarding this topic or any other Excel/VBA related topic, ask me in the comments section below. Till than keep excelling.
Related Articles:
How to use the REPT function in Excel | The Excel REPT function is a simple function, that prints a given text to given times. In this article, we will explore how REPT function works, how REPT functions can be used, and where REPT function is used best, what tricks can be done using this function
How to Find the Last ROW of data in Excel | To find the last row of data in an excel range we can use the REPT function and MATCH function together.
How to Remove leading and trailing spaces from text in Excel | The trailing spaces disturb your data set and it is necessary to remove any trailing or leading space from the text in excel. This formula removes all trailing spaces.
Popular Articles:
50 Excel Shortcuts to Increase Your Productivity | Get faster at your task. These 50 shortcuts will make you work even faster on Excel.
How to use Excel VLOOKUP Function| This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.
How to use the Excel COUNTIF Function| Count values with conditions using this amazing function. You don’t need to filter your data to count specific value. Countif function is essential to prepare your dashboard.
How to Use SUMIF Function in Excel | This is another dashboard essential function. This helps you sum up values on specific conditions.
When you copy cells or worksheets from another Excel workbook, links to other worksheets in many cases still persists. Excel offers a function to break links but this function only works with links within formulas. There are many other types of links as links within conditional formatting rules or data validation rules. The bad news: Those links can’t be cut easily. The good news: there are still ways to break these links.
Break ‘normal’ workbook links within formulas
Usually, “normal” workbook links within formulas can be cut easily with the ‘Edit Links’ function included in Excel (the numbers are corresponding with the picture on the right hand side):
- Go to the Data ribbon.
- If the “Edit Links” button is not greyed out it means that there is at least one active link to another data source (usually another workbook). Click on that button.
- Select all the data links you’d like to kill.
- Click on Break Link.
Please be careful: all cells referring to other workbooks within formulas will be changed to values. The underlying formulas will be removed.
If you want to avoid that the formulas are removed you might want to try another (more manual) approach: Using the replace function in Excel to replace the links with nothing:
- Find a cell relating to another workbook within a formula.
- Copy the link, shown with the square brackets inside the formula.
- Make sure that the exact same sheet as the source sheet also exists in your current workbook.
- Press Ctrl + h for opening the replace dialogue box.
- Paste the copied link and leave the Replace field blank.
- Click on Find Next.
Break links from named ranges
You can name cells in Excel. Instead of the cell reference as “A1” just the cell name will be shown. Breaking such links is easy:
- On the Formulas ribbon go to Name Manager and you can see all the names in your workbook.
- Please check in the reference column whether a cell name refers to another workbook. Just delete the entry if you want to cut that link.
Break Data Validation links
If you have data validation rules in your workbook – such as dropdown lists within cells – it’s possible that they relate to other workbooks. Unless you know exactly which cells have such rules you unfortunately have to search them.
Once you found cells having data validation rules referring to other workbooks follow these steps:
- Select the cells having data validation rules referring to other workbooks.
- Go to the Data ribbon.
- Next, click on Data Validation.
- The most common is the type List. If the source refers to other workbooks you should remove the path and link them to a place within your workbook. Alternatively remove the data validation rule completely by setting the “Allowed” type to “Any Value”.
Do you want to boost your productivity in Excel?
Get the Professor Excel ribbon!
Add more than 120 great features to Excel!
Break links of Conditional Formatting rules
Conditional Formatting rules can relate to other workbook as well. Especially when copying worksheets to other workbooks such links can be created. Finding them must be done for each worksheet separately:
- Click on Conditional Formatting in the center of the Home ribbon.
- Click on Manage Rules.
- In the drop down list on the top of the newly opened window select ‘This Sheet’. Now all the conditional formatting rules of the current worksheet will be shown.
- The easiest way is deleting the rules referring to other workbooks. Otherwise you have to change them manually and link them to your current workbook.
Break links of Pivot Tables
If the data source of Pivot Tables is in another workbook you can break this link too. Therefore, follow these steps:
- Find out if the data source of your Pivot Table is located on another workbook as described in this article.
- If the Pivot Table links to another workbook you have two options:
- Set another data source within your current workbook.
- Remove the Pivot functionality and copy and paste the complete Pivot Table as values.
Break all links with Professor Excel Tools
Because cutting links in Excel can be very troublesome and takes a lot of time, we’ve included a break link manager in our Excel add-in ‘Professor Excel Tools’. All the above mentioned steps are provided.
For breaking all the workbook links follow these steps:
- Go to the Professor Excel ribbon. and click on the ‘Break Link Manager’ within the ‘Workbook Tools’ group (the button with crossed out link on it). Professor Excel Tools now counts how many times each link type can be found within your Excel table.
- Select all the link types you’d like to break and click on start.
- Now, Professor Excel will break all the links. This procedure can take some time, especially if you have a lot of data in your workbook. The current status is shown in the status bar on the bottom of the screen.
Try it for free and see if it works for you.
This function is included in our Excel Add-In ‘Professor Excel Tools’
(No sign-up, download starts directly)
Henrik Schiffner is a freelance business consultant and software developer. He lives and works in Hamburg, Germany. Besides being an Excel enthusiast he loves photography and sports.
Download Article
Download Article
This wikiHow teaches you how to fix broken hyperlinks in your Excel workbook. A hyperlink is a clickable link that takes you to another location, which can be another cell, another workbook, or even a website. If clicking a hyperlink in your Excel file doesn’t take you to the correct location, there are several things you can try.
-
1
Open the workbook with the broken hyperlink(s). You can usually open the file in Excel by double-clicking its filename.
-
2
Right-click the hyperlink and select Edit Hyperlink. This displays all of the details about the hyperlink in a handy dialog box.[1]
Advertisement
-
3
Verify the link location. If, when you click a hyperlink, you see an error that says «Reference isn’t valid» (or any other error indicating that a file can’t be opened), it’s usually because the file, website, or cell you’re linking to was renamed or moved.[2]
Check the following:- First, check what type of document you’re linking to—if you’re linking to a website or another file, Existing File or Web Page should be selected.
- If you’re linking to a website, copy the URL from the «Address» bar at the bottom and paste it into a web browser. Can you access the site that way? If not, the broken link is due to an incorrect URL. If so, go to the end of the URL in the address bar in Excel and press the spacebar—this could correct the issue.
- If you’re linking to a particular file, make sure the file is in the correct location. If the file has been moved or renamed, the hyperlink will not work unless you either update the path in the hyperlink or place the file back in its original location.
- If you’re linking to another cell in the same file, Place in This Document should be highlighted in the left panel. Make sure the cell reference is on a sheet that exists.
- Click OK when you’re finished to save your changes.
-
4
Double-check the syntax if you’re using the HYPERLINK function. If you inserted a hyperlink into your workbook using a formula that includes the HYPERLINK function, the syntax may be incorrect. Make sure the syntax of your formula matches the following format:
- Linking to a sheet in the same workbook: =HYPERLINK("#Sheet2!A1", "Sheet2")
- Clicking the cell containing this formula would take you cell A1 on the sheet called Sheet2.
- If the worksheet’s name includes a non-alphanumerical character or a space, you must surround the worksheet name with single quote marks.[3]
=HYPERLINK("#'Worksheet Name'!A1", "Worksheet Name"). - If you’re linking to a particular cell on the same sheet, the formula should look something like this: =HYPERLINK("#A1", "Go to cell A1").
- If the worksheet’s name includes a non-alphanumerical character or a space, you must surround the worksheet name with single quote marks.[3]
- Linking to a different workbook: =HYPERLINK("D:wikikHowBook2.xlsx", "Book2")
- Clicking this cell would open the file Book2.xlsx located at D:wikiHow.
- To go to a particular sheet in the remote workbook, you’d use =HYPERLINK("[D:wikiHowBook2.xlsx]Sheet2!A1", "Book2") (note the square brackets).
- If the remote workbook is on a network drive, use =HYPERLINK("[\SERVERNAMEUSERNAMEBook2.xlsx]Sheet2!A1", "Book2")
- Linking to a website: =HYPERLINK("https://www.wikiHow.com","Go to wikiHow.com")
Advertisement
-
1
Open the workbook with the broken hyperlink(s). You can usually open the file in Excel by double-clicking its filename.
- Use this method if you’ve already checked your hyperlinks for accuracy and the links are still not working. Excel checks your hyperlinks when you save the file—if the hyperlinks are not working at the moment you save (for example, if you save when you’re not connected to the internet), it may disable those links.
-
2
Click the File menu. It’s at the top-left corner.
-
3
Click Options on the menu. Your Excel options will appear.
-
4
Click the Advanced tab. It’s in the left panel.[4]
-
5
Scroll down and click the Web Options button. It’s in the «General» section.
-
6
Click the Files tab. It’s the third tab at the top of the window.
-
7
Remove the checkmark from «Update links on save.» It’s in the top section.
-
8
Click OK until you’ve exited all Options windows. Now that you’ve disabled this option, Excel will no longer check hyperlinks when you save the file.
Advertisement
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Thanks for submitting a tip for review!
References
About This Article
Article SummaryX
1. Right-click the hyperlink and select Edit Hyperlink.
2. Verify that the link locations are up-to-date.
3. Double-check the syntax if you’re using the HYPERLINK function.
4. Disable «Update Links on Save» in Excel.
Did this summary help you?
Thanks to all authors for creating a page that has been read 16,967 times.