Excel image in cells

Watch Video – How to Insert Picture into a Cell in Excel 

A few days ago, I was working with a data set that included a list of companies in Excel along with their logos.

I wanted to place the logo of each company in the cell adjacent to its name and lock it in such a way that when I resize the cell, the logo should resize as well.

I also wanted the logos to get filtered when I filter the name of the companies.

Wishful Thinking? Not Really.

You can easily insert a picture into a cell in Excel in a way that when you move, resize, and/or filter the cell,  the picture also moves/resizes/filters.

Below is an example where the logos of some popular companies are inserted in the adjacent column, and when the cells are filtered, the logos also get filtered with the cells.

How to Insert Picture Into a Cell in Excel - Filter Images

This could also be useful if you’re working with products/SKUs and their images.

When you insert an image in Excel, it not linked to the cells and would not move, filter, hide, and resize with cells.

In this tutorial, I will show you how to:

  • Insert a Picture Into a Cell in Excel.
  • Lock the Picture in the cell so that it moves, resizes, and filters with the cells.

Insert Picture into a Cell in Excel

Here are the steps to insert a picture into a cell in Excel:

  1. Go to the Insert tab.
  2. Click on the Pictures option (it’s in the illustrations group).How to Insert Picture Into a Cell in Excel - Insert Image
  3. In the ‘Insert Picture’ dialog box, locate the pictures that you want to insert into a cell in Excel.How to Insert Picture Into a Cell in Excel - insert dialog box
  4. Click on the Insert button.dialog box to insert an image in a cell in excel
  5. Re-size the picture/image so that it can fit perfectly within the cell. How to Insert Picture into a cell in Excel - Height Width
  6. Place the picture in the cell.
    • A cool way to do this is to first press the ALT key and then move the picture with the mouse. It will snap and arrange itself with the border of the cell as soon it comes close to it.How to Insert Picture Into a Cell in Excel - amazon logo

If you have multiple images, you can select and insert all the images at once (as shown in step 4).

You can also resize images by selecting it and dragging the edges. In the case of logos or product images, you may want to keep the aspect ratio of the image intact. To keep the aspect ratio intact, use the corners of an image to resize it.

When you place an image within a cell using the steps above, it will not stick with the cell in case you resize, filter, or hide the cells. If you want the image to stick to the cell, you need to lock the image to the cell it’s placed n.

To do this, you need to follow the additional steps as shown in the section below.

Lock the Picture with the Cell in Excel

Once you have inserted the image into the workbook, resized it ti fit within a cell, and placed it in the cell, you need to lock it to make sure it moves, filters, and hides with the cell.

Here are the steps to lock a picture in a cell:

  1. Right-click on the picture and select Format Picture.How to Insert Picture Into a Cell in Excel - Format Picture
  2. In the Format Picture pane, select Size & Properties and with the options in Properties, select ‘Move and size with cells’.How to Insert Picture Into a Cell in Excel - Move and Size with Cells

That’s It!

Now you can move cells, filter it, or hide it, and the picture will also move/filter/hide.

Try it yourself.. Download the Example File
Download File

This could be a useful trick when you have a list of products with their images, and you want to filter certain categories of products along with their images.

You can also use this trick while creating Excel Dashboards.

You May Also Like the Following Excel Tutorials:

  • Insert a Picture in a Comment in Excel.
  • Insert Line Break in Excel Formula result.
  • Picture Lookup Technique using Named Ranges.
  • How to Insert Watermark in Excel Worksheets.
  • How to Lock Cells in Excel.

Windows: 15608.10000
Mac: 16.65 (Build 22080701)
Web: October, 2022
iOS: 2.65 (22080701)
Android: 15608.10000

The IMAGE function inserts images into cells from a source location along with alternative text. You can then move and resize cells, sort and filter, and work with images within an Excel table. Use this function to visually enhance lists of data such as inventories, games, employees, and mathematical concepts.

Overview of list using IMAGE function

Syntax

=IMAGE(source, [alt_text], [sizing], [height], [width])

The IMAGE function takes the following arguments:

source      The URL path, using an «https» protocol, of the image file. Required. Supported file formats include BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and also WEBP (WEBP is unsupported on Web and Android).

alt_text      Alternative text that describes the image for accessibility. Optional.

sizing      Specifies the image dimensions. Optional. There are several possible values:

  • 0      Fit the image in the cell and maintain its aspect ratio.

  • 1      Fill the cell with the image and ignore its aspect ratio.

  • 2      Maintain the original image size, which may exceed the cell boundary.

  • 3      Customize the image size by using the height and width arguments.

height       The custom height of the image in pixels. Optional.

width        The custom width of the image in pixels. Optional.

Remarks

Warning: You may receive a message that access to some linked data type images is turned off because they require a connection to an external source. If you trust the connection, you can turn on access to the images. For more information, see Block or unblock external content in Office documents.

Be careful customizing the height and width as it may skew the aspect ratio, or the proportional relationship between the original image height and width.

If source is a URL that requires authentication, the image doesn’t render.

If source is a URL that’s redirected, it’s blocked because of security concerns.

