Pull in a picture

%3CLINGO-SUB%20id%3D%22lingo-sub-1685994%22%20slang%3D%22en-US%22%3EPull%20in%20a%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1685994%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20have%20excel%20pull%20in%20a%20picture%20using%20a%20formula%3F%20Because%20I%20don't%20know%20how%20to%20explain%20what%20I%20want%2C%20I%20am%20using%20an%20IF%20statement.%26nbsp%3B%20The%20attached%20picture%20has%20an%20IF%20statement%20and%20instead%20of%20bringing%20in%20%22AA%22%20I%20want%20to%20bring%20in%20the%20picture%20Americas%20Alfalfa%20logo%20into%20the%20area%20where%20AA%20is%20(N15)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdwork_0-1600464749517.png%22%20style%3D%22width%3A%20790px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F219719i2F6FA761929B5ADD%2Fimage-dimensions%2F790x177%3Fv%3D1.0%22%20width%3D%22790%22%20height%3D%22177%22%20title%3D%22kdwork_0-1600464749517.png%22%20alt%3D%22kdwork_0-1600464749517.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIs%20there%20some%20way%20to%20do%20what%20I%20am%20wanting%3F%26nbsp%3B%20I%20know%20IF%20statement%20probably%20isn't%20the%20way%20to%20do%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1685994%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1686645%22%20slang%3D%22en-US%22%3ERe%3A%20Pull%20in%20a%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1686645%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F399870%22%20target%3D%22_blank%22%3E%40kdwork%3C%2FA%3E%26nbsp%3BI%20believe%20you'll%20find%20the%20answer%20to%20your%20question%20here%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.xelplus.com%2Fexcel-lookup-on-pictures%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.xelplus.com%2Fexcel-lookup-on-pictures%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1710957%22%20slang%3D%22en-US%22%3ERe%3A%20Pull%20in%20a%20picture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1710957%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%3C%2FP%3E%3CP%3EThis%20is%20not%20quite%26nbsp%3Bworking%20for%20me.%26nbsp%3B%20(See%20attachment)%26nbsp%3BI%26nbsp%3Badded%20each%20brands%20logo%20and%20name.%26nbsp%3B%20Cell%20A19%20(AMERICAS)%20is%20populated%20from%20another%20cell%20in%20another%20worksheet%20(%3D'NEW%20OFFICE%20COPY'!Z10).%26nbsp%3B%20I%20added%20a%20list%20for%20cell%20A19%2C%20but%20because%20it%20is%20autopopulated%2C%20for%20my%20list%20(and%20logo%20names)%20I%20have%20to%20use%20the%20same%20name%20as%20what%20is%20pulled%20in%20(ie.%20can't%20use%20zAMERICAS%20for%20the%20logo%20name%20and%20List%20name).%26nbsp%3B%20When%20I%20change%20the%26nbsp%3B%22brands%22%20being%20used%20that%20autopopluates%2C%20the%20dropdown%20list%20changes%20to%20match%2C%20so%20that%20part%20is%20working%20ok.%26nbsp%3B%20I%20think%20the%20problem%20is%20that%20I%20already%20have%20the%20%22brand%22%20names%20in%20the%20Name%20Manager%2C%20so%20when%20I%20type%20%3DLOGOS%20in%20the%20formula%20bar%20to%20link%20the%20indirect%20formula%2C%20it%20is%20pulling%20in%20the%20information%20of%20the%20other%20Americas%20value%20instead%20of%20the%20logo.%26nbsp%3B%20When%20I%20change%20the%20%22brand%22%2C%20it%20changes%20the%20values%20to%20the%20other%20associated%20name.%26nbsp%3B%20Is%20there%20a%20way%20if%20I%20were%20to%20use%20an%20alternate%20name%20(i.e.%20zAmericas)%20for%20the%20logos%26nbsp%3Bto%20somehow%20associate%20it%20with%20Americas%20so%20when%20the%20that%20is%20pulled%20in%2C%20it%20would%20look%20to%20zAmericas%20for%20the%20logo%3F%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Is there a way to have excel pull in a picture using a formula? Because I don't know how to explain what I want, I am using an IF statement.  The attached picture has an IF statement and instead of bringing in "AA" I want to bring in the picture Americas Alfalfa logo into the area where AA is (N15)

 

kdwork_0-1600464749517.png

Is there some way to do what I am wanting?  I know IF statement probably isn't the way to do it.

6 Replies
Highlighted

@kdwork I believe you'll find the answer to your question here

https://www.xelplus.com/excel-lookup-on-pictures/ 

Highlighted

@Riny_van_Eekelen

This is not quite working for me.  (See attachment) I added each brands logo and name.  Cell A19 (AMERICAS) is populated from another cell in another worksheet (='NEW OFFICE COPY'!Z10).  I added a list for cell A19, but because it is autopopulated, for my list (and logo names) I have to use the same name as what is pulled in (ie. can't use zAMERICAS for the logo name and List name).  When I change the "brands" being used that autopopluates, the dropdown list changes to match, so that part is working ok.  I think the problem is that I already have the "brand" names in the Name Manager, so when I type =LOGOS in the formula bar to link the indirect formula, it is pulling in the information of the other Americas value instead of the logo.  When I change the "brand", it changes the values to the other associated name.  Is there a way if I were to use an alternate name (i.e. zAmericas) for the logos to somehow associate it with Americas so when the that is pulled in, it would look to zAmericas for the logo?

 
Highlighted

@kdwork It's always difficult to diagnose a problem from a picture alone, but I suspect that the problem lies in the way you call for local (worksheet) named ranges vs. global (workbook) named ranges.

 

The first named range "americas" has a local scope in the LOGOS worksheet. If you want to call it from any other worksheet, you need to refer to it as "LOGOS!americas". Just calling for "americas" will automatically refer to the globally defined range/formula with that name, if a local one does not exist within the sheet it is called from. The link below has more insights on how this works and refers to a tool developed by (among others) @Jan Karel Pieterse. Perhaps his tool or he himself (active in this community) can help you resolve your problem, in case my general comments above could not.

 

https://exceljet.net/named-ranges (scroll all the way down for named ranges and scope)

Highlighted
I would suggest to download my Name Manager and make sure the names are properly scoped. AT least make sure there aren't duplicate local and globally scoped names as that highly confuses the matter. https://jkp-ads.com/officemarketplacenm-en.asp. ALso, have a look at this article: https://jkp-ads.com/Articles/ShowPicture00.asp
Highlighted

@Jan Karel Pieterse Not me, it's @kdwork who's asking.

Highlighted
I know, should have replied to him directly