I can't find the syntax error in the following Excel formula:
I have data in K7:M11 in three sheets namely s_core1,s_core2,s_core3. The search keys are in A6:C6, A7:B7 and so on. If A6 is core1, the data in sheet s_core1 should be used to lookup. If it is core2, the data in sheet s_core2 should be used to lookup.
=INDEX(INDIRECT("s_"&A6&"!"&"$K$11:$M$11"),MATCH(C6,INDIRECT("K"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6&":M"&MATCH(B6,INDIRECT("s_"&A6&"!$J$7:$J$9"),0)+6),0))
Please help me with that.
Here is the source for reference if needed:
Please refer the attached excel file in the forum:
Thanks in advance.
MATCHformulas can't find a matching element, resulting in an#N/Awhich will then cause yourINDIRECTfunctions to fail. Try stepping through the formula with Evaulate Formula in Excel 2007, look under the Formula menu and click Evaluate Formula). Chances are you'll see an error pop up somewhere, and then you should be able to see what is causing it.MATCHformula trying to match a value that is not found in yourK7:M9matrix. In order for it to work, you'll need to mess around a bit with thematch_typeparameter in your function to allow it to accept values that aren't equal to the one you're seeking. Happy to help later on if you need it :)