

If you receive the Reference isn’t valid error there are two likely problems: For completeness, change cell D2 into a data validation drop-down list containing all the countries.

Using a named range as the source for a linked picture Cells A2-A11 contains the names of the countriesĬlick OK to close the New Name dialog box.Cell D2 contains the name of the country to be matched.The formula in the Refers to box is: =INDEX('Linked Picture'!$B$2:$B$11, Rather than a range, the Refers to box needs to contain a formula calculates to a range. In the New Name dialog box, create a new named range called CountryLookup. Next, we’ll create a named range by selecting Formulas -> Define Name from the ribbon. Start by entering one of the country names in a cell (for our example, use cell D2). The example data contains a list of countries in Column A and their relevant flags in Column B.Ĭreate a dynamic named range with INDEX MATCH Now let’s look at each of these steps in turn. Use the named range as the source for a linked picture.Create a dynamic named range using the INDEX MATCH formula combination.If you’re working along with the example file, we’ll begin with the Linked Picture tab.Īs an overview, this method works as follows: Conclusion Change image with a named range + INDEX/MATCH + linked picture.Advantages & disadvantages of each option.Change image with a VBA User-Defined Function.Add the chart fill automatically with a macro.

Using a named range as the source for a linked picture.Create a dynamic named range with INDEX MATCH.Change image with a named range + INDEX/MATCH + linked picture.
