Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Cannot Link to File: Fix Broken Links

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel cannot link to a file when the source workbook has been moved, renamed, deleted, or is stored on a drive or network path that Excel cannot reach. To fix it, open the destination workbook, go to Data > Edit Links, and either update the source path or break the link and paste the values. The steps below walk through each fix in order, from the quickest check to the more thorough ones.

What You'll Need

  • The workbook that shows the link error, open in Excel for Windows or Mac (the menus are similar; labels can differ slightly by version and platform).
  • The source file, or at least its current location, if you want to keep the link working.
  • Permission to read the folder or network share where the source file lives.
  • For links to another computer or a shared drive, a working network connection and the correct sign-in credentials.

Step-by-Step

  1. Identify which links are broken. Open the workbook that contains the link. Go to Data > Edit Links (on Mac it may appear under Data > Edit Links as well). The dialog lists every external source. A source marked with an error or showing an old path is the one causing the problem. If the dialog is greyed out, the workbook has no external links, and the message you saw may come from a different feature such as a query or a macro.
  2. Check the source file still exists. Copy the path shown in the Edit Links dialog and paste it into File Explorer (Windows) or Finder (Mac). If the file is missing, restore it from the Recycle Bin, your backup, or the original location. If it was renamed, note the new name; you will point Excel to it in the next step.
  3. Point Excel to the new location. In the Edit Links dialog, select the broken source and choose Change Source. Browse to the folder where the file now sits, select it, and confirm. Excel updates the path for every formula that referenced that file. If the source is on a network share, use the full network path rather than a mapped drive letter, because mapped letters can change between sessions.
  4. Test the link. Close the Edit Links dialog and press F9 to recalculate. Cells that previously showed #REF!, #VALUE!, or a "cannot link" message should now show values. If they still fail, open the source workbook directly to confirm it opens without a password prompt or repair message.
  5. Break the link if you no longer need live updates. In the Edit Links dialog, select the source and choose Break Link. Excel replaces formulas that pointed to the external file with the last calculated values. This is the right choice when the source file is gone for good or when you only need a snapshot. Save the workbook afterwards; breaking links cannot be undone with Ctrl+Z once the file is saved.
  6. Repair a link that points to a file on a drive that is offline. If the source lives on a USB drive, a network share, or cloud storage that is not currently connected, reconnect the drive or sign in to the cloud service, then reopen the workbook. Excel cannot read a link while the underlying location is unavailable.
  7. Check Trust Center settings for blocked links. Go to File > Options > Trust Center > Trust Center Settings > External Content. If external links are set to prompt or block, Excel may refuse to refresh them. Change the setting only if you trust the source workbook; enabling external content from unknown files is a security risk.
  8. Update the link manually. With the source file open at the same time, return to the destination workbook and choose Update Values in the Edit Links dialog. This forces Excel to re-read the source. Close the source file afterwards to avoid file-lock conflicts.

Common Mistakes

  • Using a mapped drive letter instead of the full network path. A link to Z:\Reports\data.xlsx breaks when the drive maps differently on another computer. Use the UNC path (the form that starts with two backslashes and the server name) so the link survives.
  • Breaking links before saving a copy. Breaking a link replaces formulas with static values. Keep a backup of the workbook first if you might need the formulas again.
  • Assuming the error is a formula problem. A #REF! error can come from a deleted cell, not a missing file. Check Edit Links before rewriting formulas.
  • Ignoring password-protected sources. If the source workbook requires a password, Excel cannot refresh the link until you open the source and enter it. Store the password somewhere safe rather than embedding it in the link.
  • Moving the source file into a synced cloud folder without updating the link. Cloud sync can change the local path. Re-point the link with Change Source after any move.

Tips

  • Keep linked workbooks in the same folder when possible. Relative paths survive folder moves better than absolute paths.
  • Use Data > Edit Links > Startup Prompt to control whether Excel asks about updating links each time the file opens. Choosing not to prompt can hide broken links until you notice stale numbers.
  • If you only need the numbers, copy the range and use Paste Special > Values instead of linking. This removes the dependency entirely.
  • Name your source files without spaces or special characters. Some network and cloud setups handle simple names more reliably.
  • When sharing a workbook, tell recipients whether links are live or already broken. A broken link on their machine may simply mean they do not have access to the source folder.

Troubleshooting

If Edit Links shows the correct path but values still will not update, work through these checks in order.

  1. Close and reopen both workbooks. A file lock from another user or a previous crash can block the link. Restart Excel entirely, not just the workbook.
  2. Check permissions. Open the source folder in File Explorer or Finder and confirm you can read the file. On a network share, ask the administrator whether your account has access.
  3. Look for a repaired or renamed file. If Excel recovered the source after a crash, it may have saved a copy with a different name. Use Change Source to point to the recovered file.
  4. Test with a simple link. Create a new workbook, link one cell to the source, and see whether it updates. If the simple link works, the problem is in the original workbook's formulas or structure; if it fails, the problem is the path or permissions.
  5. Check for blocked content. A yellow message bar about protected view or external content can stop links from refreshing. Review the message and enable content only if you trust the file.
  6. Recreate the link as a last resort. Delete the broken formula, then re-enter it by typing = and clicking the cell in the open source workbook. This rebuilds the reference cleanly.

If none of these work, the source file may be corrupted. Open it on its own and let Excel repair it, or restore an earlier version from backup. Do not delete the destination workbook until you have a working copy.

Frequently Asked Questions

Why does Excel say it cannot link to a file that I can open manually?

Excel resolves links by path, not by whether you can open the file. If the path in the formula differs from the file's current location, even slightly, the link fails. Use Edit Links > Change Source to correct the path.

Can I stop Excel from asking about links every time I open a workbook?

Yes. In the Edit Links dialog, use the Startup Prompt option to choose whether Excel asks, updates automatically, or does nothing. Choose carefully: suppressing the prompt can leave old values in place without warning.

What happens to my data if I break a link?

Formulas that pointed to the external file are replaced by their last calculated values. The numbers remain, but they no longer update. Save a backup first if you may need the formulas later.

Do links work the same on Excel for Mac and Excel for Windows?

The Edit Links feature exists on both, but menu labels and dialog layouts can differ slightly by version. The underlying idea, pointing Excel at the source path, is the same.

Why do links break when I move a workbook to another computer?

Absolute paths include drive letters or user folders that may not exist on the other machine. Keep source and destination in the same folder, or use a shared network location both computers can reach.

Can a link point to a file on cloud storage?

It can, but only while the cloud folder is synced and available locally. If the file is online-only and not downloaded, Excel may not be able to read it. Set the file to always keep on the device, or download it before refreshing links.