Can you combine VLOOKUP with a nest HLOOKUP?


G

Guest

I'm trying to match my selection from a dropdown list to a row, and then my
selection from a different drop down list to the column that matches it, so I
can retrieve the cell that both the column and row match up to... Similiar to
a times table.

My best shot is:

=IF(B4=0,"
",VLOOKUP(B4,FixType!$A$1:$V$58,(HLOOKUP(C4,FixType!$A$1:$V$58,1,FALSE))))

But it only *sometimes* returns a number from the FixType worksheet, and
it's either wrong or #VALUE.

Thanks,
PC
 
Ad

Advertisements

G

Guest

Look at INDEX function which uses the intersection of row & column to
retrieve data.
 
G

Guest

God bless you Toppers!

=INDEX(FixType!$A$1:$V$58,MATCH(A4,FixType!$A$1:$A$58,1),MATCH(B4,FixType!$A$1:$V$1,1))

Works!!! I've been on this for two straight days. I'm so happy!
 
Ad

Advertisements

G

Guest

We aim to please! Thanks for the feedback.

PCoyne said:
God bless you Toppers!

=INDEX(FixType!$A$1:$V$58,MATCH(A4,FixType!$A$1:$A$58,1),MATCH(B4,FixType!$A$1:$V$1,1))

Works!!! I've been on this for two straight days. I'm so happy!
 

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