Home

Multi Level Index Match IF - open to suggestions

%3CLINGO-SUB%20id%3D%22lingo-sub-314106%22%20slang%3D%22en-US%22%3EMulti%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314106%22%20slang%3D%22en-US%22%3E%3CP%3EMorning%20all%2C%20need%20some%20assistance.%26nbsp%3B%20Have%20a%20very%20complex%20lookup%20matching%20process%20i%20need%20to%20improve%2C%20index%20match%20has%20some%20limitations%2C%20and%20vlookup%20(in%20a%20previously%20much%20more%20simplified%20version%20of%20the%20data%20set)%20bogged%20down%20forcing%20this%20review.%26nbsp%3B%20Also%2C%26nbsp%3B%20this%20data%20set%20comes%20out%20in%20the%20manner%20of%20the%20screenshot%20below%2C%20and%20for%20compliance%20concerns%2C%20the%20intent%20is%20to%20not%20modify%20the%20data%20set%20from%20the%20script%20-%20just%20allow%20formulas%20to%20do%20the%20heavy%20lifting%20and%20remove%20human%20error%20from%20the%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20issue%3A%3C%2FP%3E%3CP%3E%22Template%22%20is%20where%20i%20assemble%20data%20via%20multiple%20formulas.%26nbsp%3B%20One%20of%20these%20forumlas%20in%20Template%20column%20C%20will%20compare%20Template%20column%20A%20to%20%22Standard%22%20sheet%20columns%20A%20through%20H.%26nbsp%3B%20If%20it%20finds%20a%20match%20in%20%22Standard%22%20columns%20A%20through%20H%2C%20it%20needs%20to%20return%20a%20value%20out%20of%20Standard%20Column%20U.%26nbsp%3B%20%26nbsp%3B%20Attached%20here%20is%20a%20screenshot%20of%20a%20dummy%20version%20of%20the%20%22STANDARD%22%20sheet%20for%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20previously%20tried%20to%20nest%20an%20%22IF%22%20within%20the%20index%2Fmatch%2C%20but%20i%20believe%20the%20problem%20is%20that%20Match%20must%20have%20a%20single%20dimensional%20range%20to%20evaluate.%26nbsp%3B%20I%20don't%20know%20how%20to%20work%20around%20that.%26nbsp%3B%20i%20should%20also%20mention%20I%20know%20vlookup%20won't%20work%20reliably%20as%20this%20sheet%20contains%20upwards%20of%203000%20lines%20and%20has%20bogged%20down%20in%20the%20past%20in%20a%20simpler%20data%20set%20of%20the%20same%20info%2C%20causing%20the%20need%20for%20this%20template%20and%20lookup%20re-evaluation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20-%20open%20to%20all%20suggestions%20except%20macros%20as%20those%20are%20well%20outside%20of%20my%20abilities%2C%20and%20this%20will%20be%20utilized%20by%20multiple%20folks%26nbsp%3Bbesides%20me%20who%20have%20even%20less%20excel%20abilities...%3C%2FP%3E%3CP%3E-Joe%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-314106%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-316841%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-316841%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Joe%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20pattern%20is%20explained%20here%26nbsp%3B%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fformula%2Fget-location-of-value-in-2d-array%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Fformula%2Fget-location-of-value-in-2d-array%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-316583%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-316583%22%20slang%3D%22en-US%22%3E%3CP%3Ebefore%20i%20modify%20the%20info%20i%20supplied%20(it%20looks%20like%20we%20had%20a%20miscommunication%20on%20the%20shortened%20data%20set)%20-%20can%20you%20help%20me%20understand%20the%20SUMPRODUCT%20function%3F%26nbsp%3B%20that%20is%20not%20something%20i've%20used%20and%20even%20reading%20the%20excel%20help%20documentation%20on%20it%20leaves%20me%20confused%20as%20all%20get%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again!%3C%2FP%3E%3CP%3EJoe%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314179%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314179%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20sure%20I%20understood%20the%20logic%20of%20your%20sheets%20correctly%20since%20the%20same%20data%20is%20repeated%20in%20many%20places%2C%20in%20different%20columns%20and%20in%20different%20sheets.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnyway%2C%20if%20to%20simplify%20Standard%20sheet%20to%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20595px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65923i9366DB8F797AF1A1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20Template%20one%20to%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20304px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65924i284AED4C7241DBE6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20assuming%20no%20one%20combination%20is%20repeated%20in%20Standard%20(other%20words%2C%20numbers%20like%201541_454%20are%20never%20repeated)%2C%20the%20formula%20for%20column%20C%20in%20template%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3D%20IF(SUMPRODUCT(--(Standard!%24A%242%3A%24H%246%3D(E2%26amp%3B%22_%22%26amp%3BA2)))%3D0%2C%20%22No%20match%22%2CINDEX(Standard!%24U%242%3A%24U%246%2CSUMPRODUCT((Standard!%24A%242%3A%24H%246%3D(E2%26amp%3B%22_%22%26amp%3BA2))*ROW(Standard!%24A%242%3A%24H%246))-ROW(Standard!%24A%242%3A%24H%246)%2B1))%3C%2FPRE%3E%0A%3CP%3EIf%20above%20assumption%20is%20not%20correct%20when%20we%20need%20something%20else%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314142%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314142%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Sergei!%26nbsp%3B%20I%20was%20wondering%20if%20that%20would%20be%20the%20issue%2C%20but%20didn't%20know%20the%20appropriate%20terminology.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20match%20on%20two%20criteria%20-%20from%20my%20screenshot%20here%20-%20I%20need%20to%20pull%20back(INDEX)%20column%20%22C%22%20based%20on%20a%20match%20of%20columns%20E%2C%20and%20A.%26nbsp%3B%20Column%20A%26nbsp%3Bis%20a%20unique%20product.%26nbsp%3B%20Column%20E%20having%20a%20number%20present%20(it%20will%20always%20be%201541)%20represents%20that%20the%20column%20A%20product%20number%20is%20available%20through%20the%20Column%20E%20seller.%26nbsp%3B%20is%20there%20no%20way%20to%20work%20around%20that%20in%20excel%20so%20that%20a%20Index(%2C%20Match()%2C%20Match())%20function%20could%20supply%20the%20answers%3F%26nbsp%3B%20Or%20does%20the%20repeating%20data%20point%20in%20column%20E%20automatically%20make%20this%20unsolvable%3F%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%20style%3D%22width%3A%20562px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65918i22ED20C3B7F0535C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-01-12_13-34-17.jpg%22%20title%3D%222019-01-12_13-34-17.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20this%20may%20seem%20a%20bit%20confusing%20without%20a%20full%20set%20of%20data.%26nbsp%3B%20if%20there%20might%20be%20a%20workaround%2C%20i%20can%20dummy%20up%20some%20non-company%20specific%20stuff%20to%20attach.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314136%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314136%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Joe%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20use%20simulation%20of%20INDEX%2FMATCH%26nbsp%3Bon%202D%20array.%20For%20data%20like%26nbsp%3Bhere%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20508px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65915i8EB0F8A3CFB8BDFB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ethe%20formula%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3D%20IF(SUMPRODUCT(--(%24B%244%3A%24H%2412%3DK1))%3D0%2C%20%22No%20match%22%2CINDEX(%24U%244%3A%24U%2412%2CSUMPRODUCT((%24B%244%3A%24H%2412%3DK1)*ROW(%24B%244%3A%24H%2412))-ROW(%24B%244%3A%24H%2412)%2B1))%3C%2FPRE%3E%0A%3CP%3EHowever%2C%20it%20works%20if%20the%20lookuped%20data%20occurs%20in%20your%20array%20not%20more%20than%20once.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-314128%22%20slang%3D%22en-US%22%3ERe%3A%20Multi%20Level%20Index%20Match%20IF%20-%20open%20to%20suggestions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314128%22%20slang%3D%22en-US%22%3EHello!%20As%20you%20mentioned%3A%20it%E2%80%99s%20complex.%20Either%20it%E2%80%99s%20complex%20for%20me%20to%20figure%20out%20your%20different%20questions.%20Would%20be%20easier%20to%20help%20if%20you%20can%20articulate%20one%20question%20after%20another%20on%20your%20own.%20Greets%2C%20Eva%3C%2FLINGO-BODY%3E
JoeCavasin
Occasional Contributor

