Forum Discussion

jomynitima's avatar
jomynitima
Copper Contributor
Feb 06, 2020
Solved

Picture lookup

With a INDIRECT formule should it be possible to lookup a picture But I keep getting the message that with the INDIRECT function. " The reference is invalid" I can't find what's wrong In Quotation...
  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Feb 08, 2020

    jomynitima Have a go at the attached file. After a closer look, I discovered that spaces and hyphens were not the only issues in the product names. Named Ranges don't like + and / either and may not start with a number. If the product is called "1+ seater / ", the named range becomes "_1__seater___".

    Fixed all of this with the help of Find and Replace in an extra column in the price list table. But please check. I may have overlooked some.

     

    The pictures in the quotation tab will change when the selected product in the dropdown changes. The INDIRECT formulae are now linked to cells in column N. These contain the exact names of the Named Ranges.

     

    BUT...... your biggest challenge is to fix the picture format (size, cropping and placement in the cells) in the price list. I don't know why, but this seems be a crucial element in making this trick work. It works now for the first 8 products in your list. Select any of the other and you see only a portion of the picture (which may just be the white background).

    Perhaps you should experiment first on a smaller scale (size, alignment), before trying to re-build your file with over 400 products. And check the video again. I recall she mentioned that the pictures were to set so that they do not move and size with the cells. Not sure though. Good luck!