Indirect reference to another workbook?

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Can somebody help me out with the formula phrasing with an indirect reference to a different workbook?

The workbook is called "Power," and the worksheet is "template," and I'm trying to link to cellB58 in that particular workbook, but not quite sure on the syntax.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
When you say link, do you want to get the value in cell B58 or do you want a hyperlink that when you click on the link it takes you to cell cell B58 in the other file?
 
Upvote 0
Sorry for the ambiguity. I meant that I'm trying to use the indirect formula to get the value of cell B58 from the "Power" workbook and the "template" worksheet in the current workbook I'm using. Not looking to hyperlink or anything.

Thanks.
 
Upvote 0
in cell A1: type "power.xlsx
in cell A2: type "template"


=INDIRECT("'["&A1&"]"&A2&"'!"&"$B$58")

should work as long as power.xlsx workbook is currently open... otherwise you will need to put the full file location reference in A1
 
Last edited:
Upvote 0
Thanks Danzon,

Rather than having to type the name of the workbook and worksheet in dummy cells, is it possible to incorporate them both into the folder? I tried replacing the A1 and A2 from your formula with them, but it didn't work. Is there a way to do this?
 
Upvote 0
I may be misunderstanding what you are after but...

if you just want to code the location directly in the formula then you don't need to use indirect at all

just use this formula in the cell..adjusting for the correct file location reference

='C:\Documents and Settings\user\Desktop\[power.xlsx]template'!$B$58
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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