Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. 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: Special Characters In Hyperlinks.
by Allen Wyatt
(last updated March 17, 2018)
You probably already know that Excel allows you to create hyperlinks to other Excel workbooks. If you create a workbook that uses the pound sign (#) in the file name, Excel has no problem with that. It will have a problem, however, if you try to create a hyperlink that references a workbook with a pound sign in the file name.
The reason for this is because the pound sign is a valid character for a file name, but it is not a valid character for use in a hyperlink. Since hyperlinks are closely related to URLs, you may think that replacing the pound sign with its hexadecimal equivalent (%23) in the hyperlink might do the trick. For instance, you might use the name My%23File.xlsx in the hyperlink instead of My#File.xlsx. This potential solution won't work, however. Excel still complains that it cannot find the file when you click on the hyperlink.
According to Microsoft sources, there are only two potential solutions. The first is to rename the target workbook so it doesn't include the pound sign in the file name. If this is not possible, then the second solution is to create a hyperlink by pasting instead of by using the Insert Hyperlink command. Follow these steps:
Your hyperlink appears, complete with the pound sign, and it will work.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12572) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Special Characters In Hyperlinks.
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!
If you have a list of hyperlinked e-mail addresses in a worksheet, you may want to extract the addresses from those ...Discover More
Need a quick link within a document to some external data? You can paste information so that Excel treats it just like a ...Discover More
When you enter a URL or e-mail address in a worksheet, Excel usually converts it to a clickable hyperlink. This doesn't ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.