How to do a Picture Lookup in Excel – A Step-by-step Guide

There are many lookup functions in Excel (such as VLOOKUP, LOOKUP, INDEX/MATCH, OUTLOOK) that can go and fetch a value from a list.But you can’t look-up images using these formulas.

For example. if I have a list of team names and their logos, and I want to look up the logo based on the name, I can’t do that using the inbuilt Excel function.

But that doesn’t mean it can’t be done.

In this tutorial, I will show you how to do a picture lookup in Excel.

It’s simple yet it’ll make you look like an Excel Magician (all you need is this tutorial and sleight of hands-on your keyboard).

Picture Lookup in Excel

I have a list of the 20 teams in English Premier league (arranged in an alphabetical order) along with the club logo in the adjacent cell.

Now what I want is to be able to select a team name from the drop-down, and the logo of that selected team should appear.

Something as shown below:

There are four parts to creating this picture lookup in Excel:

1. Getting the data set ready.
2. Creating a drop-down list to show item names (club names in this example).
3. Creating a Named Range

Let’s go through these steps in detail now.

1. Have the names of all the items (team names) in a column.
2. In the adjacent column, insert the picture for the item (club logo in this example).

Make sure the logos fit nicely within the cell. You can resize the images so that these are within the cell, or you can expand the cells.

Creating the Drop-down list

1. Select the cell in which you want the drop-down (E3 in this example).
2. Click the Data tab.
3. Click on the Data Validation option (it’s in the data tools category).
4. In the Data Validation dialog box, within the Settings tab, make sure List is selected in the Allow drop-down (if not selected already).
5. In the Source field, click on the upward-pointing arrow icon. This will allow you to select the cells in which you have the list for the dropdown.
6. Select the range that has the club names (B3:B22 in this example).
7. Hit Enter.
8. Click OK.

The above steps would give you a drop-down list in cell E3.

In this part, we create a linked picture using any of the existing images/logos.

Here are the steps to create a linked picture:

1. Select any cell that has the logo. Make sure you have selected the cell, not the logo/image.
2. Copy the cell (use Control + C or right-click and select copy).
3. Right-click on the cell where you want to get the linked picture (it can be any cell as we can adjust this later).
4. Go to the Paste Special option and click on the small right-pointing arrow to get more options.
5. Click on the Paste Linked Picture icon.

The above steps would give you a linked picture of the cell that you copied. This means that if any changes happen in the cell that you copied, it will also be reflected in the linked picture).

In the above image, since I copied the cell C3 and pasted a linked picture. Note that this is not connected to the drop down as of now.

Also, when you paste the linked picture, it creates an image. So you can move it anywhere in the worksheet.

Creating a Named Range

Now we have everything in place, and the last step is to make sure that the linked picture updates when the selection is changed. As of now, the linked picture is linked to only one cell.

We can connect it to the drop-down selection by using a named range.

Here are the steps to do this:

1. Go to the Formulas tab.
2. Click on the Define Name option. This will open the ‘New Name’ dialog box.
3. In the New Name dialog box, make the following entries:
• Name: ClubLogoLookup
• Refers to: =INDEX($C$3:$C$22,MATCH($E$3,$B$3:$B$22,0))
4. Click OK.
5. Select the linked image that we created in the previous step. You will notice a cell reference in the formula bar (for example =$C$3). Delete this cell reference and type =ClubLogoLookup.

That’s it!! Change the club name from the drop-down and it will change the picture accordingly.

How does this Picture Lookup Technique work?

When we created a linked picture, it was referring to the original cell from which it was copied. We changed that reference with the named range.

This named range is dependent on the drop-down and when we change the selection in the drop-down, it returns the reference of the cell next to the selected team’s name. For example, if I select Arsenal, it returns, C3 and when I select Chelsea, it returns C6.

Since we have assigned the named range to the linked picture (by changing the reference to =ClubLogoLookup), it now refers to the new cell references, and hence returns an image of that cell.

For this trick to work, the defined name should return a cell reference only. This is achieved by using the combination of INDEX and MATCH functions.

Here is the formula:

=INDEX($C$3:$C$22,MATCH($E$3,$B$3:$B$22,0)).

The MATCH part in the formula returns the position of the club name in the drop-down. For example, if it’s Arsenal, MATCH formula would return 1, if its Chelsea then 4. The INDEX function locates the cell reference that has the logo (based on the position returned by MATCH).