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

Creating an AutoShape

Ever wanted to create a simple drawing in your worksheet? Excel has made this simple. This tip explains how Excel uses ...

Discover More

Putting Character Codes to Work

If you know the character codes for some characters of interest, you can use those codes to do lots of tasks. This tip ...

Discover More

Sorting an Album List

Word allows you to easily sort the information you store in a document. If you want to sort information as groups of ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

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

Sorting ZIP Codes

Sorting ZIP Codes can be painless, provided all the codes are formatted the same. Here's how to do the sorting if you ...

Discover More

Sorting an Entire List

Need to sort all the data in a table? Here's the fastest and easiest way to do it.

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 two more than 7?

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.