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

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

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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?
 

Malcolm1978

New Member
Joined
Jan 31, 2007
Messages
30
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
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
=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).
 

Forum statistics

Threads
1,181,405
Messages
5,929,756
Members
436,687
Latest member
Glass of Gin

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
Top