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

Deleting Menu Items

Excel allows you to customize your menus so that they contain the commands you want on them. If you later want to delete ...

Discover More

Stopping Fractions from Reducing

Enter a fraction into Excel, and you may be surprised that the program reduces the faction to its simplest form. If you ...

Discover More

Changing Orientations within a Single Printout

Excel allows you to print out information in either portrait or landscape orientation, but what if you need both types of ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Sorting Letters and Numbers

Sorting information in a worksheet can be confusing when Excel applies sorting rules of which you are unaware. This is ...

Discover More

Automatically Sorting as You Enter Information

When entering information into a worksheet, you may want it to always be in a correctly sorted order. Excel allows you to ...

Discover More

Sorting by Colors

Need to sort your data based on the color of the cell or the color of the text within the cell? Excel makes it easy to do ...

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 8 - 5?

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.