Indirect function

Malcolm1978

New Member
Joined
Jan 31, 2007
Messages
30
Hi,

I am trying to use the indirect function so that it looks up a cell or cell range in a different workbook, could anyone tell me what the best way of doing this is?

Cheers

Malcolm
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi Malcolm

Importantly, the target workbook must be open too, otherwise the Indirect function will return an error. What kind of formula were you thinking of?
 
Upvote 0
HI,

I currently have the formula:

INDIRECT("'"&$E12&"'!$D$4")

where E12 is the nameof the sheet and D4 the target cell, I was just wondering whether it would be possible to extend this to look up a new book, for example BOOK2. How would I do this?

Cheers

Malcolm
 
Upvote 0
=INDIRECT("'[Book2.xls]Sheet1'!D4")

would be the syntax required to lookup D4 on Sheet1 of Book2.xls (this assumes that Book2 has already been saved down so that it does indeed have an .xls extension).
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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