Insert picture to excel cell

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

Содержание

  • Особенности вставки картинок
    • Вставка изображения на лист
    • Редактирование изображения
  • Прикрепление картинки
    • Способ 1: защита листа
    • Способ 2: вставка изображения в примечание
    • Способ 3: режим разработчика
  • Вопросы и ответы

Картинка в Microsoft Excel

Некоторые задачи, выполняемые в таблицах, требуют установки в них различных изображений или фото. Программа Excel имеет инструменты, которые позволяют произвести подобную вставку. Давайте разберемся, как это сделать.

Особенности вставки картинок

Для того, чтобы вставить изображение в таблицу Эксель, оно сначала должно быть загружено на жесткий диск компьютера или подключенный к нему съёмный носитель. Очень важной особенностью вставки рисунка является то, что он по умолчанию не привязывается к конкретной ячейке, а просто размещается в выбранной области листа.

Урок: Как вставить картинку в Microsoft Word

Вставка изображения на лист

Сначала выясним, как вставить рисунок на лист, а уже потом разберемся, как прикрепить картинку к конкретной ячейке.

  1. Выделяем ту ячейку, куда вы хотите вставить изображение. Переходим во вкладку «Вставка». Кликаем по кнопке «Рисунок», которая размещена в блоке настроек «Иллюстрации».
  2. Переход к вставки картинки в Microsoft Excel

  3. Открывается окно вставки рисунка. По умолчанию оно всегда открывается в папке «Изображения». Поэтому вы можете предварительно перебросить в неё ту картинку, которую собираетесь вставить. А можно поступить другим путем: через интерфейс этого же окна перейти в любую другую директорию жесткого диска ПК или подключенного к нему носителя. После того, как вы произвели выбор картинки, которую собираетесь добавить в Эксель, жмите на кнопку «Вставить».

Выбор изображения для вставки в Microsoft Excel

После этого рисунок вставляется на лист. Но, как и говорилось ранее, он просто лежит на листе и фактически ни с одной ячейкой не связан.

Расположение изображения на листе в Microsoft Excel

Редактирование изображения

Теперь нужно отредактировать картинку, придать ей соответствующие формы и размер.

  1. Кликаем по изображению правой кнопкой мыши. Открываются параметры рисунка в виде контекстного меню. Кликаем по пункту «Размер и свойства».
  2. Переход в размер и свойства в Microsoft Excel

  3. Открывается окно, в котором присутствует множество инструментов по изменению свойств картинки. Тут можно изменить её размеры, цветность, произвести обрезку, добавить эффекты и сделать много другого. Всё зависит от конкретного изображения и целей, для которых оно используется.
  4. Окно формата рисунка в Microsoft Excel

  5. Но в большинстве случаев нет необходимости открывать окно «Размеры и свойства», так как вполне хватает инструментов, которые предлагаются на ленте в дополнительном блоке вкладок «Работа с рисунками».
  6. Вкладка работа с изображениями в Microsoft Excel

  7. Если мы хотим вставить изображение в ячейку, то самым важным моментом при редактировании картинки является изменение её размеров, чтобы они не были больше размеров самой ячейки. Изменить размер можно следующими способами:
    • через контекстное меню;
    • панель на ленте;
    • окно «Размеры и свойства»;
    • перетащив границы картинки с помощью мышки.

Изменение размера изображения в Microsoft Excel

Прикрепление картинки

Но, даже после того, как изображение стало меньше ячейки и было помещено в неё, все равно оно осталось неприкрепленным. То есть, если мы, например, произведем сортировку или другой вид упорядочивания данных, то ячейки поменяются местами, а рисунок останется все на том же месте листа. Но, в Excel все-таки существуют некоторые способы прикрепления картинки. Рассмотрим их далее.

Lumpics.ru

Способ 1: защита листа

