Forum Discussion
vinh nhut nguyen
Apr 07, 2017Copper Contributor
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.
- DeletedApr 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
- Deleted
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
- vinh nhut nguyenCopper ContributorMourad,
I understand how to create named range Image using FORMULA -> DEFINE NAME but not clear about which sheet I should create that named range image and where to write the INDEX formula. I tried to write your INDEX formula in another cell of the Display sheet but I do not get the image.
Could you please advice.- vinh nhut nguyenCopper ContributorUsing Name Manager, your named range IMAGE have Workbook scope that the Index formula is written on those named range. I have no idea about how to reproduce the image on the Display sheet.
In addition, I inserted a picture and write =image on that picture. That picture does not displayed as it should after =image is written. A sketch of display screen and a computer is displayed in place of the picture. So I am completely lost!
- vinh nhut nguyenCopper Contributor
Wow, this is quite new for me. I got to take time to learn of how it works.
Thank you so much for your help.