Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Finding Wayward Links.

Finding Wayward Links

Written by Allen Wyatt (last updated January 15, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

Many people are faced with the task of updating workbooks inherited from other people in their offices. In fact, you may be faced with such a challenge. For instance, let's say you inherit two workbooks which contain links to each other. You want to combine the two of them into a single workbook. When you try to do so, the links between the two are broken automatically by Excel.

There are several ways around this problem. The "manual" method is to use the Formula Auditing tools (see the group of the same name on the Formulas tab of the ribbon) to find the links in your original worksheets. You can then make note of the cells and make the changes after you move the worksheets to their final workbook.

Another method that may be more automatic is to insert blank worksheets in the target workbook and then copy the contents of the source worksheets and paste them in the new worksheets. In other words, don't right-click on the worksheet tab and use the Move or Copy option. Instead, use the tried-and-true Ctrl+C and Ctrl+V method of cut and paste. The result is that everything from the source worksheets is copied, without any alterations by Excel.

At this point you have two ways to proceed. You can use Ctrl+F to search for all instances of the exclamation mark. This should find all cells that contain links (since exclamation marks are used in links such as BookABC!SheetXYZ!A47). You can then edit the contents of the cell directly to remove the link. You can also use Ctrl+H to find the base part of each link and replace it with something else. For instance, you could find all instances of BookABC!SheetXYZ! in the previous example and replace it with either nothing or with a different worksheet name.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9782) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Finding Wayward Links.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Pulling Cell Names into VBA

Excel allows you to define names that can refer either to ranges of cells or to constant information, such as formulas. ...

Discover More

Copying Fill Color in a Table

You may spend some time getting the color in a portion of a table just right, only to be faced with the task of copying ...

Discover More

Uppercase and Lowercase AutoCorrect Entries

AutoCorrect can be a great tool to correct, automatically, the typos and wording you enter in a document. Sometimes, ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Inserting Hyperlinks

Connect your worksheets with other workbooks or with the world of the Internet. The ability to add hyperlinks makes this ...

Discover More

Don't Update Links to Other Programs

If you have links in your workbook to data in other workbooks, you may want to control whether Excel updates those links ...

Discover More

Changing Portions of Many Hyperlinks

If you need to modify the URL used in a large number of hyperlinks, you can do so by using a macro and a little ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 5?

2022-01-15 11:28:05

J. Woolley

Assuming BookABC is like BookABC.xlsx, I believe the correct format for an external link is [BookABC]SheetXYZ!A47, not BookABC!SheetXYZ!A47. In other words, brackets surround the workbook name; don't use an exclamation point to separate book and sheet.
My Excel Toolbox includes this dynamic array function to list external links:
=ListExLinks([SkipReference],[SkipHeader])
The result is similar to the Data > Queries & Connections > Edit Links dialog minus its Update column, but ListExLinks optionally adds a Reference column to identify cells that contain a formula referencing the link.
In older versions of Excel you can use it with the SpillArray function like this:
=SpillArray(ListExLinks([SkipReference],[SkipHeader]))
See https://sites.google.com/view/MyExcelToolbox/


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.