Одним из способов прикрепить изображение является применение защиты листа от изменений.

  1. Подгоняем размер рисунка под размер ячейки и вставляем его туда, как было рассказано выше.
  2. Изображение в ячейке в Microsoft Excel

  3. Кликаем по изображению и в контекстном меню выбираем пункт «Размер и свойства».
  4. Переход в свойства изображения в Microsoft Excel

  5. Открывается окно свойств рисунка. Во вкладке «Размер» удостоверяемся, чтобы величина картинки была не больше размера ячейки. Также проверяем, чтобы напротив показателей «Относительно исходного размера» и «Сохранить пропорции» стояли галочки. Если какой-то параметр не соответствует указанному выше описанию, то изменяем его.
  6. Размер изображения в Microsoft Excel

  7. Переходим во вкладку «Свойства» этого же окна. Устанавливаем галочки напротив параметров «Защищаемый объект» и «Выводить объект на печать», если они не установлены. Ставим переключатель в блоке настроек «Привязка объекта к фону» в позицию «Перемещать и изменять объект вместе с ячейками». Когда все указанные настройки выполнены, жмем на кнопку «Закрыть», расположенную в нижнем правом углу окна.
  8. Изменение свойства изображения в Microsoft Excel

  9. Выделяем весь лист, нажатием сочетания клавиш Ctrl+A, и переходим через контекстное меню в окно настроек формата ячеек.
  10. Переход в формат ячеек в Microsoft Excel

  11. Во вкладке «Защита» открывшегося окна снимаем галочку с параметра «Защищаемая ячейка» и жмем на кнопку «OK».
  12. Снятие защиты с ячеек в Microsoft Excel

  13. Выделяем ячейку, где находится картинка, которую нужно закрепить. Открываем окно формата и во вкладке «Защита» устанавливаем галочку около значения «Защищаемая ячейка». Кликаем по кнопке «OK».
  14. Установка защиты ячейки в Microsoft Excel

  15. Во вкладке «Рецензирование» в блоке инструментов «Изменения» на ленте кликаем по кнопке «Защитить лист».
  16. Переход к включению защиты листа в Microsoft Excel

  17. Открывается окошко, в котором вводим желаемый пароль для защиты листа. Жмем на кнопку «OK», а в следующем открывшемся окне снова повторяем введенный пароль.

Включение защиты листа в Microsoft Excel

После этих действий диапазоны, в которых находятся изображения, защищены от изменений, то есть, картинки к ним привязаны. В этих ячейках нельзя будет производить никаких изменений до снятия защиты. В других диапазонах листа, как и прежде, можно делать любые изменения и сохранять их. В то же время, теперь даже если вы решите провести сортировку данных, то картинка уже никуда не денется с той ячейки, в которой находится.

Урок: Как защитить ячейку от изменений в Excel

Способ 2: вставка изображения в примечание

Также можно привязать рисунок, вставив его в примечание.

  1. Кликаем по ячейке, в которую планируем вставить изображение, правой кнопкой мышки. В контекстном меню выбираем пункт «Вставить примечание».
  2. Вставка примечания в Microsoft Excel

  3. Открывается небольшое окошко, предназначенное для записи примечания. Переводим курсор на его границу и кликаем по ней. Появляется ещё одно контекстное меню. Выбираем в нём пункт «Формат примечания».
  4. Переход в формат примечания в Microsoft Excel

  5. В открывшемся окне настройки формата примечаний переходим во вкладку «Цвета и линии». В блоке настроек «Заливка» кликаем по полю «Цвет». В открывшемся перечне переходим по записи «Способы заливки…».
  6. Формат примечания в Microsoft Excel

  7. Открывается окно способов заливки. Переходим во вкладку «Рисунок», а затем жмем на кнопку с одноименным наименованием.
  8. Добавление рисунка в примечание в Microsoft Excel

  9. Открывается окно добавления изображения, точно такое же, как было описано выше. Выбираем рисунок и жмем на кнопку «Вставить».
  10. Выбор изображения для вставки в Microsoft Excel

  11. Изображение добавилось в окно «Способы заливки». Устанавливаем галочку напротив пункта «Сохранять пропорции рисунка». Жмем на кнопку «OK».
  12. Изображение в примечании в Microsoft Excel

  13. После этого возвращаемся в окно «Формат примечания». Переходим во вкладку «Защита». Убираем галочку с параметра «Защищаемый объект».
  14. Отключение защиты примечания в Microsoft Excel

  15. Переходим во вкладку «Свойства». Устанавливаем переключатель в позицию «Перемещать и изменять объект вместе с ячейками». Вслед за этим жмем на кнопку «OK».

