Forum Discussion
Index Match problem
- Mar 26, 2019To 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")
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
SergeiBaklan 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?
- SergeiBaklanMar 25, 2019Diamond Contributor
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.
- MeMacz1138Mar 25, 2019Copper Contributor
SergeiBaklan 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.
- TwifooMar 26, 2019Silver ContributorTo 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")