To hyperlink a document in Excel, select the cell where you want the link, press Ctrl+K (Cmd+K on Mac), choose Existing File or Web Page in the Insert Hyperlink dialog, browse to the file, and click OK. The cell then opens that document when clicked. You can also use the HYPERLINK function for a formula-based link, or drag a file into a cell to create a link automatically. The steps below cover all three methods, plus what to do when a link breaks after you move or share the workbook.
What You'll Need
- Excel for Windows, Mac, or Excel for the web. The Insert Hyperlink dialog is available in all three, though labels can differ slightly by version and region.
- The document you want to link to, saved somewhere you can reach: a local folder, a shared network drive, OneDrive, SharePoint, or a website URL.
- Edit permission on the workbook if you are linking inside a shared file.
Step-by-Step
- Open the workbook and click the cell where the hyperlink should appear. A single cell is enough; you do not need to select a range.
- Press Ctrl+K on Windows or Cmd+K on Mac. You can also right-click the cell and choose Link (or Hyperlink in older versions), or go to the Insert tab and click Link.
- In the Insert Hyperlink dialog, pick Existing File or Web Page in the left-hand list. This is the option for linking to a document rather than to another cell in the same sheet.
- Browse to the file. Use the folder tree or the Look in dropdown to navigate to the document. If the file is on OneDrive or SharePoint, you can paste its web address into the Address field instead.
- Check the Text to display box. Excel fills it with the file path or URL by default. Replace it with a short label such as "Q3 Report" so the cell stays readable. Leave it blank only if you want the raw path shown.
- Click OK. The cell text turns blue and underlined, and clicking it opens the document in its default application or browser.
- To link with a formula instead, type
=HYPERLINK("C:\\Reports\\Q3.xlsx","Q3 Report")and press Enter. The first argument is the full path or URL, the second is the friendly text. This method is useful when the path is built from other cells. - To link by dragging, open File Explorer or Finder, drag the file over the target cell, and drop it. Excel creates the hyperlink automatically. This works on desktop Excel but not in Excel for the web.
- Test the link. Click it once and confirm the correct document opens. If it opens the wrong file, right-click the cell, choose Edit Link, and correct the path.
Common Mistakes
- Using a relative path that breaks when the workbook moves. A link like
..\\Reports\\Q3.xlsxonly works while the workbook stays in the same folder structure. Use a full path or a shared URL for anything you will send to someone else. - Linking to a file only you can access. A link to a local C: drive path fails on any other computer. For shared workbooks, link to OneDrive or SharePoint URLs, or to a network location everyone can reach.
- Forgetting the file extension. Typing
C:\\Reports\\Q3without.xlsxor.pdfmay fail. Include the extension in the Address field. - Spaces in paths without quotes. In the HYPERLINK function, wrap paths with spaces in quotation marks, for example
"C:\\My Reports\\Q3.xlsx". - Overwriting the display text with the full path. Long paths make columns wide and unreadable. Always set a short Text to display value.
- Assuming a link survives a PDF export. Hyperlinks usually carry over to PDF, but check the exported file before sending it.
Tips
- Use the HYPERLINK function when the file path is stored in another cell. For example, if A1 contains the path,
=HYPERLINK(A1,"Open Report")updates automatically when A1 changes. - To link to a specific place inside another workbook, add
#SheetName!A1to the end of the path. This opens the workbook at that sheet and cell. - Keep a column of hyperlinks in an index sheet so a large workbook has one clickable table of contents.
- Right-click a hyperlinked cell and choose Remove Hyperlink to keep the text but drop the link. Choosing Clear Contents removes both.
- For links to web pages, paste the full URL including
https://. Excel may otherwise treat the text as a local file path. - If you share the workbook, test every link from a second computer or account. A link that works for you can still fail for a colleague without access to the same drive.
Troubleshooting
If clicking the link does nothing, first check that the cell is actually hyperlinked: hover over it and look for the hand cursor and the tooltip showing the path. If there is no tooltip, the cell only contains text, so re-create the link with Ctrl+K.
If Excel shows a warning that it cannot open the file, the path is wrong or the file has moved. Right-click the cell, choose Edit Link, and use Browse to point at the file again. If the file is on a network drive, confirm you are connected to that drive.
If the link works on your computer but not on a colleague's, the target is almost certainly a local path or a location they cannot access. Move the document to a shared location such as OneDrive, SharePoint, or a common network folder, then re-link using that address.
If a formula-based link returns #VALUE!, check the quotation marks and the path syntax. In the HYPERLINK function, both arguments must be text, and paths with spaces need quotes around them.
If links stop working after you rename or move the workbook, re-check relative paths. Switching to full paths or shared URLs prevents this. If links break after a Windows or Office update, open the Insert Hyperlink dialog once and re-save the workbook; this refreshes the stored link data.
If you cannot click links at all, the workbook may be in a protected view or the sheet may be protected. Enable editing first, and unprotect the sheet if you have the password.
Frequently Asked Questions
Can I hyperlink to a PDF or Word document from Excel?
Yes. Any file type works as long as the path or URL is correct. Excel hands the file to the default application for that type when clicked.
Why does my hyperlink show the full file path instead of my label?
The Text to display field was left as the default. Right-click the cell, choose Edit Link, and type a short label in that box.
Do hyperlinks work in Excel for the web?
Yes for web URLs and files stored in OneDrive or SharePoint. Links to local drives on your computer will not open from the browser version.
How do I remove a hyperlink but keep the text?
Right-click the cell and choose Remove Hyperlink. The text stays; only the link is removed.
Can I link to a specific cell in another workbook?
Yes. Add #SheetName!A1 to the end of the file path in the Address field, or use that syntax inside the HYPERLINK function.
Why does my link break when I email the workbook?
Because the link points to a file on your computer. Upload the target document to a shared location and re-link using its web address before sending.