Image Lookup Column Behaving Unexpectedly

gkurpasi

New Member
Joined
Apr 7, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

My name's Grady, I'm working on Excel 365 on Windows.

I'm trying to create an image lookup column that will insert/match images in one list (e.g. an inventory) from a master catalog.

Right now I'm troubleshooting on a single worksheet (XL2BB Below).

1. I started with the INDEX MATCH method for switching images based on the content of a single cell (often demonstrated as a drop down)

ex. =INDEX(Sheet1!$B$3:$B$5, MATCH(Sheet1!$A$13,Sheet1!$A$3:$A$5))
(applied directly to a target pic using a named formula)

This works fine for flipping pictures and matching descriptions (when the INDEX range is adjusted)



2. I replaced the direct cell reference with an INDIRECT to move toward what I'm actually trying to do

ex. =INDEX(Sheet1!$B$3:$B$5, MATCH(INDIRECT("Sheet1!$A$20"),Sheet1!$A$3:$A$5))

This also worked fine.



3. Finally, I used ROW() to feed the INDIRECT function to get a row specific lookup.

ex. =INDEX(Sheet1!$B$3:$B$5, MATCH(INDIRECT("Sheet1!$A$"& TEXT(ROW(), 0)),Sheet1!$A$3:$A$5))

This did not work. It flips the picture, but not as expected.

It does however work for matching description (again when the INDEX range is adjusted).

I'm hoping that I'm missing something simple. Any help will be greatly appreciated!

p.s. I'm tracking another method of flipping pictures using INDIRECT and linked pictures. I'm not using that method because of the requirement to name cells. My inventory list is pretty long and has spaces and dashes in names that get replaced with underscores when Naming by Selection.



Test Book.xlsx
ABCDEFG
1SOURCE DATA
2IDImageDesc
3ID1Description 1
4ID2Description 2
5ID3Desription 3
6
7
8
9
10Single INDEX/MATCH Example=INDEX(Sheet1!$B$3:$B$5, MATCH(Sheet1!$A$13,Sheet1!$A$3:$A$5))
11Works for picture
12Also works for description when range adjusted
13ID2Description 2
14
15
16
17INDEX/MATCH using INDIRECT to get Single ID=INDEX(Sheet1!$B$3:$B$5, MATCH(INDIRECT("Sheet1!$A$20"),Sheet1!$A$3:$A$5))
18Works for picture
19Also works for description when range adjusted
20ID3Desription 3
21
22
23
24INDEX/MATCH by Row (Doesn't Work)=INDEX(Sheet1!$B$3:$B$5, MATCH(INDIRECT("Sheet1!$A$"& TEXT(ROW(), 0)),Sheet1!$A$3:$A$5))
25DOESN'T work for picture
26BUT DOES work for description when range adjusted
27ID1Description 1ID11
28Indirect functionMatch function
Sheet1
Cell Formulas
RangeFormula
C13C13=INDEXMATCHDESC
C20C20=INDEXMATCHDESC_INDIRECT
C27C27=INDEXMATCHDESC_INDIRECT_BYROW
E27E27=INDIRECT("Sheet1!$A$"& TEXT(ROW(), 0))
G27G27=MATCH(INDIRECT("Sheet1!$A$"& TEXT(ROW(), 0)),Sheet1!$A$3:$A$5)
Named Ranges
NameRefers ToCells
INDEXMATCHDESC=INDEX(Sheet1!$C$3:$C$5, MATCH(Sheet1!$A$13,Sheet1!$A$3:$A$5))C20, C27, C13
INDEXMATCHDESC_INDIRECT=INDEX(Sheet1!$C$3:$C$5, MATCH(INDIRECT("Sheet1!$A$20"),Sheet1!$A$3:$A$5))C20, C27, C13
INDEXMATCHDESC_INDIRECT_BYROW=INDEX(Sheet1!$C$3:$C$5, MATCH(INDIRECT("Sheet1!$A$"& TEXT(ROW(), 0)),Sheet1!$A$3:$A$5))C20, C27, C13
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,864
Messages
6,121,981
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top