Morning all, need some assistance.  Have a very complex lookup matching process i need to improve, index match has some limitations, and vlookup (in a previously much more simplified version of the data set) bogged down forcing this review.  Also,  this data set comes out in the manner of the screenshot below, and for compliance concerns, the intent is to not modify the data set from the script - just allow formulas to do the heavy lifting and remove human error from the process.

 

The issue:

"Template" is where i assemble data via multiple formulas.  One of these forumlas in Template column C will compare Template column A to "Standard" sheet columns A through H.  If it finds a match in "Standard" columns A through H, it needs to return a value out of Standard Column U.    Attached here is a screenshot of a dummy version of the "STANDARD" sheet for reference.

 

I had previously tried to nest an "IF" within the index/match, but i believe the problem is that Match must have a single dimensional range to evaluate.  I don't know how to work around that.  i should also mention I know vlookup won't work reliably as this sheet contains upwards of 3000 lines and has bogged down in the past in a simpler data set of the same info, causing the need for this template and lookup re-evaluation.

 

Thanks in advance - open to all suggestions except macros as those are well outside of my abilities, and this will be utilized by multiple folks besides me who have even less excel abilities...

-Joe

 

6 Replies
Hello! As you mentioned: it’s complex. Either it’s complex for me to figure out your different questions. Would be easier to help if you can articulate one question after another on your own. Greets, Eva