Свойства примечания в Microsoft Excel

После выполнения всех вышеперечисленных действий, изображение не только будет вставлено в примечание ячейки, но и привязано к ней. Конечно, данный способ подходит не всем, так как вставка в примечание налагает некоторые ограничения.

Изображение вставлено в примечание в Microsoft Excel

Способ 3: режим разработчика

Привязать изображения к ячейке можно также через режим разработчика. Проблема состоит в том, что по умолчанию режим разработчика не активирован. Так что, прежде всего, нам нужно будет включить его.

  1. Находясь во вкладке «Файл» переходим в раздел «Параметры».
  2. Переход в раздел параметры в Microsoft Excel

  3. В окне параметров перемещаемся в подраздел «Настройка ленты». Устанавливаем галочку около пункта «Разработчик» в правой части окна. Жмем на кнопку «OK».
  4. Включение режима раздработчика в Microsoft Excel

  5. Выделяем ячейку, в которую планируем вставить картинку. Перемещаемся во вкладку «Разработчик». Она появилась после того, как мы активировали соответствующий режим. Кликаем по кнопке «Вставить». В открывшемся меню в блоке «Элементы ActiveX» выбираем пункт «Изображение».
  6. Выбор элемента AntiveX в Microsoft Excel

  7. Появляется элемент ActiveX в виде пустого четырехугольника. Регулируем его размеры перетаскиванием границ и помещаем в ячейку, где планируется разместить изображение. Кликаем правой кнопкой мыши по элементу. В контекстном меню выбираем пункт «Свойства».
  8. Свойства элемента в Microsoft Excel

  9. Открывается окно свойств элемента. Напротив параметра «Placement» устанавливаем цифру «1» (по умолчанию «2»). В строке параметра «Picture» жмем на кнопку, на которой изображено многоточие.
  10. Свойства элемента в программе Microsoft Excel

  11. Открывается окно вставки изображения. Ищем нужную картинку, выделяем её и жмем на кнопку «Открыть».
  12. Открытие изображения в Microsoft Excel

  13. После этого можно закрывать окно свойств. Как видим, рисунок уже вставлен. Теперь нам нужно полностью привязать его к ячейке. Выделяем картинку и переходим во вкладку «Разметка страницы». В блоке настроек «Упорядочить» на ленте жмем на кнопку «Выровнять». Из выпадающего меню выбираем пункт «Привязать к сетке». Затем чуть-чуть двигаем за край рисунка.

Привязка к сетке в Microsoft Excel

После выполнения вышеперечисленных действий картинка будет привязано к сетке и выбранной ячейке.

Как видим, в программе Эксель имеется несколько способов вставить изображение в ячейку и привязать его к ней. Конечно, способ со вставкой в примечание подойдет далеко не всем пользователям. А вот два остальных варианта довольно универсальны и каждый сам должен определиться, какой из них для него удобнее и максимально соответствует целям вставки.

