How to Insert a Picture in Excel Cell
In this article
To insert a picture that stays inside a specific Excel cell (rather than floating over the sheet), you need to size and position it to match the cell, then lock it to the cell so it moves and resizes with it. The built-in “Insert > Picture” places images as floating objects, but with a few alignment steps you can make it behave like it’s inside the cell. This guide covers both the quick method (floating) and the proper way to embed a picture within a cell, including how to make it stick to the cell when you sort or filter.
What You'll Need
- Microsoft Excel (desktop version for Windows or Mac; the steps are similar but menu labels may differ slightly).
- An image file saved on your computer (JPG, PNG, GIF, etc.).
- The Excel workbook where you want to insert the picture.
Step-by-Step
Method 1: Insert a Picture That Floats Over the Sheet
- Open your Excel workbook and go to the worksheet where you want the picture.
- Click on the cell where you want the picture to appear (this selects the cell, but the picture will not be confined to it yet).
- Go to the Insert tab on the ribbon.
- In the Illustrations group, click Pictures. Choose This Device (or Picture from File on older versions) to browse for your image.
- Select the image file and click Insert. The picture will appear on the sheet, usually centered over the selected cell or near it.
- Drag the picture to position it over the cell you want. To resize it, click and drag one of the corner handles while holding Shift to keep the aspect ratio.
- To make the picture move and resize with the cell (so it stays aligned when you adjust row height or column width), right-click the picture and select Format Picture.
- In the Format Picture pane, go to the Size & Properties tab (the icon that looks like a square with arrows).
- Under Properties, select Move and size with cells. This ensures the picture stays attached to the cell when you sort, filter, or resize rows/columns.
Method 2: Insert a Picture Directly Into a Cell (Excel 365 / Excel 2021)
Newer versions of Excel (Microsoft 365 and Excel 2021) have a dedicated feature that places a picture inside a cell, making it behave like cell content (it moves, filters, and sorts with the cell automatically).
- Select the cell where you want the picture.
- Go to the Insert tab.
- Click Pictures and choose Place in Cell (this option appears only in the newer versions).
- Browse to your image file and select it. Click Insert.
- The picture will appear inside the cell, fitting the cell size. If the cell is too small, the picture will be cropped or scaled down to fit.
- You can resize the cell to adjust the picture display. The picture will always stay within the cell boundaries.
Method 3: Insert Multiple Pictures at Once
- Follow the steps above to open the Insert Picture dialog.
- Hold Ctrl (Windows) or Command (Mac) and click each image you want to insert.
- Click Insert. All selected images will be inserted, each as a separate floating object. You can then position them manually or use the “Place in Cell” option if available.
Common Mistakes
- Not locking the picture to the cell: If you skip the “Move and size with cells” property, the picture will stay in place when you sort or filter, leaving it misaligned with the data.
- Resizing without holding Shift: Dragging corner handles without Shift distorts the image. Always hold Shift to keep the aspect ratio.
- Inserting a picture that is too large: Huge images can make your file slow and may overflow the cell. Resize the image before inserting or use a smaller file.
- Using “Place in Cell” on an older version: If you don’t see the “Place in Cell” option, your Excel version doesn’t support it. Use Method 1 instead.
Tips
- To quickly align a floating picture to a cell, hold Alt while dragging the picture. This snaps the picture’s edges to cell borders.
- If you want the picture to be hidden when the cell is empty, consider using a cell comment with an image instead (insert a picture into a comment).
- For a clean look, set the row height and column width to match your image dimensions before inserting.
- If you need the picture to be part of a data table, use the “Place in Cell” feature (if available) because it treats the picture as data, allowing filters and sorting to work seamlessly.
- To remove a picture, simply select it and press Delete.
Troubleshooting
If the picture does not stay in the cell: Right-click the picture, choose Format Picture, go to Size & Properties, and under Properties select Move and size with cells. If you are using “Place in Cell” and it’s not staying, ensure you are on a version that supports it (Microsoft 365 or Excel 2021).
If the picture is too large and covers other cells: Resize the picture by dragging a corner handle while holding Shift. Alternatively, right-click the picture, select Format Picture, and under Size enter exact height and width values.
If the picture disappears when you filter or sort: This happens when the picture is not set to “Move and size with cells”. Apply that setting as described above. For “Place in Cell” pictures, they should automatically stay with the cell.
If the “Place in Cell” option is grayed out: This feature is only available in Excel for Microsoft 365 and Excel 2021. If you have an older version, use the floating method with the “Move and size with cells” property.
If the picture is not visible at all: Check if the picture is hidden behind other objects. Go to the Home tab, click Find & Select (in the Editing group), and choose Selection Pane. Look for your picture in the list and click the eye icon to unhide it.
Frequently Asked Questions
Can I insert a picture into a cell in Excel Online?
Excel Online (the web version) does not support the “Place in Cell” feature. You can insert a floating picture, but it will not be locked to a cell. Use the desktop version for full functionality.
How do I make the picture fit exactly into the cell?
Resize the cell to match the image dimensions, or resize the image to fit the cell. For “Place in Cell”, the picture automatically fits the cell. For floating pictures, hold Alt while dragging to snap to cell borders.
Can I insert multiple pictures into different cells at once?
Yes, you can select multiple images in the Insert Picture dialog and they will be inserted as separate floating objects. You can then position each one over its target cell. For “Place in Cell”, you need to insert them one by one.
Will the picture move when I sort or filter my data?
Only if you set the picture’s properties to “Move and size with cells” (for floating pictures) or use “Place in Cell”. Otherwise, the picture will stay in its original position.
How do I remove a picture from a cell?
Click on the picture to select it, then press the Delete key. If the picture is inside a cell (Place in Cell), clicking on the cell will show the picture; you can select and delete it similarly.
Can I use a picture as a cell background?
No, Excel does not allow a picture as a cell background. You can insert a floating picture behind the cell content, but it will not be a true background. Alternatively, you can use a shape with a picture fill and place it behind the cell.