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

Setting Your Default Document Directory

Word allows you to specify where it should start looking for your documents. This setting can come in handy if you store ...

Discover More

Inserting the Edit Time

One of the things that Word keeps track of is how long, in minutes, you've been editing your current document. This ...

Discover More

Inserting Dashes between Letters and Numbers

If you need to add dashes between letters and numbers in a string, the work can quickly get tedious. This tip examines ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Copying a Hyperlink to Lots of Worksheets

Copying information from one place to another in a worksheet is easy. Copying hyperlinks may not seem that easy, but you ...

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

Jumping to a Specific Cell Using a Hyperlink

Excel allows you to define hyperlinks in your worksheets, and these can target specific cells on other worksheets. Here ...

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 one less than 9?

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.