Содержание

  1. Insert a Picture/Image in Excel Cell
  2. How to Insert a Picture/Image in Excel Cell?
  3. Change Image Size According to Cell Size in Excel
  4. How to Create an Excel Dashboard with Images?
  5. Things to Remember
  6. Recommended Articles
  7. How to insert picture in Excel cell, comment, header or footer
  8. How to insert picture in Excel
  9. Insert an image from a computer
  10. Add picture from the web, OneDrive or Facebook
  11. Paste picture in Excel from another program
  12. How to insert picture in Excel cell
  13. How to insert multiple pictures into cells in Excel
  14. How to insert picture in a comment
  15. A quick way to insert a picture in a comment
  16. How to embed image into Excel header or footer
  17. Insert a picture in Excel cell with formula
  18. Insert data from another sheet as picture
  19. How to copy/paste as picture in Excel
  20. Make a dynamic picture with Camera tool
  21. How to modify picture in Excel
  22. How to copy or move picture in Excel
  23. How to resize picture in Excel
  24. How to change picture’s colors and styles
  25. How to replace picture in Excel
  26. How to delete picture in Excel

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: –

Источник

by Svetlana Cheusheva, updated on March 20, 2023

The tutorial shows different ways to insert an image in Excel worksheet, fit a picture in a cell, add it to a comment, header or footer. It also explains how to copy, move, resize or replace an image in Excel.

While Microsoft Excel is primarily used as a calculation program, in some situations you may want to store pictures along with data and associate an image with a particular piece of information. For example, a sales manager setting up a spreadsheet of products may want to include an extra column with product images, a real estate professional may wish to add pictures of different buildings, and a florist would definitely want to have photos of flowers in their Excel database.

In this tutorial, we will look at how to insert image in Excel from your computer, OneDrive or from the web, and how to embed a picture into a cell so that it adjusts and moves with the cell when the cell is resized, copied or moved. The below techniques work in all versions of Excel 2010 — Excel 365.

How to insert picture in Excel

All versions of Microsoft Excel allow you to insert pictures stored anywhere on your computer or another computer you are connected to. In Excel 2013 and higher, you can also add an image from web pages and online storages such as OneDrive, Facebook and Flickr.

Insert an image from a computer

Inserting a picture stored on your computer into your Excel worksheet is easy. All you have to do is these 3 quick steps:

  1. In your Excel spreadsheet, click where you want to put a picture.
  2. Switch to the Insert tab >Illustrations group, and click Pictures.
  3. In the Insert Picture dialog that opens, browse to the picture of interest, select it, and click Insert. This will place the picture near the selected cell, more precisely, the top left corner of the picture will align with the top left corner of the cell.

To insert several images at a time, press and hold the Ctrl key while selecting pictures, and then click Insert, like shown in the screenshot below:

Done! Now, you can re-position or resize your image, or you can lock the picture to a certain cell in a way that it resizes, moves, hides and filters together with the associated cell.

Add picture from the web, OneDrive or Facebook

In the recent versions of Excel 2016 or Excel 2013, you can also add images from web-pages by using Bing Image Search. To have it done, perform these steps:

  1. On the Insert tab, click the Online Pictures button:
  2. The following window will appear, you type what you’re looking for into the search box, and hit Enter:
  3. In search results, click on the picture you like best to select it, and then click Insert. You can also select a few images and have them inserted in your Excel sheet in one go:

If you are looking for something specific, you can filter the found images by size, type, color or license — just use one or more filters at the top of the search results.

Note. If you plan to distribute your Excel file to someone else, check the picture’s copyright to make sure you can legally use it.

Besides adding images from Bing search, you can insert a picture stored on your OneDrive, Facebook or Flickr. For this, click the Online Pictures button on the Insert tab, and then do one of the following:

  • Click Browse next to OneDrive, or
  • Click the Facebook or Flickr icon at the bottom of the window.

Note. If your OneDrive account does not appear in the Insert Pictures window, most likely you are not signed in with your Microsoft account. To fix this, click the Sign in link at the upper right corner of the Excel window.

Paste picture in Excel from another program

