First insert the desired image from the clipboard into your Excel table using copy (shortcut: Ctrl + C) and paste (shortcut: Ctrl + V).
Now reduce the image so that it fits into the cell. To do this, you simply have to drag the corners of the image to the correct size with the mouse. Alternatively, you can of course also adjust the column and row size.
With the Alt key you can now position the image in the correct cell.
Then right-click on the picture to open the context menu and select "Size and Properties".
Under "Properties" you will find the point "Depending on cell position and size". This means that the image is adapted to the formatting and is taken into account, for example, when sorting the lines.