Skip to main content

How to insert image or picture dynamically in cell based on cell value in Excel?

Author Siluvia Last modified

In Excel, you might encounter situations where you need to dynamically display images based on a cell's value. For example, when entering a specific name in a cell, the corresponding image automatically updates in another cell. This guide provides step-by-step instructions to achieve this.

Insert and change image dynamically based on the values you enter in a cell
Dynamically change images based on cell values with Kutools for Excel


Insert and change image dynamically based on the values you enter in a cell

As below screenshot shown, you want to display corresponding pictures dynamically based on the value you entered in cell G2. When entering Banana in cell G2, the banana picture will be displayed in cell H2. While entering Pineapple in cell G2, the picture in cell H2 will turn into the corresponding pineapple picture.

A screenshot demonstrating dynamic image changes based on cell values in Excel

1. Create two columns in your worksheet, the first column range A2:A4 contains the name of the pictures, and the second column range B2:B4 contains the corresponding pictures. See screenshot shown.

A screenshot of Excel showing product names and their corresponding images in columns

2. Click Formulas > Name Manager.

A screenshot showing how to access the Name Manager under the Formulas tab in Excel

3. In the Name Manager dialog box, click the New button. Then the Edit Name dialog pops up, enter Product into the Name box, enter the below formula into the Refers to box, and then click the OK button. See screenshot:

=INDIRECT(ADDRESS(2-1+MATCH(Sheet2!$G$2, Sheet2!$A$2:$A$4, 0), 2))

A screenshot of the Name Manager and Edit Name dialog box in Excel

Notes:

1). In the formula, the first number 2 is the row number of your first product. In this case, my first product name locates in row 2.
2). Sheet2!$G$2 is the cell you want to make the corresponding image changed dynamically based on.
3). Sheet2!$A$2:$A$4 is your list of product names in current worksheet.
4). The last number 2 is the column number containing your images.

You can change them as you need in the above formula.

4. Close the Name Manager dialog box.

5. Select a picture in your Pictures column, and press Ctrl + C keys simultaneously to copy it. Then paste it to a new place in current worksheet. Here I copy the apple picture and place it in cell H2.

A screenshot showing a copied image pasted into a new location in Excel

6. Enter a fruit name such as Apple in cell G2, click to select the pasted picture, and enter formula =Product into the Formula Bar, then press the Enter key. See screenshot:

A screenshot showing how to link a picture to a named range formula in Excel

From now on, when changing to any fruit name in cell G2, pictures in cell H2 will turn into corresponding one dynamically.

You can pick the fruit name quickly by creating a drop-down list containing all fruit names in cell G2 as below screenshot shown.

A screenshot of a drop-down list in Excel containing product names linked to corresponding images


Dynamically change images based on cell values with Kutools for Excel

For many Excel newbies, the above method is not easy to handle. Here recommend the Picture Drop-down List feature of Kutools for Excel. With this feature, you can easily create a dynamic drop-down list with values and pictures totally matching.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

Please do as follows to apply the Picture Drop-down List feature of Kutools for Excel to create a dynamic picture drop-down list in Excel.

1. Firstly, you need to create two columns separately containing the values and its corresponding pictures as the below screenshot shown.

A screenshot showing two columns with product names and images

2. Click Kutools > Drop-down List > Picture Drop-down List.

A screenshot showing the Kutools Picture Drop-down List option in Excel

3. In the Picture Drop-down List dialog box, you need to configure as follows.

3.1) If you have created the values and pictures columns in step 1 above, please ignore this step;
3.2) In Step2 section, select the two columns you have created;
3.3) In Step3 section, select the range to output the dynamic picture drop-down list.
Note: In Step3 section, you need to select two columns for placing the results. One column is for values and another is for the corresponding pictures.
3.4) Click OK.

A screenshot of the Picture Drop-down List dialog box

4. Then a Kutools for Excel dialog box pops up to reminds you that some intermediate data will be created during the process, click Yes to continue.

A screenshot showing a Kutools confirmation dialog for creating intermediate data

Then a dynamic picture drop-down list is created. The picture will change dynamically based on the item you selected in the drop-down list.

A screenshot demonstrating dynamic picture updates using Kutools

Click to know more about this feature...

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!