To work around the URL limit of 255 characters, avoid copying a long URL from the browser address bar. Instead, right click the image in the browser, select Copy image link, paste the value into a cell in Excel, and then reference that cell as source. For example, if the long URL is copied to F10, create the following function call: =IMAGE(F10).

Accessibility

We recommend using effective alternate text to promote accessibility:

  • Select the cell that contains the IMAGE formula, and then in the formula bar, add the alternative text as the second argument of the formula (alt_text).

  • If the image source is a linked data type or record, add alternative text to the original data source or ask your administrator to add it.

  • If the image is derived from a more complex formula, add alt text to that formula or the source where the image is coming from.

For more information, see Everything you need to know to write effective alt text.

Errors

Excel returns a #VALUE! error under the following circumstances:

  • If the image file is not a supported format.

  • If source or alt_text is not a string.

  • If sizing is not between 0 and 3.

  • If sizing is 3 but height and width are blank or contain values less than 1.

  • If sizing is 0, 1, or 2 and you also provide a width or height.

For more information, see How to correct a #VALUE! error.

If there are issues with your internet connection or the server providing the source, Excel returns a #CONNECT! error. Check the internet connection on your device and try again. For more information, see How to correct a #CONNECT! error.

If your security settings block access to the image file in a cell, Excel returns a #BLOCKED! error. Check the security settings for Linked Data Types. Also, if this occurs with Excel for Web or Excel Mobile, ensure you enable images by using the business bar at the top of the workbook. For more information, see How to correct a #BLOCKED! error.

Examples

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. 

After you paste this example, keep it selected. Set the cell style to Normal (Home > Cell Styles), the row height to 30 (Home > Format > Row Height), and the column width to 16 (Home > Format > Column Width).

Data

https://support.content.office.net/en-us/media/35aecc53-b3c1-4895-8a7d-554716941806.jpg

Cylinder

https://support.content.office.net/en-us/media/926439a2-bc79-4b8b-9205-60892650e5d3.jpg

Pyramid

Formula

Results

