Forum Discussion
Challenge 5
Hi Every one
I have problem in Vlookup for images in Excel,
Ho can I find Images by suing Vlookup in Excel Or a similar formula ? as i showed in attachments,
Thank you for your cooperation in advance
6 Replies
- PeterBartholomew1Silver Contributor
The attached uses XLOOKUP to return a range with an image superposed.
INDEX/MATCH should work as well.
Name Refers to selected =XLOOKUP(shape,description,pictures) - JMB17Bronze ContributorMaybe this will help you find a solution. It's a dynamic image where you could select an item from a dropdown menu and have the related image displayed in another cell.
https://www.youtube.com/watch?v=wlW2UKml9CY - mathetesSilver Contributor
Could you post your actual spreadsheet rather than an image. It's a lot easier that way for us to test a solution with the real thing.
Just glancing at your sheet, though, I see a potential problem...you have the images spanning rows (obviously done to differentiate "left" from "right" --
I've also personally never seen VLOOKUP work with images as the desired item, and wonder how the images are present in the sheet itself, whether that will make retrieval difficult.
- Jalal_1988Brass Contributor
- Riny_van_EekelenPlatinum Contributor
With reference to the video referred to by JMB17, please find some additional comments below.
The key feature is that you have to create Named Ranges and indirectly reference them by a Named Formulae. Now, the video deals with one picture (a flag) that gets displayed based on a selection from a drop-down. You could do something similar for each of the items in your output range in column K based on the Item code in column J.
BUT!! Bear in mind that you need to get rid of the merged cells in column C. They only create trouble. Secondly, when you create named ranges from the Item codes in column B the hyphens "-" will be replaced by an underscore "_", as named ranges may not contain just any character. So, the code in column J will also have the contain the underscores, or the named formula that will display the picture in K2 for the item in J2, would have to look like this:
=INDIRECT(SUBSTITUTE(NJ!$J$2,"-","_"))
No VLOOKUP needed. It's all demonstrated in the attached file, although it needs quite some work to make it look nice.