The easiest way to insert a picture in Excel from another application is this:

  1. Select an image in another application, for example in Microsoft Paint, Word or PowerPoint, and click Ctrl + C to copy it.
  2. Switch back to Excel, select a cell where you want to put the image and press Ctrl + V to paste it. Yep, it’s that easy!

How to insert picture in Excel cell

Normally, an image inserted in Excel lies on a separate layer and «floats» on the sheet independently from the cells. If you want to embed an image into a cell, change the picture’s properties as shown below:

  1. Resize the inserted picture so that it fits properly within a cell, make the cell bigger if needed, or merge a few cells.
  2. Right-click the picture and select Format Picture…
  3. On the Format Picture pane, switch to the Size & Properties tab, and select the Move and size with cells option.

That’s it! To lock more images, repeat the above steps for each image individually. You can even put two or more images into one cell if needed. As a result, you will have a beautifully organized Excel sheet where each image is linked to a particular data item, like this:

Now, when you move, copy, filter or hide the cells, the pictures will also be moved, copied, filtered or hidden. The image in the copied/moved cell will be positioned the same way as the original.

How to insert multiple pictures into cells in Excel

As you have just seen, it’s quite easy to add a picture in an Excel cell. But what if you have a dozen different images to insert? Changing the properties of each picture individually would be a waste of time. With our Ultimate Suite for Excel, you can have the job done in seconds.

  1. Select the left top cell of the range where you want to insert pictures.
  2. On the Excel ribbon, go to the Ablebits Tools tab >Utilities group, and click the Insert Picture button.
  3. Choose whether you want to arrange pictures vertically in a column or horizontally in a row, and then specify how you want to fit images:
    • Fit to Cell — resize each picture to fit the size of a cell.
    • Fit to Image — adjust each cell to the size of a picture.
    • Specify Height — resize the picture to a specific height.
  4. Select the pictures you want to insert and click the Open button.

Note. For pictures inserted in this way, the Move but don’t size with cells option is selected, meaning the pictures will keep their size when you move or copy cells.

Inserting an image into an Excel comment may often convey your point better. To have it done, please follow these steps:

  1. Create a new comment in the usual way: by clicking New Comment on the Review tab, or selecting Insert Comment from the right-click menu, or pressing Shift + F2 .
  2. Right click the border of the comment, and choose Format Comment… from the context menu.

