World News

How to Insert an In-Cell Picture in Microsoft Excel

https://www.profitableratecpm.com/f4ffsdxe?key=39b1ebce72f3758345b2155c98e6709c

Adding pictures to a Microsoft Excel worksheet can improve visualization, understanding, and overall presentation. However, floating images are notorious for causing layout issues when rows, columns, and cells are modified. To avoid these problems, you can embed pictures within cells.

In-cell pictures are available in standalone versions of Excel released in 2019 or later, Excel for Microsoft 365, Excel for the web, and the Excel mobile and tablet apps. Excel supports the following picture file types for in-cell pictures: JPG/JPEG, PNG, BMP, ICO, WEBP, TIF/TIFF, and GIF (not animated).

Insert an In-Cell Picture Via the Excel Ribbon

To insert an in-cell picture saved on your device, from Microsoft’s gallery, or imported through the web images search, first, select a blank cell. Then, in the Insert tab on the ribbon, click “Pictures,” hover over “Place In Cell,” and select one of the options.

Place In Cell is selected in the Pictures drop-down menu of the Insert tab on Microsoft Excel's ribbon.

When you select the picture and click “Insert,” you’ll see it embedded within the active cell.

The HTG logo in cell A1 in an Excel worksheet.

If you select multiple pictures, the first is inserted in the active cell, the second is inserted in the cell below, the third in the cell below that, and so on. In this process, any values currently in those cells are overwritten.

In-cell images inserted in this way adapt to the cell size while maintaining their aspect ratio, so click and drag the boundaries between the column and row headers to resize them.

The boundaries between column and row headers in Excel are clicked and dragged to make the in-cell picture larger.

When you select the cell containing the in-cell image, you’ll see the word Picture in the formula bar.

The Excel formula bar containing the word 'Picture.'

That said, if you add alt text to the in-cell picture by right-clicking the cell and selecting “View Alt Text,” you see this in the formula bar instead.

View Alt Text is selected in the right-click menu of an Excel cell containing an in-text image, and the alt text is shown in the pane and formula bar.

The usual cell formatting can be applied to cells containing in-cell pictures. For example, you can center the image by clicking the “Center” icon in the Alignment group or fill the cell with a certain color by clicking the “Fill Color” down arrow in the Font group.

Paste a Picture You Just Copied Into a Cell in Excel

You can insert a picture into a cell in Microsoft Excel by copying and pasting it. The image could be copied from another Excel workbook, a Word document, an email, an online source, or—in fact—anywhere, provided it’s a format supported by Excel and you have permission to use it.

If the picture you want to insert in-cell is the last thing you copied, head to the cell where you want it to appear. Then, in the Home tab on the ribbon, click the “Paste” down arrow, and select the icon which looks like a clipboard with a picture over the top.

The Paste Picture In Cell option in Microsoft Excel is selected.

Alternatively, if you prefer using Excel keyboard shortcuts, press Alt > H > V > C.

As with in-cell pictures added via the Insert tab on the ribbon, pasted in-cell pictures grow and shrink when the cells they’re in change size, but their aspect ratio remains the same. Also, when the cell containing the in-cell picture is selected, you’ll see the word Picture in the formula bar, unless you add alt text.

Insert an In-Cell Picture Using Excel’s IMAGE Function

This method is only available to those using Excel for Microsoft 365, Excel for the web, and the Excel mobile and tablet apps.

In-cell pictures can be inserted into an Excel spreadsheet through the IMAGE function. Use this method if you’ve found a picture on the web that you want to insert into a cell, provided you have permission to do so.

Here’s the IMAGE function’s syntax:

=IMAGE(a,b,c,d,e)

The five arguments work as follows:

Argument

What the Argument Requires

Argument Notes

a

The image URL (required) or a reference to a cell containing a URL

The URL must start with HTTPS. URLs typed directly into the formula must be placed inside double quotes.

b

The alt text you want to tag onto the image (optional)

This must be typed inside double quotes.

c

A number determining the sizing properties (optional)

0 (default) makes the image grow and shrink with the cell size, maintaining its aspect ratio.

1 makes the image completely fill the cell, ignoring its aspect ratio.

2 maintains the image’s original size.

3 activates the custom sizing options (arguments d and e).

d

The height of the image in pixels (optional)

Arguments d and e only become active if the index number 3 is entered for argument c. Entering only argument d or e maintains the image’s aspect ratio, but entering both may change it.

e

The width of the image in pixels (optional)

See above.

