ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can you combine VLOOKUP with a nest HLOOKUP? (https://www.excelbanter.com/excel-discussion-misc-queries/148869-can-you-combine-vlookup-nest-hlookup.html)

PCoyne

Can you combine VLOOKUP with a nest HLOOKUP?
 
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,FixTyp e!$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

Toppers

Can you combine VLOOKUP with a nest HLOOKUP?
 
Look at INDEX function which uses the intersection of row & column to
retrieve data.

"PCoyne" wrote:

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,FixTyp e!$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


PCoyne

Can you combine VLOOKUP with a nest HLOOKUP?
 
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!

"Toppers" wrote:

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

"PCoyne" wrote:

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,FixTyp e!$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


Toppers

Can you combine VLOOKUP with a nest HLOOKUP?
 
We aim to please! Thanks for the feedback.

"PCoyne" wrote:

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!

"Toppers" wrote:

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

"PCoyne" wrote:

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,FixTyp e!$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



All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com