Incorrect Links after Sorting Hyperlinks

Written by Allen Wyatt (last updated February 5, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


3

Susan has a worksheet with cells hyperlinked to corresponding PDF documents. The hyperlinks work fine until she attempts to perform any type of sorting on the data in the worksheet. After sorting, the hyperlinks are linked to incorrect documents.

This is, apparently, a problem with Excel under some circumstances. According to Microsoft, this occurs if you copy and paste cells containing hyperlinks and then sort the pasted cells. You can find out a bit more about this problem at the following Knowledge Base page:

https://support.microsoft.com/kb/214328

The problem is that the only solution noted by Microsoft is to manually correct the hyperlinks after doing the sort that created the messed-up links. In other words, there isn't a real solution.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13063) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

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

Understanding and Creating Lists

There are two types of common lists you can use in a document: bulleted lists and numbered lists. This tip explains the ...

Discover More

Splitting Cells by Case

Excel provides several different ways that you can split apart the contents of a cell. One way it doesn't provide is to ...

Discover More

Restoring a Keyboard Shortcut

Word uses keyboard shortcuts for all sorts of tasks. Sometimes you may create a shortcut that messes up one of the other ...

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)

Storing Sorting Criteria

Need to do the same sorting operation over and over again? Excel doesn't provide a way to save your sorting criteria, but ...

Discover More

Sorting Data on Protected Worksheets

Protect a worksheet and you limit exactly what can be done with the data in the worksheet. One of the things that could ...

Discover More

Can't Sort Imported Data

Import information from an external database, and you'll no doubt want to use Excel's simple tools to manipulate that ...

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 1 + 1?

2020-10-29 03:22:59

J Mowatt

I was having this issue where a some of the hyperlinks in a column would be correct until I filtered from another column. Then there were clumps of the links that simply duplicated 1 specific link. When I sorted back again the links were all correct again.
I fixed it by copying the entire column that contained the links and pasting to another blank column. Then I deleted all the data from the original column and saved the file. After that I cust and pasted the column that I moved, back into its original place. When I filtered again the links remained intact. At least it saved having to go in and manually re-enter all of them.


2020-05-18 11:18:26

J. Woolley

A similar bug related to Excel hyperlinks is described in this PDF available on Google Drive:
https://drive.google.com/open?id=1gbzmXEOKBZ0c1W_NjdxWBHsfiQi5ImlP

You might also be interested in the SuperLink function, a superior substitute for Excel's HYPERLINK function, which is described in this PDF available on Google Drive:
https://drive.google.com/open?id=1vAXFMwX43N7b-6fEhdY5E0PZRmIQ9zlA


2020-05-16 17:50:50

Michael

The only solution I have seen for Excel's poor handling of hyperlinks is to use the =HYPERLINK function in a cell or table. They are just as easy to maintain as regular hyperlinks and always sort and resort correctly.


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.