When using the IMAGE function, bear in mind the following points:

  • Images with URLs requiring authentication cannot be inserted into a cell, and URLs that redirect to another address are blocked.
  • URLs (and all other text values) in formulas are limited to 255 characters. If the image URL contains 256 or more characters, paste it into another cell, and reference this cell for argument a.
  • Excel returns the #VALUE! error if the image file isn’t in a supported format, or you forget to wrap the URL or alt text inside quotation marks.
  • If you enter 3 for argument c, but don’t specify an image height (argument d) or width (argument e), the formula won’t work. You’ll also face similar problems if you enter values for arguments d or e without entering 3 for argument c.
  • If you see the #CONNECT! error, check your internet connection and try again.

To try this out, triple-click the following URL (a picture containing the How-To Geek logo from the Valnet website) to select it, and press Ctrl+C to copy it:

https://www.valnetinc.com/images/brand-backgrounds/htg-bg2.jpg

Now, open a new workbook, and in cell A1, type:

=IMAGE("
The opening of an IMAGE formula, including the opening parenthesis and double quotes, is typed into cell A1 in Excel.

Then, press Ctrl+V to paste the copied URL. At this point, you’ll see a security alert asking you to confirm whether you want to paste the image URL with or without active content. Click “Paste Without Active Content.”

Paste Without Active Content is selected in the Microsoft Excel Security Notice window.

Next, add closing quotation marks and a comma, and for argument b (the alt text), type:

"The How-To Geek logo."
Alt text is added to an IMAGE formula in Excel.

Finally, close the parentheses, and press Enter.

Because you haven’t specified the picture’s dimensions, it fits inside the cell, growing and shrinking as you alter the cell’s dimensions.

An image is inserted into cell A1 in Excel using the IMAGE function.

However, suppose you decide you want to fix the picture’s height to 200px. To do this, head back to cell A1, and press F2 to activate Edit mode. Then, use the Arrow keys to move the cursor inside the closing parenthesis, and add a comma. Then, for argument c, type 3, and add another comma.

3 is typed for the third argument of the IMAGE function in Excel.

Finally, for argument d (image height), type 200, and press Enter to commit the new formula.

200 is typed for the height argument in an IMAGE formula in Excel.

The picture is now 200px high, and the original aspect ratio is preserved because you didn’t type a width dimension for argument e. This means the cell may need to be resized to make the whole picture visible.

An image containing the HTG logo is placed in cell A1 in Excel.

Convert a Floating Picture Into an In-Cell Picture in Excel

If your Excel worksheet already contains a picture placed over the cells, you can turn this into an in-cell picture in no time.

First, click and drag the image so that the top-left corner is over the cell where you want the in-cell image to be. In this example, I want the How-To Geek logo to be inserted into cell B2.

The top-left corner of an over-cell image in Excel is placed over cell B2.

Next, click the “Place In Cell” icon that appears directly next to the picture when it’s selected.

The Place In Cell icon next to an image of the HTG logo is selected in Excel.

Alternatively, right-click the floating picture, and click “Place In Cell.”

The right-click menu of a picture in Excel is expanded, and Place In Cell is selected.

Floating pictures converted into in-cell pictures adapt to changes in the cell size while retaining their aspect ratio.

An in-cell picture of the HTG logo in Excel.

Format In-Cell Pictures in Excel

Pictures inserted on top of cells can be formatted via the Picture Format tab on the ribbon. However, as you can see in the screenshot below, when a cell containing an in-cell picture is selected, the Picture Format tab doesn’t appear.

The Excel ribbon absent the Picture Format tab.

So, to format an in-cell picture in Excel, you need to temporarily turn it into a floating image. To do this, right-click the cell containing the picture, hover over “Picture In Cell,” and click “Place Over Cells.”

The right-click menu of a cell containing an in-cell picture in Excel is expanded, and Place Over Cells is selected from the Picture In Cell options.

As soon as you convert an in-cell picture inserted via the IMAGE function into a floating picture, it becomes disassociated from the formula and URL.

Alternatively, for in-cell images that have been pasted or inserted via the ribbon, a quicker method is to select the cell, and click the “Place Over Cells” icon that appears.

The Place Over Cells icon next to a cell containing an in-cell image in Excel is selected.

Now, you can format the picture using the tools in the Picture Format tab on the ribbon.

The Picture Format tab on the Excel ribbon is opened.

Once you’ve finished formatting the picture, convert it back into an in-cell picture by right-clicking the image and selecting “Place In Cell,” or clicking the “Place In Cell” icon that appears when you select the picture.

Remember to position the image so that the top-left corner aligns with the cell in which you want to embed it.

The Place In Cell icon next to a picture in Microsoft Excel is selected.


Pictures serve many purposes in Excel worksheets aside from forming the content of a cell. Indeed, you can use images as chart columns, insert dynamic pictures in a dashboard, or create worksheet thumbnails in a visual table of contents.

OS

Windows, macOS, iPhone, iPad, Android

Free trial

1 month

Microsoft 365 includes access to Office apps like Word, Excel, and PowerPoint on up to five devices, 1 TB of OneDrive storage, and more.


Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button