Hi Joe,

 

You may use simulation of INDEX/MATCH on 2D array. For data like here

image.png

the formula could be

= IF(SUMPRODUCT(--($B$4:$H$12=K1))=0, "No match",INDEX($U$4:$U$12,SUMPRODUCT(($B$4:$H$12=K1)*ROW($B$4:$H$12))-ROW($B$4:$H$12)+1))

However, it works if the lookuped data occurs in your array not more than once.

Thanks Sergei!  I was wondering if that would be the issue, but didn't know the appropriate terminology.  

 

I need to match on two criteria - from my screenshot here - I need to pull back(INDEX) column "C" based on a match of columns E, and A.  Column A is a unique product.  Column E having a number present (it will always be 1541) represents that the column A product number is available through the Column E seller.  is there no way to work around that in excel so that a Index(, Match(), Match()) function could supply the answers?  Or does the repeating data point in column E automatically make this unsolvable?

 

2019-01-12_13-34-17.jpg

 

I understand this may seem a bit confusing without a full set of data.  if there might be a workaround, i can dummy up some non-company specific stuff to attach.

I'm not sure I understood the logic of your sheets correctly since the same data is repeated in many places, in different columns and in different sheets.

 

Anyway, if to simplify Standard sheet to

image.png

and Template one to

image.png

and assuming no one combination is repeated in Standard (other words, numbers like 1541_454 are never repeated), the formula for column C in template could be

= IF(SUMPRODUCT(--(Standard!$A$2:$H$6=(E2&"_"&A2)))=0, "No match",INDEX(Standard!$U$2:$U$6,SUMPRODUCT((Standard!$A$2:$H$6=(E2&"_"&A2))*ROW(Standard!$A$2:$H$6))-ROW(Standard!$A$2:$H$6)+1))

If above assumption is not correct when we need something else

before i modify the info i supplied (it looks like we had a miscommunication on the shortened data set) - can you help me understand the SUMPRODUCT function?  that is not something i've used and even reading the excel help documentation on it leaves me confused as all get out.

 

Thanks again!

Joe

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies