Matching and indexing

S

sjnohl

I am trying to pull data from an array using index + match. All of the
examples that I have found show matching only on 1 column. I am trying
to match on 2 columns. Would appreciate help - Thanks
 
J

JS

The INDEX function takes a parameter for rows and columns eg
=Index(A2:D4,rownum,colnum)
Use MATCH for the rownum & colnum as below. Then in C6 enter the row to
match and in D6 the column to match

=INDEX(B2:D4,MATCH(C6,A2:A4,0),MATCH(D6,B1:D1,0))
 

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