• 461K Members
• 5,807 Online
• 559K Conversations
SOLVED

Index Match problem

Occasional Contributor

Index Match problem

I am having a problem with what should be a simple solution.  In the example below, I am trying to create an Index Match formula to look for one value in a table and pull in the Catalog ID.  For example, if I look for PBC-1430, I need 2D4 to populate my cell:

 Catalog ID Cust A Item #s Cust B Item #s Cust C Item #s Cust D Item #s Cust E Item #s Cust F Item #s A1 05BLL 05BAA 10000A 1000AFA BAT2000 0B1 04BLL 04BAA 2000B 2000AFA BATC2000 C5 06B1L 06B1A PBC-1430 2D4 08D1LL 08D1AA PBC-1460

I originally tried using a vlookup, but that didn't work.  Any assistant would be much appreciated.

10 Replies

Re: Index Match problem

Hi @MeMacz1138 ,

That is like

`=IFERROR(INDEX(\$A\$2:\$A\$1000,MATCH(J4,\$G\$2:\$G\$1000,0)),"no such")`

if the value you are looking for is in J4

Re: Index Match problem

@Sergei Baklan Thank you for responding so quickly!  Is there a way to do the lookup in all cells from B1 through G5?  Rather than only looking in Column G?

Re: Index Match problem

@MeMacz1138 , it depends on what you'd like to do. If multiple criteria, like return value from A if in G we have some1 AND in C some2, etc. - that's one situation. If pull value not from column A but another one that will be third parameter INDEX. Similar to VLOOKUP when you have columns number as parameter.

What is your case exactly? Perhaps just small sample to explain.

Re: Index Match problem

@Sergei Baklan I figured an abbreviated spreadsheet would be easiest, which I have attached.  I have an inventory workbook that lists out all of the inventory we have on hand for finished products.  The inventory includes our own inventory, but also products that have been re-labeled for our customers, but in reality are one of our original catalog id numbers.  I basically want to be able to look up the customers item number in an array and then bring back the original catalog id that is associated with that customer's item number.  I've attached a shortened version.  I have been trying to put in a formula either to the right or left (highlighted in yellow).  It seems like it shouldn't be that complicated, but I have yet to figure out what I am doing wrong.

Re: Index Match problem

@MeMacz1138 , the formula could be like

```=IFERROR(
INDEX('Original Catalog & Customers'!\$B\$6:\$B\$16,MATCH(1,INDEX(
(\$B16='Original Catalog & Customers'!\$C\$6:\$C\$16)+
(\$B16='Original Catalog & Customers'!\$D\$6:\$D\$16)+
(\$B16='Original Catalog & Customers'!\$E\$6:\$E\$16)+
(\$B16='Original Catalog & Customers'!\$F\$6:\$F\$16)+
(\$B16='Original Catalog & Customers'!\$G\$6:\$G\$16)+
(\$B16='Original Catalog & Customers'!\$H\$6:\$H\$16)+
(\$B16='Original Catalog & Customers'!\$I\$6:\$I\$16),
0),0)), "no such")```

It is assumed the ID is not repeated in Custom Item columns, each ID could be only in one of columns. Formula is in the left column of the Inventory. You need adjust the range to real ones, but it'll be better to transform Customer Items into the Excel Table or use dynamic named ranges, but that's cosmetic.

Re: Index Match problem

A shorter variant of the formula in Inventory!A16 is this:
=IFERROR(INDEX('Original Catalog & Customers'!B\$6:B\$16,
SUMPRODUCT(ROW('Original Catalog & Customers'!C\$6:I\$16)*
('Original Catalog & Customers'!C\$6:I\$16=B16))-5),
"No such")
Solution

Re: Index Match problem

To remedy the possible occurrence of duplicates, I suggest this formula in Inventory!A16:
=IFERROR(INDEX('Original Catalog & Customers'!B\$6:B\$16,
SUMPRODUCT(MAX(ROW('Original Catalog & Customers'!C\$6:I\$16)*
('Original Catalog & Customers'!C\$6:I\$16=B16)))-5),
"No such")

Re: Index Match problem

This formula worked!

Re: Index Match problem

All formulas worked and provided the same results - thank you so much!

Re: Index Match problem

Welcome!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies