index match help

K

Kashyap

I tried with the below formula as well, but not resired result

=INDEX(PRX!A1:H111,MATCH(1,IF(PRX!A2:A111=Reference!J9,IF(PRX!C2:C111=Reference!F5,1)),0),MATCH(Reference!K6,PRX!A1:H1,0 ))
Control+shift+enter

I need to index A:H
match J9 with A:A
match F5 with C:C
match H1 with A1:H1
 
J

JP

For the INDEX argument, you need to specify a single column. I'm not clear
on whether you can search ranges of mixed sizes the way you have it in your
formula.

Try this example:

{=INDEX(PRX!A1:A111,MATCH(1,(PRX!A1:A111=Reference!J9)*(PRX!C1:C111=Reference!F5)*(PRX!A1:H1=Reference!H1),0))}

But it might fail because A1:H1 is not the same size as A1:A111.

HTH,
JP
 
J

joel

I converted your formula to use a Sumproduct

This part of the formula will return the column of data you want. Index
requires an offset which is one less the the value match will return

INDEX(PRX!A1:H111,0,MATCH(Reference!K6,PRX!A1:H1,0 )-1)


Now the formula above into a sumproduct

The formula below is wrong from your oringal formula : PRX!A1:H111

=Sumproduct(--(PRX!A2:A111=Reference!J9),--(PRX!C2:C111=Reference!F5),INDEX(PRX!A1:H111,0,MATCH(Reference!K6,PRX!A1:H1,0 )-1))

Instead use this formula

=Sumproduct(--(PRX!A2:A111=Reference!J9),--(PRX!C2:C111=Reference!F5),INDEX(PRX!A2:H111,0,MATCH(Reference!K6,PRX!A1:H1,0 )-1))
 
D

Domenic

Try...

=INDEX(PRX!A1:H111,MATCH(1,IF(PRX!A1:A111=Reference!J9,IF(PRX!C1:C111=Ref
erence!F5,1)),0),MATCH(Reference!K6,PRX!A1:H1,0 ))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

http://www.xl-central.com
 
A

Ashish Mathur

Hi,

Try this with Ctrl+Shift+Enter

=INDEX(PRX!A1:H111,MATCH(1,(PRX!A2:A111=Reference!J9)*(PRX!C2:C111=Reference!F5),0),MATCH(Reference!K6,PRX!A1:H1,0
))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top