

Next, select the vertical axis and delete it.Select the Chart Title, press the delete key.Right-click on the vertical axis and select Format Axis… from the menu.Right-click on the data bar and select Format Data Series… from the menu.Click OK to close the Select Data Source dialog box.Click the Switch Row/Column button, the Legend Entries box on the left should now contain the list of countries as different chart series.The Select Data Source dialog box will open.Right-click on the series, then click Select Data… from the menu.A new chart will appear on the worksheet.From the ribbon, click Insert -> Charts -> Stacked Column.Select the list of country names and the formula result (cells A2 to B11 in our example).Copy the formula down to the last country name in the list. The purpose of the formula is to calculate 1 if cell D2 is the same as the country in column A otherwise, #N/A is displayed. Here are those steps in more detail Formula to calculate as 1 or #N/AĮnter a country name in a cell (for our example, use cell D2).Ĭolumns A contains the names of countries.Įnter the following formula in cell B2: =IF(VLOOKUP(A2,$D$2,1,0)=A2,1,NA())
#Insertpicture in excel cell series
Add the images as the fill for each chart series.Create a stacked column chart with the country list and formula created in 1 above as the source.Create a formula that calculates 1 for the selected country or #N/A for the other countries.If you’re working along with the example file, check out the Chart Fill tab. To learn about other formulas that return ranges, check out this post. OFFSET / MATCH =OFFSET('Linked Picture'!$A$1,MATCH('Linked Picture'!$D$2, XLOOKUP (new function available in Excel 365) =XLOOKUP('Linked Picture'!$D$2,'Linked Picture'!$A$2:$A$11,įind out more about the XLOOKUP function in this article: XLOOKUP function () INDEX/MATCH is a formula combination, which can achieve some amazing things picture formulas are just one of those amazing things. But any formula which returns a range will work inside the named range. Some easy alternatives are: The named range applied to the picture does not exist.The result of the INDEX/MATCH function produces an error. This usually occurs where the name of the country is not identical to one of the countries in the list.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.

