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.
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

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,201
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,216
Messages
5,594,886
Members
413,947
Latest member
gizmolucy

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