Referencing outside Tabs with reference formulas

NZ Kiwi

New Member
Joined
Jan 13, 2005
Messages
24
I’ve hit a brick wall and hope someone can help. I have developed a worksheet that references multiple pivot tables, which in turn have multiple tabs. These tabs are Region 1, Region 2, Region 3, etc.

My current formula reads like this:

HLOOKUP(F$4,'C:\Monthly Reports\[Sales Rprt - Freq.xls]Region 1'!$A$4:$CZ$9,3,FALSE)

where the lookup is going to the specified worksheet and tab. What I want to do instead is have the formula reference Region 1 on the current worksheet in field B2. I can then change B2 from Region 1 to Region 2 and so on and the lookup formula changes automatically. I’ve tried changing the formula from saying Region 1 to +B2 (see below)and trying to use the indirect formula, but have not been successful.

HLOOKUP(F$4,'C:\Monthly Reports\[Sales Rprt - Freq.xls]+B2'!$A$4:$CZ$9,3,FALSE)

I hope you can help. Thanks.

Doug
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Welcome to MrExcel -- you need the INDIRECT function which, unfortunately, works only with open workbooks.

Will the target book be open?

EDIT - Read this link for good info.
 
Upvote 0
In that case try --

HLOOKUP(F$4,INDIRECT("'C:\Monthly Reports\[Sales Rprt - Freq.xls]"&B2&"'!$A$4:$CZ$9"),3,FALSE)
 
Upvote 0
Thanks for the formula Jon, it did the trick and will make my life much easier.

I have tried to replicate the INDIRECT on my INDEX formula here:

=INDEX(INDIRECT("'C:\ Monthly Reports\[AMH Monthly Charts - Depts.xls]"&$A$1&"'!$A$4:$CZ$97"),MATCH($A25,INDIRECT("'C:\Monthly Reports\[AMH Monthly Charts - Depts.xls]"&$A$1&"'!$A$4:$A$97"),0),MATCH(G$5,INDIRECT("'C:\ Monthly Reports\[AMH Monthly Charts - Depts.xls]"&$A$1&"'!$A$4:$CZ$4"),0))

Unfortunately I am getting the #REF! Error. Any suggestions?

Thanks a million!!
 
Upvote 0
Sorry, A1 is the same as B2 above. It's the Region 1, Region 2 source that I will be changing and the formula needs to track.

Yes, the target file is open.

Doug
 
Upvote 0
A25/G5 are finding matches?

=MATCH($A25,INDIRECT("'C:\Monthly Reports\[AMH Monthly Charts - Depts.xls]"&$A$1&"'!$A$4:$A$97"),0)

returns a number from above?
 
Upvote 0

Forum statistics

Threads
1,203,534
Messages
6,055,954
Members
444,839
Latest member
laurajames

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