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

Vertical Lines in Word

Lines can help to organize the data on a page or make certain points clearer. Word provides several different ways you ...

Discover More

Picking Worksheets Quickly

If your workbook contains a multitude of worksheets, the worksheet tabs at the bottom of the program window start to lose ...

Discover More

Inserting the Total Number of Characters in Your Document

One of the things that Word keeps track of regarding your document is the number of characters it contains. Using the ...

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)

Fixing Odd Sorting Behavior

When you sort data that contains both numbers and text, you may not get exactly the result that you expected. To know ...

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

Sorting Dates by Month

Sorting by dates is easy, and you end up with a list that is in chronological order. However, things become a bit more ...

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 - 0?

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.