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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

nachiketdp

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

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)
 

nachiketdp

Board Regular
Joined
Jan 31, 2007
Messages
53
Hi Aladin,
The indirect function works just superbly !!! You indeed have a magic lamp for me !!!

Thanks a million !!!!

Regards,
Nachiket Pendharkar.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,158
Messages
5,835,718
Members
430,383
Latest member
Kastore

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
Top