If you are inserting a picture into an existing comment, click Show All Comments on the Review tab, and then right-click the border of the comment of interest.

  • In the Format Comment dialog box, switch to the Colors and Lines tab, open the Color drop down list, and click Fill Effects:
  • In the Fill Effect dialog box, go to the Picture tab, click the Select Picture button, locate the desired image, select it and click Open. This will show the picture preview in the comment.

    If you want to Lock picture aspect ratio, select the corresponding checkbox like shown in the screenshot below:

  • Click OK twice to close both dialogs.
  • The picture has been embedded into the comment and will show up when you hover over the cell:

    If you’d rather not waste your time on routine tasks like this, Ultimate Suite for Excel can save a few more minutes for you. Here’s how:

    1. Select a cell where you want to add a comment.
    2. On the Ablebits Tools tab, in the Utilities group, click Comments Manager >Insert Picture.
    3. Select the image you want to insert and click Open. Done!

    In situations when you want to add a picture into the header or footer of your Excel worksheet, proceed with the following steps:

    1. On the Insert tab, in the Text group, click Header & Footer. This should take you to the Header & Footer tab.
    2. To insert a picture in the header, click a left, right or center header box. To insert a picture in the footer, first click the text «Add footer», and then click within one of the three boxes that will appear.
    3. On the Header & Footer tab, in the Header & Footer Elements group, click Picture.
    4. The Insert Pictures dialog window will pop up. You browse to the picture you want to add and click Insert. The &[Picture] placeholder will appear in the header box. As soon as you click anywhere outside of the header box, the inserted picture will appear:

    Insert a picture in Excel cell with formula

    Microsoft 365 subscribers have one more exceptionally easy way to insert a picture in cells — the IMAGE function. All you need to do is:

    1. Upload your image to any website with the «https» protocol in any of these formats: BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, or WEBP.
    2. Insert an IMAGE formula into a cell.
    3. Press the Enter key. Done!

    The image immediately appears in a cell. The size is adjusted automatically to fit into the cell maintaining the aspect ratio. It’s also possible to fill the entire cell with the image or set given width and height. When you hover over the cell, a bigger tooltip will pop up.

    Insert data from another sheet as picture

    As you have just seen, Microsoft Excel provides a numbers of different ways to insert an image into a cell or in a specific area of a worksheet. But did you know you can also copy information from one Excel sheet and insert it in another sheet as an image? This technique comes in handy when you are working on a summary report or assembling data from several worksheets for printing.

    Overall, there are two methods to insert Excel data as picture:

    Copy as Picture option — allows copy/pasting information from another sheet as a static image.

    Camera tool — inserts data from another sheet as a dynamic picture that updates automatically when the original data changes.

    How to copy/paste as picture in Excel

    To copy Excel data as an image, select the cells, chart(s) or object(s) of interest and do the following.

    1. On the Home tab, in the Clipboard group, click the little arrow next to Copy, and then click Copy as Picture…
    2. Choose whether you want to save the copied contents As shown on screen or As shown when printed, and click OK:
    3. On another sheet or in a different Excel document, click where you want to put the picture and press Ctrl + V .

    That’s it! The data from one Excel worksheet is pasted into another sheet as a static picture.

    Make a dynamic picture with Camera tool

    To begin with, add the Camera tool to your Excel ribbon or Quick Access Toolbar as explained here.

    With the Camera button in place, perform the following steps to take a photo of any Excel data including cells, tables, charts, shapes, and the like:

    1. Select a range of cells to be included in the picture. To capture a chart, select the cells surrounding it.
    2. Click on the Camera icon.
    3. In another worksheet, click where you want to add a picture. That’s all there is to it!

    Unlike the Copy as Picture option, Excel Camera creates a «live» image that synchronizes with the original data automatically.

    How to modify picture in Excel

    After inserting a picture in Excel what is the first thing you’d usually want to do with it? Position properly on the sheet, resize to fit into a cell, or maybe try some new designs and styles? The following sections demonstrate some of the most frequent manipulations with images in Excel.

    How to copy or move picture in Excel

    To move an image in Excel, select it and hover the mouse over the picture until the pointer changes into the four-headed arrow, then you can click the image and drag it anywhere you want:

    To adjust the position of a picture in a cell, press and hold the Ctrl key while using the arrows keys to reposition the picture. This will move the image in small increments equal to the size of 1 screen pixel.

    To move an image to a new sheet or workbook, select the image and press Ctrl + X to cut it, then open another sheet or a different Excel document and press Ctrl + V to paste the image. Depending on how far you’d like to move an image in the current sheet, it may also be easier to use this cut/paste technique.

    To copy a picture to clipboard, click on it and press Ctrl + C (or right-click the picture, and then click Copy). After that, navigate to where you wish to place a copy (in the same or in a different worksheet), and press Ctrl + V to paste the picture.

    How to resize picture in Excel

    The easiest way to resize an image in Excel is to select it, and then drag in or out by using the sizing handles. To keep the aspect ratio intact, drag one of the corners of the image.

    Another way to resize a picture in Excel is to type the desired height and width in inches in the corresponding boxes on the Picture Tools Format tab, in the Size group. This tab appears on the ribbon as soon as you select the picture. To preserve the aspect ratio, type just one measurement and let Excel change the other automatically.

    How to change picture’s colors and styles

    Of course, Microsoft Excel does not have all the capabilities of photo editing software programs, but you may be surprised to know how many different effects you can apply to images directly in your worksheets. For this, select the picture, and navigate to the Format tab under Picture Tools:

    Here is a short overview of the most useful format options:

    • Remove the image background (Remove Background button in the Adjust group).
    • Improve the brightness, sharpness or contrast of the picture (Corrections button in the Adjust group).
    • Adjust the image colors by changing saturation, tone or do complete recoloring (Color button in the Adjust group).
    • Add some artistic effects so that your image looks more like a painting or sketch (Artistic Effects button in the Adjust group).
    • Apply special picture styles such as 3-D effect, shadows, and reflections (Picture Styles group).
    • Add or remove the picture borders (Picture Border button in the Picture Styles group).
    • Reduce the image file size (Compress Pictures button in the Adjust group).
    • Crop the picture to remove unwanted areas (Crop button in the Size group)
    • Rotate the picture at any angle and flip it vertically or horizontally (Rotate button in the Arrange group).
    • And more!

    To restore the original size and format of the image, click the Reset Picture button in the Adjust group.

    How to replace picture in Excel

    To replace an existing picture with a new one, right-click it, and then click Change Picture. Choose whether you want to insert a new picture from a file or online sources,
    locate it, and click Insert:

    The new picture will be placed exactly in the same position as the old one and will have the same formatting options. For example, if the previous picture was inserted into a cell, the new one will also be.

    How to delete picture in Excel

    To delete a single picture, simply select it and press the Delete button on your keyboard.

    To delete several pictures, press and hold Ctrl while you select images, and then press Delete.

    To delete all pictures on the current sheet, use the Go To Special feature in this way:

    • Press F5 key to open the Go To dialog box.
    • Click the Special… button at the bottom.
    • In the Go To Special dialog, check the Object option, and click OK. This will select all pictures on the active worksheet, and you press the Delete key to delete them all.

    Note. Please be very careful when using this method because it selects all objects including pictures, shapes, WordArt, etc. So, before pressing Delete, make sure the selection does not contain some objects that you’d like to keep.

    This is how you insert and work with pictures in Excel. I hope you will find the information helpful. Anyway, I thank you for reading and hope to see you on our blog next week!

    Источник

    Windows: 15608.10000
    Mac: 16.65 (сборка 22080701)
    Веб-сайт: октябрь 2022
    г.
    iOS: 2.65 (22080701)
    Android: 15608.10000

    Функция IMAGE вставляет изображения в ячейки из исходного расположения вместе с альтернативным текстом. Затем можно перемещать и изменять размер ячеек, сортировать и фильтровать, а также работать с изображениями в таблице Excel. Используйте эту функцию для визуального улучшения списков данных, таких как инвентаризация, игры, сотрудники и математические понятия.

    Обзор списка с помощью функции IMAGE

    Синтаксис

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

    Функция IMAGE принимает следующие аргументы:

    Источник    URL-адрес файла изображения с использованием протокола https. Обязательно. Поддерживаемые форматы файлов включают BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, а также WEBP (WEBP не поддерживается в Интернете и Android).

    alt_text      Альтернативный текст, описывающий изображение для специальных возможностей. Необязательный параметр.

    Размеров      Задает размеры изображения. Необязательный параметр. Существует несколько возможных значений:

    • 0      Поместите изображение в ячейку и сохраните его пропорции.

    • 1      Заполните ячейку изображением и игнорируйте его пропорции.

    • 2      Сохраните исходный размер изображения, который может превышать границу ячейки.

    • 3      Настройте размер изображения с помощью аргументов высоты и ширины.

    Высота       Пользовательская высота изображения в пикселях. Необязательный параметр.

    Ширина        Пользовательская ширина изображения в пикселях. Необязательный параметр.

    Заметки

    Будьте осторожны, настраивая высоту и ширину , так как это может изменить пропорции или пропорции между высотой и шириной исходного изображения.

    Если источником является URL-адрес, требующий проверки подлинности, изображение не отображается.

    Если источником является URL-адрес, который перенаправляется, он блокируется из-за проблем безопасности.

    Чтобы обойти ограничение URL-адресов в 255 символов, избегайте копирования длинного URL-адреса из адресной строки браузера. Вместо этого щелкните правой кнопкой мыши изображение в браузере, выберите Копировать ссылку на изображение, вставьте значение в ячейку Excel и составьте ссылку на нее в качестве источника. Например, если длинный URL-адрес копируется в F10, создайте следующий вызов функции: =IMAGE(F10).

    Специальные возможности

    Мы рекомендуем использовать эффективный альтернативный текст для повышения специальных возможностей:

    • Выделите ячейку, содержащую формулу IMAGE, а затем в строке формул добавьте альтернативный текст в качестве второго аргумента формулы (alt_text).

    • Если источник изображения является связанным типом данных или записью, добавьте альтернативный текст в исходный источник данных или попросите администратора добавить его.

    • Если изображение является производным от более сложной формулы, добавьте замещающий текст в ту формулу или источник, откуда оно поступает.

    Дополнительные сведения см. в разделе Все, что необходимо знать для написания эффективного замещающего текста.

    Ошибки

    Excel возвращает #VALUE! ошибка при следующих обстоятельствах:

    • Если файл изображения не является поддерживаемым форматом.

    • Если источник или alt_text не является строкой.

    • Если размер не находится в диапазоне от 0 до 3.

    • Если размер равен 3, но высота и ширина пусты или содержат значения меньше 1.

    • Если размер равен 0, 1 или 2, вы также указываете ширину или высоту.

    Дополнительные сведения см. в статье Исправление ошибки #VALUE!.

    Если возникли проблемы с подключением к Интернету или сервером, предоставляющим источник, Excel возвращает #CONNECT! . Проверьте подключение к Интернету на устройстве и повторите попытку. Дополнительные сведения см. в статье Исправление ошибки #CONNECT!.

    Если параметры безопасности блокируют доступ к файлу изображения в ячейке, Excel возвращает #BLOCKED! . Проверьте параметры безопасности для связанных типов данных. Кроме того, если это происходит с Excel для Интернета или Excel Mobile, убедитесь, что вы включаете изображения с помощью бизнес-панели в верхней части книги. Дополнительные сведения см. в статье Исправление ошибки #BLOCKED!.

    Примеры

    Скопируйте образец данных из следующей таблицы и вставьте его в ячейку A1 нового листа Excel. 

    После вставки этого примера оставьте его выбранным. Задайте для стиля ячейки значение Обычный (домашняя > Стили ячеек), высоту строки — 30 (Главная > Формат > Высота строки), а ширину столбца — 16 (Главная > Формат > Ширина столбца).

    Данные

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

    Цилиндр

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

    Пирамиды

    Формула

    Результаты

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

    Изображение сферы

    =IMAGE(A2, B2, 0)

    Изображение цилиндра

    =IMAGE(A3, B3, 1)

    Изображение треугольника вне пропорций

    После вставки этого примера оставьте его выбранным. Задайте для стиля ячейки значение Обычный (главная > Стили ячеек), высоту строки — 57 (Главная > Формат > Высота строки), а ширину столбца — 21 (Главная > Формат > Ширина столбца).

    Данные

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

    Пирамиды

    Формула

    Результаты

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

    Изображение увеличенного треугольника

    См. также

    Изменение размера рисунка, фигуры, текстового поля или объекта WordArt

    Какие связанные типы данных есть в Excel?

    Добавление альтернативного текста к фигуре, рисунку, диаграмме, рисунку SmartArt или другому объекту

    Понравилась статья? Поделить с друзьями:
  • Insert picture into picture word
  • Insert picture in excel vba
  • Insert picture from microsoft word
  • Insert photos in excel
  • Insert photo in word