What "inserting a file" means in Excel
Excel lets you embed or link files into a spreadsheet in three main ways: you can insert an image or PDF that sits inside the sheet, create a link to an external file that opens when clicked, or embed an object like a Word document that you can open and edit from within Excel. Which method you use depends on whether you want the file visible in the sheet, whether you need to edit it later, and whether the file should travel with the spreadsheet or stay in a separate location.
The most common reason to insert a file is to add a supporting document — a PDF invoice, a photo, a Word memo — without creating a separate folder of attachments. The second reason is to link to a file on a shared drive so that when the original updates, the link in Excel points to the new version.
Key Takeaways
- Inserting an image or PDF creates a visible object in the sheet that travels with the file; inserting a link creates a clickable reference that opens the external file.
- To insert an image, go to Insert > Pictures and choose from your computer, OneDrive, or a web search.
- To insert a link to any file, go to Insert > Link, paste or type the file path, and choose the text that will appear in the cell.
- To embed a document so you can edit it without leaving Excel, go to Insert > Object and select the file type from the list.
- Files embedded in the spreadsheet make it larger; files linked to external locations keep the spreadsheet smaller but require the external file to remain accessible.
Inserting an image or PDF into a cell
Open the spreadsheet and click the cell where you want the image to appear. Go to the Insert tab at the top, then click Pictures. You will see three options: This Device (to choose a file from your computer), Stock Images (to search for free images), or Online Pictures (to search the web). Select the file and click Insert.
The image will appear in the cell and can be resized by dragging the corners. You can move it by clicking and dragging, and you can right-click it to access options like cropping, rotating, or adjusting brightness. If you insert a PDF, Excel will show the first page as an image; the file itself is not editable from within the sheet.
One important note: inserting images or PDFs directly into the spreadsheet increases the file size. If you are working with many large images, the spreadsheet may become slow to open and difficult to share via email.
Creating a clickable link to a file
Click the cell where you want the link to appear. Go to the Insert tab and click Link (or press Ctrl+K on Windows, Cmd+K on Mac). A dialog box will open with two fields: one for the file location and one for the display text.
In the Address field, type or paste the full path to the file. On Windows, this looks like C:\Users\YourName\Documents\filename.pdf. On Mac, it looks like /Users/YourName/Documents/filename.pdf. If the file is on a shared network drive, use the network path — ask your IT department or network administrator for the correct format if you are unsure.
In the Display Text field, type what you want to appear in the cell — for example, "Invoice PDF" or "Supporting Document". Click OK. The text will appear as a blue underlined link. Anyone who opens the spreadsheet can click it to open the file, as long as they have access to that file location.
Links are useful when the file is shared on a network or cloud drive and may be updated over time. However, if you move or delete the original file, the link will break and show an error when clicked.
Embedding a document you can edit from Excel
Click the cell where you want to embed the file. Go to the Insert tab and click Object (you may need to click the dropdown arrow next to it). A dialog box will open showing a list of object types — Word Document, PowerPoint Presentation, PDF, and others depending on what software is installed on your computer.
Select the type of file you want to embed, then click Create from File. Browse to the file on your computer and select it. You can check the box labeled Link to file if you want changes to the original file to show up in Excel, or leave it unchecked if you want the embedded version to be independent. Click OK.
The embedded file will appear as an icon in the cell. Double-click the icon to open and edit the document without leaving Excel. When you save the spreadsheet, the embedded file is saved with it. This method works well for small supporting documents, but embedding large files can make the spreadsheet very large and slow.
Inserting a screenshot or part of another window
Excel has a built-in screenshot tool that captures part of your screen and inserts it directly into the sheet. This is useful if you want to include a visual reference — a portion of a website, another document, or an email — without creating a separate image file.
Go to the Insert tab and click Screenshots. You will see two options: Screen Clipping (to select a specific area of your screen) or Available Windows (to capture an entire open window). Choose Screen Clipping, then click and drag to select the area you want to capture. The selection will be inserted into the cell as an image that you can resize and move.
Reducing file size when inserting images
When you insert multiple images or high-resolution PDFs, the spreadsheet file size grows quickly. Excel includes a compression tool to reduce the size of inserted images without making them look noticeably worse. Right-click any image in the sheet and select Compress Pictures. A dialog will open with options to reduce resolution and remove cropped areas. Choose the resolution that matches how you plan to use the spreadsheet — screen viewing requires less resolution than printing.
If you are inserting many images and file size is a concern, consider using links instead of embedding. A link takes up only a few kilobytes, while an embedded image can be several megabytes. The trade-off is that links require the external file to remain in its original location.
Troubleshooting common insertion problems
If a link shows an error or will not open, the file path may be incorrect or the file may have been moved or deleted. Check that the file exists in the location you specified. If the file is on a network drive, make sure you are connected to the network and have permission to access it. You can edit the link by right-clicking it and selecting Edit Link, then correcting the file path.
If an embedded object will not open, the software needed to edit it may not be installed on your computer. For example, to edit an embedded Word document, Microsoft Word must be installed. If you see a message that the object cannot be opened, check that the required software is available.
If the spreadsheet is very slow after inserting images, try compressing the images or converting some of them to links. You can also check the file size by right-clicking the file in File Explorer (Windows) or Finder (Mac) and selecting Properties or Get Info.
Frequently Asked Questions
Can I insert a file from OneDrive or Google Drive?
Yes. When you click Insert > Pictures, you can choose OneDrive or Online Pictures to search cloud storage. For links, you can paste the sharing link from OneDrive or Google Drive, though the file must be shared with anyone who will open the spreadsheet. Embedded objects work best with files on your local computer or a network drive.
What happens to inserted files when I email the spreadsheet?
Embedded images and objects travel with the file and will appear when the recipient opens it. Links will only work if the recipient has access to the file location — if the file is on your personal computer, the link will break for anyone else. For sharing, embed files or use links to files on a shared drive that others can access.
Can I insert a file into a cell in Excel Online?
Excel Online has limited insertion options compared to the desktop version. You can insert images from your computer or online sources, but embedding objects and creating links to local files is not supported. For full functionality, use the desktop version of Excel.
How do I remove an inserted file from a cell?
Click the image or object to select it, then press Delete. For links, click the cell containing the link and press Delete. The link text will disappear, but the cell itself remains.
Is there a limit to how many files I can insert?
There is no hard limit, but each file increases the spreadsheet size. Excel files can become slow or difficult to open if they exceed 100 MB. Use links instead of embedding when possible to keep file size manageable.