Forum Discussion

vinh nhut nguyen's avatar
vinh nhut nguyen
Copper Contributor
Apr 07, 2017
Solved

Display images in Excel

Is it possible to display difference images in Excel using function such as IF. Such as IF test is TRUE then display an image and if it is FALSE then display nothing.
  • Deleted's avatar
    Deleted
    Apr 09, 2017

    Hello,

     

    yes, that's possible, if you use a named range and an image shape. I attached a sample file to this post. The sample file includes two sheets. The second one has an image centered in one cell (!) and another cell with the same size, which is empty. Then, I created a named range Image with the formula: =INDEX(Images!$C$3:$C$4;Display!$D$3;1). D3 from the sheet Display contains the simple formula =IF(C3;1;2) and C3 your value TRUE/FALSE. You can adapt this to your needs, of course. Then I added an image Insert/Pictures (pick anyone). When the image is inserted, click on it and in the formula bar, type =Image + Enter. That's it.

     

    Best regards,

    Mourad

Resources