Hlookup table array problem

nachiketdp

Board Regular
Hi all,
I have got a worksheet whose Column C contains diffferent cell ranges. Column H contains an hlookup throughout. Now for all Column H entries, I am trying to enter the arguement "table array" of the hlookup as corresponding column C entry. However, I am getting all results as #N/A since the table array which is getting defined is nothing but the correspoding cell in Column C.

For eg. my cell C2 contains I4:I50. When I try to define the table array of the hlookup in H2 as C2(i.e. I want I4:I50 to feature in the hlookup formula) I get #N/A since the table array which is getting defined is nothing but C2.

So is there any solution for the above problem?

Any kind of help from you will be highly appreciated !!!

Regards,
Nachiket Pendharkar.

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What is the formula you have tried?

I tried this formula in cell H2

=HLOOKUP(E2,C2,DAY('DR 2'!\$D\$4)+1,0)

Cell C2 contains I4:I50. Rest all arguements are working fine only table array is giving me trouble.

Hope you have a magic lamp for me(hehehehehe)

Regards,
Nachiket Pendharkar.

I tried this formula in cell H2

=HLOOKUP(E2,C2,DAY('DR 2'!\$D\$4)+1,0)

Cell C2 contains I4:I50. Rest all arguements are working fine only table array is giving me trouble.

Hope you have a magic lamp for me(hehehehehe)

Regards,
Nachiket Pendharkar.

=HLOOKUP(E2,INDIRECT(\$C\$2),DAY('DR 2'!\$D\$4)+1,0)

The indirect function works just superbly !!! You indeed have a magic lamp for me !!!

Thanks a million !!!!

Regards,
Nachiket Pendharkar.

Replies
1
Views
246
Replies
3
Views
346
Replies
4
Views
724
Replies
16
Views
564
Replies
2
Views
81

1,217,760
Messages
6,138,446
Members
450,137
Latest member
HANHAN

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back