=IMAGE(«https://support.content.office.net/en-us/media/2d9e717a-0077-438f-8e5e-f85a1305d4ad.jpg», «Sphere»)

Image of a sphere

=IMAGE(A2, B2, 0)

Image of a cylindar

=IMAGE(A3, B3, 1)

Image of a triangle out of proportion

After you paste this example, keep it selected. Set the cell style to Normal (Home > Cell Styles), the row height to 57 (Home > Format > Row Height), and the column width to 21 (Home > Format > Column Width).

Data

https://support.content.office.net/en-us/media/926439a2-bc79-4b8b-9205-60892650e5d3.jpg

Pyramid

Formula

Results

=IMAGE(A2, B2, 3, 100, 200)

Image of a triangle enlarged

See Also

Change the size of a picture, shape, text box, or WordArt

What are linked data types in Excel?

Add alternative text to a shape, picture, chart, SmartArt graphic, or other object

Skip to content

How to Insert Pictures Into Excel Cells – Step-by-step (2023)

How to Insert Pictures Into Excel Cells – Step-by-step (2023)

I bet you know how to insert pictures but do you know how to insert a picture into a cell in Excel?

It’s a fairly simple, but quite unknown method that ultimately locks the image to a cell.

Let me show you how it’s done, step-by-step💡

If you want to tag along, download my Excel sample file here.

How to insert a picture into a cell in Excel

Unlike with some other platforms, you simply can’t copy and paste a picture into an Excel cell.

But I assure you that the process to insert images isn’t difficult.

In fact, the image shown below took only 30 seconds to do.

Insert picture into Excel cell example

1. Go to the Insert tab.

2. Click the Illustrations button.

3. Select Picture and choose where the image should come from.

Typically, the image is located on your computer. If that’s the case, select ‘From this device’.

Insert picture from Insert tab

4. Select the images you want to insert.

Tip: You can insert multiple images at the same time.

5. Resize the image to fit the cell and make sure to move the picture into a cell.

Pretty easy, huh?

PRO TIP: KEEP ASPECT RATIO OF IMAGE

When you resize an image in Excel the aspect ratio can get out of hand really quickly, making it look ridiculous.

To keep the aspect ratio intact, make sure to resize it by dragging the handles at the corners of the image.

Don’t drag the handles to the top, bottom, left, or right.

Keep aspect ratio of picture in Excel

After resizing the images to fit the cells, there’s one problem left:

Resizing the columns or rows where the images reside does not affect the images.

Here’s what I mean:

Image not fit to cell example

To solve that, you have to lock the picture into a cell.

How to lock an image to a cell

For the image to resize when you resize the columns or rows, you will have to change its properties.

1. Right-click on the image and select ‘Format Picture’.

Select format picture

This will open the format picture pane where you can change the picture settings.

2. Click on the ‘Size and properties’ button.

3. Expand the ‘Properties’ tab and click ‘Move and size with cells’.

Format picture pane properties tab

And that’s how you lock a picture into a cell in Excel.

Now, when you resize the cell the image is automatically resized with the cell.

If you insert multiple images, you can select them all by holding down the Shift key while left-clicking each one.

Do this before enabling ‘Move and size with cells’ from the Properties tab in the ‘Format picture pane’ and it’ll be done to all the images at once.

Kasper Langmann, Microsoft Office Specialist

That’s it – What’s next?

As you can see, it’s pretty quick and easy to insert a picture into Excel cells.

The real challenge is making sure that the photo moves and resizes with the cell. Luckily, you can lock the picture into a cell to make that happen.

But to insert an image is only a small part of Microsoft Excel.

Excel can automate calculations, make decisions for you, speed up your daily work, and join data from multiple files in a few seconds.

If you want to get started with all that, you should enroll in my 30-minute free Excel training program that adapts to your Excel skill level.

Click here and sign up with your email address to get instant access to the course.

Other resources

Now that you’re inserting pictures into Excel cells, I got some other relevant resources for you.

Another way of displaying images in your Excel file is by showing them as watermarks. Read all about that here.

Also, if you care about the general look and feel of your spreadsheet, you need to know a few tricks like adding headers and footers, the format painter, and number formats.

Kasper Langmann2023-01-19T12:29:25+00:00

Page load link

While my recommendation is to take advantage of the automation available from Doality.com specifically Picture Manager for Excel

The following vba code should meet your criteria. Good Luck!

This code will insert the image into the chosen cell and will scale it to fit the exact width and height of the cell. For example:

Instructions:

Add a Button Control to your Excel Workbook (click Developer tab, Insert, Active X, Command Button) and then double click on the button in order to get to the VBA Code —>

Sub Button1_Click()
    Dim filePathCell As Range
    Dim imageLocationCell As Range
    Dim filePath As String

    Set filePathCell = Application.InputBox(Prompt:= _
        "Please select the cell that contains the reference path to your image file", _
            Title:="Specify File Path", Type:=8)
            
     Set imageLocationCell = Application.InputBox(Prompt:= _
        "Please select the cell where you would like your image to be inserted.", _
            Title:="Image Cell", Type:=8)

    If filePathCell Is Nothing Then
       MsgBox ("Please make a selection for file path")
       Exit Sub
    Else
      If filePathCell.Cells.Count > 1 Then
        MsgBox ("Please select only a single cell that contains the file location")
        Exit Sub
      Else
        filePath = Cells(filePathCell.Row, filePathCell.Column).Value
      End If
    End If

    If imageLocationCell Is Nothing Then
       MsgBox ("Please make a selection for image location")
       Exit Sub
    Else
      If imageLocationCell.Cells.Count > 1 Then
        MsgBox ("Please select only a single cell where you want the image to be populated")
        Exit Sub
      Else
        InsertPic filePath, imageLocationCell
        Exit Sub
      End If
    End If
End Sub

Then create your Insert Method as follows (this can follow the button’s code from above):

Private Sub InsertPic(filePath As String, ByVal insertCell As Range)
    Dim xlShapes As Shapes
    Dim xlPic As Shape
    Dim xlWorksheet As Worksheet
    
    If IsEmpty(filePath) Or Len(Dir(filePath)) = 0 Then
        MsgBox ("File Path invalid")
        Exit Sub
    End If
    
    Set xlWorksheet = ActiveSheet
    
    Set xlPic = xlWorksheet.Shapes.AddPicture(filePath, msoFalse, msoCTrue, insertCell.Left, insertCell.Top, insertCell.Width, insertCell.Height)
    xlPic.LockAspectRatio = msoCTrue
End Sub

Hi, Insiders! My name is Elisabetta Caldesi, and I’m a Product Manager on the Excel team. I’m excited to share with you a new function, called IMAGE, which returns an image within a cell.

IMAGE function

We’ve received a lot of feedback about the wish to be able to insert images in cells, and we’re happy to deliver! Your images can now be part of the worksheet, instead of floating on top. You can move and resize cells, sort and filter, and work with images within an Excel table. This improvement unlocks and facilitates many new scenarios, such as tracking inventories, creating employee dashboards, or building games and brackets.

How it works

The IMAGE function inserts images into cells from a source location, along with alternative text. All you need to do is type the following into a cell: =IMAGE(source, [alt_text], [sizing], [height], [width]), where:

  • [Required] source is the URL path of the image file, using an “https” protocol. (NOTE: Supported file formats include BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and WEBP.)
  • [Optional] alt_text is the alternative text that describes the image (for accessibility).
  • [Optional] sizing specifies the image dimensions. There are several possible values:
    • 0: Fit the image in the cell and maintain its aspect ratio.
    • 1: Fill the cell with the image and ignore its aspect ratio.
    • 2: Maintain the original image size, which may exceed the cell boundary.
    • 3: Customize the image size by using the height and width
  • [Optional] height and width define the height and width of the image only when using sizing 3 option.

Scenarios to try

  • Insert a sphere in a cell by typing =IMAGE("https://support.content.office.net/en-us/media/2d9e717a-0077-438f-8e5e-f85a1305d4ad.jpg", "Sphere")

Cell containing the image of a sphere

  • Insert a cylinder in a cell by:
    1. Copying and pasting the following URL in cell B1: https://support.content.office.net/en-us/media/35aecc53-b3c1-4895-8a7d-554716941806.jpg
    2. Entering Cylinder in cell B2.
    3. Entering =IMAGE(B1,B2,0) in cell A3 and pressing the ENTER key.

Worksheet with cell containing the image of a cylinder

Known issues

  • If the URL to the image file you are using is pointing to a site that requires authentication, the image will not render.
  • Zooming in and out with images in cells may distort the images.
  • Moving between platforms (for example, Windows and Mac) may result in irregular image rendering.

Availability

The IMAGE function is available to Insiders running the following Beta Channel builds:

  • Windows: Version 2209 (Build 15608.10000) or later
  • Mac: Version 16.65 (Build 22080701) or later
  • iOS: Version 2.65 (Build 22080701) or later
  • Android: 16.0.15608.10000 or later

Don’t have it yet? It’s probably us, not you.

Features are released over some time to ensure things are working smoothly. We highlight features that you may not have because they’re slowly releasing to larger numbers of Insiders. Sometimes we remove elements to further improve them based on your feedback. Though this is rare, we also reserve the option to pull a feature entirely out of the product, even if you, as an Insider, have had the opportunity to try it.

Feedback

As you use the preview of the new IMAGE function in Excel, we hope you will join us in this journey. Click Help Feedback to share your feedback and help us prioritize our work.

Learn what other information you should include in your feedback to ensure its actionable and reaches the right people. We’re excited to hear from you!

Do you want to insert an image into a cell? This post is going to show you exactly how to put a picture in a cell in Microsoft Excel!

An Excel cell can contain many different data types such as text, numbers, dates, Booleans, and error values. Until recently, images have not been a data type that you could insert into a cell.

Previously, you could only place the image above the cell and then change the image properties so it moves and resizes with the cells.

There are new features available in Excel that allow you to add images directly inside a cell. This means images are a proper data type and can be used in similar ways to other data such as text or numbers.

Get your copy of the example workbook used in this post and follow along!

Insert an Image in a Cell with Data Types

This first method won’t allow you to get any image embedded in your cell but is a quick and easy way to see images in action using Data Types.

Data types have been available for a while and allow you to pull certain geographical or financial data from the web.

These data types contain many pieces of data inside a single cell. A country data type might contain information about the population, capital, current president, or current prime minister.

The Geography data type in particular also includes a related image. A country, state, or province data type might have the associated flag image included in the data type.

This image can be extracted from the data type into a cell.

This example shows a small list of country names in Excel. These are plain text, so there is nothing special about them until they are converted into geography data types.

You can follow these steps to create a data type and extract the image into the grid.

  1. Select your list of cells with plain text geographical names such as country names.
  2. Go to the Data tab.
  3. Click on the Geography data type.

This will convert the plain-text country names into country data types. You’ll notice the small map icon to the left of the country name which indicates they are now Geography data types.

When you click on this map icon, it will open a pop-up data card that displays all the information contained in the cell. This can include an image of the flag at the top of the card.

Now you will be able to extract the flag image into a cell.

  1. Select all the data type cells.
  2. Click on the Extract button that appears at the top right of the selected cells.
  3. Choose the Image option from the list.

This will extract the data type image into the adjacent cell. You can see this is really a formula =B2.Image that references the cell with the data type by using a dot notation to extract a piece of data from the data type.

💡 Tip: You can copy and paste as values so the image will then be disconnected from the data type.

Insert an Image in a Cell with Power BI Organization Data Types

The Geography data type is perfect if you want a flag image inside your cell!

But what if you want your own custom images added in a cell?

You can build your own custom Organization data type. These can then be used by anyone inside your organization in any of your spreadsheets.

Organization data types also allow you to specify an image URL which can then be extracted to a cell.

⚠️ Warning: This feature requires a Power BI pro license and a table of data that contains a column of image URLs.

  1. Open the Power BI desktop app.
  2. Click on the Import data from Excel or choose the Get Data option in the Home tab if your image dataset is not in Excel.

This will open a file picker menu where you can select the Excel file with your image URLs.

  1. Select the Excel file with your image URLs.
  2. Press the Open button.

This will open up the Navigator window.

  1. Select the table or sheet that contains your image URL data.
  2. Press the Load button.

  1. Go to the Model view.
  2. Select the table you loaded.
  3. Toggle the Is featured table option to Yes in the Properties window pane.

  1. Add a Description for the table.
  2. Select a Row Label column from the data. This will be the text displayed in the cell when you’re using this data type in Excel.
  3. Select a Key column from the data. This should be a unique identifier from the data.

In this example, the Row Label and Key column are the same since the name is what you want to be displayed in Excel and it also uniquely identifies the product.

Now you’ll need to set the column properties for the column of image URLs.

  1. Go to the Data view.
  2. Select the column that contains the image URLs.
  3. Go to the Column tools tab.
  4. Select Image URL for the Data category.

Now you need to publish this dataset to the Power BI online service so the Organization data type will show up in Excel.

  1. Go to the Home tab.
  2. Click on the Publish button.

  1. Select any workspace other than My workspace.
  2. Press the Select button.

📝 Note: My workspace is your own personal workspace in Power BI online. No one else will have access and the Organization data type feature does not work with it.

Now you can open Excel and use the new Organization data type. Just make sure Excel is signed into a Microsoft account on the same Microsoft tenant as the workspace you published in Power BI.

  1. Select some data from your Row Label column.
  2. Go to the Data tab in the Excel ribbon.
  3. Click on the button to expand the Data Type shelf.
  4. Click on your custom data type found in the From your organization section.

This will convert the items into the data type and you will be able to extract the image the same way as with the Geography data type.

In this example, the formula =B2.Image will extract the picture since Image was the name of the column that was set to an Image URL type.

Insert an Image in a Cell with the IMAGE Function

Creating an organization data type is a long process, especially if you only want to add an image inside a cell.

Thankfully there is a better way to insert an image if you have a public web address for it.

The IMAGE function allows you to insert an image in the cell based on a URL.

IMAGE Function Syntax

= IMAGE ( url, alt_text, sizing, height, width )

The IMAGE function has the following required arguments.

  • url is the web address of the image you want to display in the cell.

The IMAGE function has the following optional arguments.

  • alt_text is an input for an alternative text for accessibility.
  • sizing is an option to determine how you want the image to fit into the cell.
    • 0 will fit the cell and maintain the image aspect ratio.
    • 1 will fill the cell and ignore the image aspect ratio.
    • 2 will add the image and maintain its original size.
    • 3 will allow you to enter a custom height and width size for the image.
  • height allows you to set the height of the image.
  • width allows you to set the width of the image.

📝 Note: The height and width arguments are required when sizing is set to 3.

IMAGE Function Example

= IMAGE ( "https://www.howtoexcel.org/wp-content/uploads/2022/10/Insert-Images-Into-Cells.jpg" )

The above formula will insert an image from this website. The url argument can be entered as a text string or you can reference a cell that contains the web address.

💡 Tip: You can use an online drive app such as SharePoint or OneDrive to create a public web address that can be used in the IMAGE function. Set the file access as shared with anyone with the link!

Conclusions

Getting an image inside a cell has long been a sought-after feature in Excel. But until recently, there has only been a poor workaround method available.

Now there are some great options available for images in a cell.

You can use the Geography data type quickly get flag images inside cells, and if you want a custom image you can create Organization data types with Power BI.

Images can also be entered into the cell via the IMAGE function. This is a quick and easy way to get any image with a web address into an Excel cell.

Did you know about these features? What are you going to use them for? Let me know in the comments section below!

About the Author

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Содержание

  1. How to Insert a Picture in a Cell in MS Excel?
  2. Steps to Insert Pictures
  3. Insert Pictures from Online Source
  4. How to Insert Picture Into a Cell in Excel (a Step-by-Step Tutorial)
  5. Insert Picture into a Cell in Excel
  6. Lock the Picture with the Cell in Excel
  7. Insert a Picture/Image in Excel Cell
  8. How to Insert a Picture/Image in Excel Cell?
  9. Change Image Size According to Cell Size in Excel
  10. How to Create an Excel Dashboard with Images?
  11. Things to Remember
  12. Recommended Articles

How to Insert a Picture in a Cell in MS Excel?

Every day in business or any other field lots of information are there that are required to store for future use. For anyone, it is very difficult to remember that information for a long time. Earlier data and information are stored in a form of a register, file, or by paperwork but finding it may be difficult for us. It takes a lot of time. To resolve this issue Microsoft brings a software called MS Excel.

Microsoft Excel is a software that allows users to store or analyze the data in a proper systematic manner. It uses spreadsheets to organize numbers and data with formulas and functions. MS Excel has a collection of columns and rows that form a table. Generally, alphabetical letters are assigned to columns, and numbers are usually assigned to rows. The point where a column and a row meet is called a cell. Generally, it is used to keep records, data in various fields of business.

Features of MS Excel

  1. Auto calculate- This helps you to calculate a group of data and it automatically shows the result in the status area. You can also create your own formulas.
  2. Shared- You can share your data file over a network.
  3. Templates- It gives us a variety of elegantly designed templates for your home or business purpose.
  4. Excel Charts- Excel charts help to convey your information in a very easy way. If you choose charts wisely and formatting them cleanly, you can deliver a lot of information to them.
  5. Conditional Formatting- It helps users to focus quickly on important topics of data or to highlighted errors and to identify important patterns in data.
  6. Sorting and Filtering- It is used to sort or filter data according to your need. You can also reorder the data. It saves your time a lot.
  7. Toolbars- It has a Collection of buttons that provide one-click access to commonly used commands such as Save, undo, and many more.
  8. Ribbon- It has commands and controls organized tasks in Tabs and groups.

Steps to Insert Pictures

Step 1: On the navigation menu bar click on the Insert option.

Step 2: Now click on the Picture option as shown in the figure:

Step 3: Then select This Device option from the menu.

Step 4: A Insert Picture dialog box will be pop up on the screen as shown in the figure:

Step 5: Next select the storage drive from the left menu where you have to save the image file.

Step 6: Now select the image file to insert.

Step 7: Next click on the insert button.

The picture is inserted in the document as shown in the figure:

Insert Pictures from Online Source

Step 4: Repeat the same steps from1 to 3.

Step 5: Next click on the Online Picture option from the menu as shown in the figure:

Step 6: A Online Picture dialog box will be pop up on the screen where you can select different online images.

Step 7: Next search the image name in the search bar box.

Step 8: Now select the image file from the menu as shown in the figure:

Step 9: Next click on the Insert option.

Finally, the image is inserted in the document as shown in the figure:

Format Added Images using MS Excel

Step 1: Now Adjust the image size by dragging the highlighted button as shown in the figure:

Step 2: On the navigation menu bar click on the Format option.

Step 3: Now select the picture style from the menu as shown in the figure:

Step 4: Next click on the Picture Border option and then select the border color from the color panel.

Finally, the Picture is inserted into the MS Excel sheet.

Источник

How to Insert Picture Into a Cell in Excel (a Step-by-Step Tutorial)

Watch Video – How to Insert Picture into a Cell in Excel

A few days ago, I was working with a data set that included a list of companies in Excel along with their logos.

I wanted to place the logo of each company in the cell adjacent to its name and lock it in such a way that when I resize the cell, the logo should resize as well.

I also wanted the logos to get filtered when I filter the name of the companies.

Wishful Thinking? Not Really.

You can easily insert a picture into a cell in Excel in a way that when you move, resize, and/or filter the cell, the picture also moves/resizes/filters.

Below is an example where the logos of some popular companies are inserted in the adjacent column, and when the cells are filtered, the logos also get filtered with the cells.

This could also be useful if you’re working with products/SKUs and their images.

When you insert an image in Excel, it not linked to the cells and would not move, filter, hide, and resize with cells.

In this tutorial, I will show you how to:

  • Insert a Picture Into a Cell in Excel.
  • Lock the Picture in the cell so that it moves, resizes, and filters with the cells.

Insert Picture into a Cell in Excel

Here are the steps to insert a picture into a cell in Excel:

  1. Go to the Insert tab.
  2. Click on the Pictures option (it’s in the illustrations group).
  3. In the ‘Insert Picture’ dialog box, locate the pictures that you want to insert into a cell in Excel.
  4. Click on the Insert button.
  5. Re-size the picture/image so that it can fit perfectly within the cell.
  6. Place the picture in the cell.
    • A cool way to do this is to first press the ALT key and then move the picture with the mouse. It will snap and arrange itself with the border of the cell as soon it comes close to it.

If you have multiple images, you can select and insert all the images at once (as shown in step 4).

You can also resize images by selecting it and dragging the edges. In the case of logos or product images, you may want to keep the aspect ratio of the image intact. To keep the aspect ratio intact, use the corners of an image to resize it.

When you place an image within a cell using the steps above, it will not stick with the cell in case you resize, filter, or hide the cells. If you want the image to stick to the cell, you need to lock the image to the cell it’s placed n.

To do this, you need to follow the additional steps as shown in the section below.

Lock the Picture with the Cell in Excel

Once you have inserted the image into the workbook, resized it ti fit within a cell, and placed it in the cell, you need to lock it to make sure it moves, filters, and hides with the cell.

Here are the steps to lock a picture in a cell:

  1. Right-click on the picture and select Format Picture.
  2. In the Format Picture pane, select Size & Properties and with the options in Properties, select ‘Move and size with cells’.

Now you can move cells, filter it, or hide it, and the picture will also move/filter/hide.

Try it yourself.. Download the Example File

This could be a useful trick when you have a list of products with their images, and you want to filter certain categories of products along with their images.

You can also use this trick while creating Excel Dashboards.

You May Also Like the Following Excel Tutorials:

Источник

Insert a Picture/Image in Excel Cell

How to Insert a Picture/Image in Excel Cell?

Table of contents

Inserting a picture or an image into an Excel cell is easy.

    For example, we have sales employees’ names in the Excel file. Below is the list.

We have their images on the computer hard disk.


We want to bring the image against each person’s name, respectively.

Note: All the images are dummy. We can download them from Google directly.

We must copy the above list of names and paste it into Excel. Make the row height as 36 and column width in Excel 14.3.

Go to the Insert tab and click on Pictures.

Once we click on Pictures, it asks us to choose the picture folder location from the computer. So, we must select the location and the pictures we want to insert.

We can insert a picture one by one in an Excel cell, or we can insert it in one shot. To insert at one go, we need to be sure which represents who. So, we are going to insert them one by one. Select the image we want to insert and click on Insert.

Now, we can see the image in our Excel file.

This picture is not yet ready to use. We need to resize this. We must select the picture and resize it using the drag and drop option in Excel from the corner edges of the image, or we can resize the height and width under the Format tab.

Note: Modify the row height as 118 and column width as 26.

To fit the picture to the cell size, we must hold the ALT key and drag the picture corners. After that, it will automatically fit the cell size.

Like this, we must repeat this task for all the employees.

Change Image Size According to Cell Size in Excel

Now, we need to fit these images to the cell size. Whenever the cell width or height changes, the picture also should change accordingly.

  • Step 1: First, we must select one image and press “Ctrl + A.” It will choose all the images in the active worksheet. (Make sure all the images are selected).
  • Step 2:Now, press “Ctrl + 1.” It will open up the “Format” option on the right-hand side of the screen. Note: We are using Excel 2016 version.

  • Step 3: Under “Format Picture,” select “Size & Properties.”

  • Step 4: Click on “Properties” and select the option “Move and size with cells.”

  • Step 5: We have locked the images to their respective cell sizes. It is dynamic now. As the cell changes, images are also kept changing.

How to Create an Excel Dashboard with Images?

We have created a master sheet that contains all the details of the employees.

  • Step 1: The sheet creates a dropdown list of employee lists in the dashboard.

  • Step 2: We must Apply VLOOKUPApply VLOOKUPThe VLOOKUP excel function searches for a particular value and returns a corresponding match based on a unique identifier. A unique identifier is uniquely associated with all the records of the database. For instance, employee ID, student roll number, customer contact number, seller email address, etc., are unique identifiers.read more to get the “Sales Value,” “Target,” “Efficiency Level,” “DOB,” and “DOJ” from the “Employee Details” sheet.

The values will be automatically updated as you change the name from the drop-down.

  • Step 3: The big part is getting the employee’s photo selected from the drop-down. For this, we need to create a “Name Manager.”

Go to “FORMULAS” > “Define Name” in Excel.

Things to Remember

  • We must make the image adjustment that fits or changes the cell movement.
  • Create a master sheet containing all the consolidated data to create a dashboard.
  • We must use the “ALT” key to adjust the image to the extreme corners of the cell.

Recommended Articles

This article is a guide to Insert a Picture/Image in Excel Cell. We discussed inserting a picture or an image into a cell in Excel and creating a dashboard with images in Excel, an example, and a downloadable Excel sheet. You can learn more about Excel from the following articles: –

Источник

Follow this quick guide to insert images in Excel

by Henderson Jayden Harper

Passionate about technology, Crypto, software, Windows, and everything computer-related, he spends most of his time developing new skills and learning more about the tech world. He also enjoys… read more


Updated on December 18, 2022

Reviewed by
Alex Serban

Alex Serban

After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server… read more

  • Before inserting an image in a Microsoft Excel cell, you need to allow the Insert Options to access pictures, charts, etc.
  • You can drag and drop images into the Excel cell, but it doesn’t support Windows Explorer.
  • Dragging and dropping images into the cell from Microsoft Word is an alternative, so refer to our below procedure. 

insert image into cell excel

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

Microsoft Excel is an excellent tool for storing and calculating data. It allows you to insert text, numbers, dates, and error values into the cells. However, a recently added feature now lets you insert images into cells in Excel.

Nonetheless, users report that they can’t insert new cells in Excel when working on the program.

Can I drag and drop images into an Excel cell?

The straightforward answer is Yes. You can drag and drop images into an Excel cell. It allows you to select images directly from a file, and drag and drop it into the desired cell.

However, Microsoft Excel doesn’t support using the drag-and-drop option to copy items from Windows Explorer and insert them in the cells. There’s no definite reason for the restriction, but there is a way around it.

Furthermore, the drag-and-drop option is not a registered feature in Microsoft Excel, so it doesn’t support inserting images directly from open files. Hence, the image must be embedded in a file to be viewed in Excel.

How do I insert a picture into a selection cell?

Go through the following before proceeding with the guide below:

  • Move the necessary images to an identifiable file.
  • Ensure Word is running on your PC.
  • Back up your current work on Excel before trying to insert any image.

The above checks will help prepare the necessary items to insert images in the Excel cell. Follow the steps below to start inserting.

1. Via the Insert tab

1.1 Allow the Insert options in Excel

  1. Launch Microsoft Excel and click on Files in the top-right corner.
  2. Click on Options.
  3. Then select the Advanced tab on the left pane. Go to the Cut, Copy and Paste tab, then check the box for the Show Insert Options button.
  4. Scroll down to the Display options for this workbook tab, check the box for All, then click the OK button.

The steps above allow you to access and use the Insert Options to cut, copy, and paste images, charts, etc., into the Excel cells.

1.2 Use the Insert feature to add an Image into a cell in Excel

  1. Go to the cell where you want to insert the image, click the Insert tab on the toolbar, tap the Illustration button, and select Picture.
  2. Select an option from the Insert Picture From section, choose the image you want, then click the Insert button.
  3. The picture will appear on the spreadsheet. Drag the small circles at the edges to modify the picture size until it is small enough to fit into the cell.
  4. Save your Excel file and continue your work.

The Insert Option allows you to access pictures and other items to add to the Excel cells you’re currently working on. Check our article on what to do if the toolbar is missing in Microsoft Excel.

Read more about this topic

  • Excel Running Slow? 4 Quick Ways to Make It Faster
  • Fix: Excel Stock Data Type Not Showing
  • Errors Were Detected While Saving [Excel Fix Guide]
  • Excel Not Scrolling Smoothly: Fix It in 5 Simple Steps

2. Insert an image into an Excel cell by dragging and dropping

  1. Launch Microsoft Word, and create a new document.
  2. Navigate to the directory of the image, and copy and paste it into the Word document.
  3. Launch Microsoft Excel and enter the cell you want to insert the image.
  4. Go to Word, click and hold on to the image, drag it across to the Excel spreadsheet, then drop it into the cell.
  5. If needed, drag the small circles at the edges to modify the picture size until it is small enough to fit into the cell.

Since Microsoft Excel doesn’t support dragging and dropping from Windows Explorer, using Microsoft Word is the best alternative. It allows you to drag images and drop them into your desired cells easily.

Read how to fix Microsoft Word not working on Windows 11.

Our readers can also check our guide on fixing corrupt Excel cells that may cause problems with their activities on Excel. Even more, you can read about what to do if you run into too many different cell formats error in Excel.

If you have further questions or suggestions on this guide, kindly drop them in the comments section.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Newsletter

Excel is generally said to be used for making complex calculations with formula and other functions. However, many times you may need to insert an image and picture in excel worksheet to give a visual representation of what is written in the excel. In this blog, we would learn how to insert an image or picture in an Excel cell. We would also unlock the technique to lock an image or picture into an excel cell such that when we resize or filter the cells containing the image, the picture automatically gets resized or filtered along with that cell.

This technique is very useful for creating a business product catalog with the product name in a cell and its image in the adjacent cell.

The below demonstration is the glimpse of what we are going to achieve in this blog.

Demo - Insert and Lock Image in Cell in Excel

Please download the practice file using ‘Download’ button below.

Let us now first unlock the technique to insert and resize the image in a cell in Excel.

Follow the below steps to add an image in excel:

Under the excel ribbon options, click on the ‘Insert‘ tab and under the ‘Illustration‘ group, click on the ‘Pictures‘ button.

Pictures Option Under Insert Tab

As a result, the ‘Insert Picture‘ dialog box would appear on your screen. Navigate to the path which contains the pictures, select all of them, and then click on the ‘Insert’ button. Refer to the image below:

Insert Picture Dialog Box

You would notice that the selected pictures gets inserted in to the excel worksheet.

The next step now is to place the pictures in the relevant cells in Excel. To do this, left-click on the picture and drag it to the relevant cell and finally release the mouse cursor. Refer to the below demonstration.

Picture Drag and Drop in Cell

Once the pictures are put in relevant cells, the next step is to resize it to fit the image or picture in the cell. The two most common ways that almost everybody is aware of are-

  • By adjusting the picture borders by using the circles on the edges and borders of the image.
  • By manually entering the height and width of the picture under the ‘Format’ tab.
Manually Adjusting Picture Height Width

Interesting Way to Exactly Fit Image or Picture to Cell Borders

The third and the interesting way to exactly fit the image or picture to excel cell walls is this one –

  • Click on the image, and press and hold the ALT key on your keyboard.
  • Do not release the ALT press, and simply drag the image toward the top-left corner of the cell. As you come closure to the cell corner, the image would automatically stick exactly to the cell’s top-left corner.
  • Again, do not release the ALT press, and drag the bottom-right corner of the image toward the bottom-right corner of cell. See the demonstration below.
Exactly Fit Image to Cell Border ALT Key

With this, we have completed the technique of inserting an image into the cell in Excel.

Now, let us perform one small activity, to understand something interesting.

Simply, try to resize the column with contains the images (column B). You would notice that the image would not automatically resize along with the cell. It remains intact at the same position. Similarly, if you filter column A, the images in column B would not accordingly filter, as demonstrated below:

Resize Filter Image not Working

Reason – At this point in time, the picture is not a part of the cell, but it is placed above the cell in the worksheet.

To lock the picture into the cell in Excel, so that it can be resized and filtered along with the cell, follow the below section of the blog.

Insert and Lock Picture in Cell in Excel

Related Post : How to Lookup on Picture in Excel

How to Lock Picture or Image Into Excel Cell

To lock the image or picture in excel cell, we need to change the properties of the image. Below steps would help you in this:

Lock Picture / Image Into Excel Cell

  1. Select All Images

    Select any picture and press Ctrl + A to select all the images in the worksheet.

  2. Size and Properties

    Right click on any of the image and click on the option – ‘Size and Properties’.
    Right-Click Size and Properties Option

  3. Format Picture > Move and Size with Cell Option

    A ‘Format Picture’ pane would appear on the right of the worksheet. Expand the ‘Properties’ section, and select the radio button ‘Move and Size with Cells‘ and that’s it, the image is now the part of the cell.
    Format Picture Section

This means, if you now resize the cell, the image would also get resized accordingly. Similarly, the images in the filtered cell would also hide along with the cell.

With this, we have reached the end of this blog. Now, make your own business catalog with the images as a part of your cell. Share your views and comments in the comment section.

RELATED POSTS

  • AutoFit Column Width and Row Height in Excel

  • How to Insert Picture or Image in Excel Comment

  • How to Wrap Text in Excel Cell

  • Assign Macro to Image and CheckBox

  • Change Row Height, Column Width VBA (Autofit)

  • Apply Border to Cells using VBA in Excel

Like this post? Please share to your friends:
  • Excel ifs с несколькими условиями
  • Excel ifna по русски
  • Excel iferror with if
  • Excel if функция замена текст
  • Excel if несколько сумма ячеек