Contents
Sometimes, to perform certain tasks in Excel, you need to insert some kind of picture or photo into the table. Let’s see how exactly this can be done in the program.
Note: before proceeding directly to the procedure for inserting a picture into Excel, you need to have it at hand – on the computer’s hard drive or USB drive that is connected to the PC.
Content
Inserting an image on a sheet
To begin with, we carry out preparatory work, namely, open the desired document and go to the required sheet. We proceed according to the following plan:
- We get up in the cell where we plan to insert the picture. Switch to tab “Insert”where we click on the button “Illustrations”. In the drop-down list, select the item “Drawings”.
- A window will appear on the screen in which you need to select the desired image. To do this, first go to the folder containing the required file (by default, the folder “Images”), then click on it and press the button “Open” (or you can just double-click on the file).
- As a result, the selected picture will be inserted on the sheet of the book. However, as you can see, it just placed on top of the cells and has nothing to do with them. So let’s move on to the next steps.
Adjusting the picture
Now we need to adjust the inserted image by giving it the desired dimensions.
- Click on the picture with the right mouse button. In the dropdown list, select “Size and Properties”.
- A picture format window will appear, where we can fine-tune its parameters:
- dimensions (height and width);
- angle of rotation;
- height and width as a percentage;
- keeping proportions, etc..
- However, in most cases, instead of going to the picture format window, the settings that can be made in the tab “Format” (in this case, the drawing itself should be selected).
- Let’s say we need to adjust the size of the image so that it does not go beyond the boundaries of the selected cell. You can do this in different ways:
- go to settings “Dimensions and Properties” through the context menu of the picture and adjust the size in the window that appears.
- set the dimensions using the appropriate tools in the tab “Format” on the program ribbon.
- holding the left mouse button, drag the lower right corner of the picture diagonally upwards.
Attaching an image to a cell
So, we inserted a picture on an Excel sheet and adjusted its size, which allowed us to fit it into the borders of the selected cell. Now you need to attach a picture to this cell. This is done so that in cases where a change in the structure of the table leads to a change in the original location of the cell, the picture moves with it. You can implement this in the following way:
- We insert an image and adjust its size to fit the cell borders, as described above.
- Click on the image and select from the list “Size and Properties”.
- Before us, the already familiar picture format window will appear. After making sure that the dimensions correspond to the desired values, and also that there are checkboxes “Keep proportions” и “Relative to the original size”, go к “Properties”.
- In the properties of the picture, put the checkboxes in front of the items “Protected object” и “Print object”. Also, select the option “Move and resize with cells”.
Protecting a cell with an image from changes
This measure, as the name of the header implies, is needed in order to protect the cell containing the picture from being changed and deleted. Here is what you need to do for this:
- Select the entire sheet, for which we first remove the selection from the image by clicking on any other cell, and then press the key combination Ctrl + A. Then we call the context menu of the cells by right-clicking anywhere in the selected area and select the item “Cell Format”.
- In the formatting window, switch to the tab “Protection”, where we uncheck the box opposite the item “Protected cell” and click OK.
- Now click on the cell where the picture was inserted. After that, also through the context menu, go to its format, then go to the tab “Protection”. Check the box next to the option “Protected cell” and click OK.Note: if a picture inserted into a cell completely overlaps it, then clicking on it with the mouse buttons will call up the properties and settings of the picture itself. Therefore, in order to go to a cell with an image (select it), it is best to click on any other cell next to it, and then, using the navigation keys on the keyboard (up, down, right, left), go to the required one. Also, to call the context menu, you can use a special key on the keyboard, which is located to the left of Ctrl.
- Switch to tab “Review”where click on the button “Protect Sheet” (when the window dimensions are compressed, you must first click the button “Protection”, after which the desired item will appear in the drop-down list).
- A small window will appear where we can set a password to protect the sheet and a list of actions that users can perform. Click when ready OK.
- In the next window, confirm the entered password and click OKAY.
- As a result of the performed actions, the cell in which the picture is located will be protected from any changes, incl. removal.At the same time, the remaining cells of the sheet remain editable, and the degree of freedom of action in relation to them depends on which items we selected when the sheet protection was turned on.
Inserting an image into a cell comment
In addition to inserting a picture into a table cell, you can add it to a note. How this is done is described below:
- Right-click on the cell where you want to insert the image. In the drop-down list, select the command “Insert note”.
- A small area for entering a note will appear. Hover the cursor over the border of the note area, right-click on it and in the list that opens, click on the item “Note Format”.
- The note settings window will appear on the screen. Switch to tab “Colors and Lines”. In the fill options, click on the current color. A list will open in which we select the item “Fill Methods”.
- In the fill methods window, switch to the tab “Picture”, where we press the button with the same name.
- An image insertion window will appear, in which we select the option “From file”.
- After that, a picture selection window will open, which we already encountered at the beginning of our article. Go to the folder containing the file with the desired image, then press the button “Insert”.
- The program will return us to the previous window for selecting fill methods with the selected pattern. Check the box for the option “Keep the proportions of the picture”, then click OK.
- After that, we will find ourselves in the main note format window, where we switch to the tab “Protection”. Here, uncheck the box next to the item “Protected Object”.
- Next, go to the tab “Properties”. Choose an option “Move and change object along with cells”. All settings are made, so you can press the button OK.
- As a result of the actions performed, we managed not only to insert a picture as a note to the cell, but also to attach it to the cell.
- If desired, the note can be hidden. In this case, it will only be displayed when you hover over the cell. To do this, right-click on the cell with a note and select the item in the context menu “Hide note”.If necessary, the note is included back in the same way.
Insert image in developer mode
Excel also provides the ability to insert a picture into a cell through the so-called Developer Mode. But first you need to activate it, since it is disabled by default.
- Go to the menu “file”, where we click on the item “Parameters”.
- A window of parameters will open, where in the list on the left click on the section “Customize Ribbon”. After that, in the right part of the window in the ribbon settings, we find the line “Developer”, check the box next to it and click OK.
- We stand in the cell where we want to insert the image, and then go to the tab “Developer”. In the tools section “Controls” find the button “Insert” and click on it. In the list that opens, click on the icon “Image” in group “Active controls”.
- The cursor will change to a cross. With the left mouse button pressed, select the area for the future image. If necessary, the dimensions of this area can then be adjusted or the location of the resulting rectangle (square) can be changed to fit it inside the cell.
- Right-click on the resulting figure. In the drop-down list of commands, select “Properties”.
- We will see a window with the properties of the element:
- in parameter value “Placement” indicate the number “1” (initial value – “2”).
- in the field for entering a value opposite the parameter “Picture” click on the button with three dots.
- An image upload window will appear. We select the desired file here and open it by clicking the appropriate button (it is recommended to select the file type “All Files”, because otherwise some of the extensions will not be visible in this window).
- As you can see, the picture is inserted on the sheet, however, only a part of it is displayed, so size adjustment is required. To do this, click on the icon in the form of a small triangle down in the parameter value field “PictureSizeMode”.
- In the drop-down list, select the option with the number “1” at the beginning.
- Now the whole image fits inside the rectangular area, so the settings can be closed.
- It remains only to bind the image to the cell. To do this, go to the tab “Page layout”, where we press the button “Ordering”. In the drop-down list, select the item “Align”, then – “Snap to Grid”.
- Done, the picture is attached to the selected cell. In addition, now its borders will “stick” to the borders of the cell if we move the image or resize it.
- This will allow you to accurately fit the picture into the cell without much effort.
Conclusion
Thus, there are several ways in which you can insert an image into a cell on an Excel sheet. The easiest method is to use the tools in the Insert tab, so it’s no surprise that this is the most popular method among users. In addition, it is possible to insert images as cell notes or add pictures to a sheet using a special Developer Mode.