Index | Match Formula (help)

G

Guest

I'm using this formula
=INDEX(Sheet2!$A$1:$E$30,MATCH(A2,Sheet2!$A$1:$A$30,0),MATCH(B2,Sheet2!$A$1:$E$1,0)) to return a value from a table.
I've copied this formula do a column of cells and getting the #N/A message
in the cell. I understand why this is taking place, because the cells are
null. Can I include in this fromula something to make this return an blank
value if the cells dont have data entered yet.
Sheet1 has the null cells not the table. Cell A2 and B2. I'm entering data
in these cells as needed but would like to have the index formula copied and
ready to find when data is entered.
 
G

Guest

H
=IF(COUNTA(A2:B2)=2,INDEX(Sheet2!$A$1:$E$30,MATCH(A2,Sheet2!$A$1:$A$30,0),MATCH(B2,Sheet2!$A$1:$E$1,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