COLUMN help

fenpark15

New Member
Joined
Oct 17, 2006
Messages
6
It's difficult for me to explain why, but what I need is to nest an HLOOKUP inside of a COLUMN function. I have the HLOOKUP set up so that the row it displays has (B2, C2, D2, etc.) entered in those cells. What I want is to nest this HLOOKUP inside a COLUMN so that the result of the HLOOKUP (B2 or whatever) is recognized as the [reference] for the COLUMN and the overall result would be an integer representing that column (i.e. for B2, 2; for C2, 3, etc.). For some reason, Excel will perform the HLOOKUP fine, but when I put the COLUMN around it, it gives me the error message. This is what I have:

=COLUMN(HLOOKUP(B4,'TMR Data'!A1:I2,2,FALSE))

As I said before, the HLOOKUP portion works fine without the COLUMN around it. What could I be doing wrong?

Thanks for your help!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,530
Messages
6,120,071
Members
448,943
Latest member
sharmarick

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