Mastering the Image Tool: A Step-by-Step Guide to Images in Microsoft Excel
Mastering the Image Tool: A Step-by-Step Guide to Images in Microsoft Excel
Quick Links
If you want to include an image in Excel , like a company logo or product photo, you can add the image using the Insert tab. But, to keep the image within a particular cell, use the IMAGE function instead.
With this handy function, you add the URL for the image, optionally include alternative text, and choose how you want the image sized within the cell.
As of October 2022, the IMAGE function is available to Office Insiders and will then roll out over time to Microsoft 365 subscribers on Windows, Mac, Android, iPhone, and the web.
About the IMAGE Function
The syntax for the function is
`IMAGE(url, alt_text, sizing, height, width)`
where only the first argument is required. This argument is the URL for the image, which should be placed in quotation marks. Below are descriptions of the four optional arguments:
- Alt_text: Include alternative (alt) text to improve accessibility; the text should be placed within quotes.
- Sizing: Enter one of four sizing options: 0 to fit the image in the cell and maintain the aspect ratio, 1 to fit the image in the cell and ignore the aspect ratio, 2 to maintain the original image size, or 3 to customize the size using the height and width arguments.
- Height: Use with 3 for the sizing and enter the height in pixels.
- Width: Use with 3 for the sizing and enter the width in pixels.
You can insert BMP, GIF, ICO, JPG, PNG, TIFF, and WEBP image formats.
Use the IMAGE Function in Excel
Now that you know how to build the formula and understand the supported image file formats, let’s look at some examples using the IMAGE function with the picture below.
The sample image is from our how-to on overlaying images in Word .
In this first example, we’ll insert the image without alt text or optional sizing using this formula:
=IMAGE(“https://www.howtogeek.com/wp-content/uploads/2021/10/MicrosoftWord-OverlayImages.png “)
Here, the image stays within the cell and maintains its aspect ratio as you resize the cell by adjusting the row and column . It’s the same as using 0 for the sizing
argument.
Next, we’ll include the alt text “dog” and use the sizing option 1 to keep the image in the cell but ignore the aspect ratio with this formula:
=IMAGE(“https://www.howtogeek.com/wp-content/uploads/2021/10/MicrosoftWord-OverlayImages.png","dog",1 )
You can see that if we change the size of the cell, the image is skewed per the sizing option.
Now, we’ll use the following formula with the alt text and sizing option 2 to keep the image’s original size:
=IMAGE(“https://www.howtogeek.com/wp-content/uploads/2021/10/MicrosoftWord-OverlayImages.png","dog",2 )
This is a large image (1,200 by 675 pixels), so it doesn’t fit within the cell at the cell’s current size. However, we wanted to demonstrate maintaining the original image size.
Finally, we’ll remove the alt text leaving empty quotation marks for the argument. And we’ll use a custom size for our image with 3 for the sizing, 280 pixels for the height, and 500 pixels for the width. Here’s the formula:
=IMAGE(“https://www.howtogeek.com/wp-content/uploads/2021/10/MicrosoftWord-OverlayImages.png","",3,280,500 )
If we resize the cell, the image maintains its aspect ratio for the dimensions we entered.
Adding an image in Excel was never difficult; however, the introduction of the IMAGE function means you can place a picture within a cell and keep it there in whatever size you want.
For more on images in Excel, check out how to quickly remove all pictures in your sheet or how to get rid of the background in a picture .
| | Mastering Excel Functions | | |
| —————————- | —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— | |
| Functions | AVERAGE · CONCATENATE · COUNT · COUNTIF · DATEDIF · FILTER · FREQUENCY · FV · HYPERLINK · IF · IFS · IMAGE · INDEX · IS · LEN · MATCH ·MEDIAN · RAND · ROUND · RRI · SORT · SQRT · SUBSTITUTE · SUBTOTAL · SUM · SUMIF · TODAY · TRIM · TRUNC · VLOOKUP · WEEKDAY · XLOOKUP · YEAR | |
| Types | Basic · Budgeting · Data Entry · Logical · Text · Time and Date | |
| Explained | Copying Formulas · Evaluating Formulas · Finding Functions · Fixing Formula Errors · Functions vs Formulas · Comparing Lookup Functions · Locking Formulas · Structuring Formulas · Translating Formulas | |
Also read:
- [Solved] Satisfactory FPS Drops
- [Updated] 10 Top Must-Have Gear Items for YouTubers
- Diagnosis & Repair Tips for Grand Theft Auto Online Malfunctions
- Download & Install Official Dell G15 Graphics Drivers for Windows
- Guide Simple Et Facile Pour Transférer Des Fichiers DVD en Haute Définition Sur Mac
- How to Address Missing Textures in the Popular Battle Royale: Warzone
- How to Enjoy the Classic Gaming Experience with L.A. Noire for PC – Now Available
- How To Use Allshare Cast To Turn On Screen Mirroring On Poco C50 | Dr.fone
- In 2024, How Can We Unlock Our Meizu 21 Phone Screen?
- Must-Have Filmmaking Tools for Aspiring YouTubers for 2024
- No Signal Detected From Finger ID Device
- Step-by-Step Guide: Fixing Startup Failures for Starfield on Steam and Xbox
- Tamper-Proof Strategies to Overcome COD Warzone Error 6328 Updates
- The Ultimate Guide to Smooth Video Extraction via Funimate for 2024
- Top IMEI Unlokers for Your Oppo A79 5G Phone
- Troubleshooting Guide - Fixing the Crash Error in Mount & Blade ˈBannerlord Game
- Troubleshooting Guide: Unstick Your Discord Stream for Smooth Viewing
- Title: Mastering the Image Tool: A Step-by-Step Guide to Images in Microsoft Excel
- Author: Daniel
- Created at : 2024-12-02 18:57:51
- Updated at : 2024-12-06 18:11:17
- Link: https://win-answers.techidaily.com/mastering-the-image-tool-a-step-by-step-guide-to-images-in-microsoft-excel/
- License: This work is licensed under CC BY-NC-SA 4.0.