Hlookup table array problem

nachiketdp

Board Regular
Joined
Jan 31, 2007
Messages
53
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi Aladin,
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.
 
Upvote 0
Hi Aladin,
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)
 
Upvote 0
Hi Aladin,
The indirect function works just superbly !!! You indeed have a magic lamp for me !!!

Thanks a million !!!!

Regards,
Nachiket Pendharkar.
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,044
Members
448,543
Latest member
MartinLarkin

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top