Reference to external data

VictorSueno

New Member
Joined
Aug 27, 2008
Messages
5
I have oversimplified the following scenario in order to get to a specific question...

I have the following two excel files:
File #1 = ModelData.xls
File #2 = DistrictFormat.xls

File #1 contains one worksheet named "basn". The worksheet includes a column with header "NAME" and text data below it.

File #2 contains two worksheets; "Notes" and "BASIN_GN"

The "Notes" worksheet contains a cell (A1) with the following value

'C:\ProjectName\[ModelData.xls]basn'!$A:$V

The "BASINS_GN" contains a column (column A) with the header "NAME" but no data below it.

Now here's my question...

I would like to use a HLOOKUP function in worksheet BASIN_GN to return a value from the column "NAME" in the basn worksheet. The hitch is that I don't want to use the value in cell A1 of the Notes worksheet instead of hard entering the lookup range. The following is the formula that I used.

=HLOOKUP("NAME",Notes!A1,1,0)

Why doesn't it work. How can I make this work so that I can change the value in cell A1 so that HLOOKUP function will retreive data from different files (when value in A1 is changed)?

I realize that it is setting Notes!A1 as the lookup range. How can I get it to do what I want instead? Thank you for your help.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,216,036
Messages
6,128,432
Members
449,452
Latest member
Chris87

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