retrieve cell data from closed workbook

GedSalter

Board Regular
Joined
Apr 24, 2019
Messages
80
I am trying to retrieve a range to cell data from a closed workbook, but the workbook name is a variable in a cell referenced in a worksheet Analysis Cell B1.

The data is on a workbook whose File path is "C:\Users\61458\Desktop\TEST\Windows32\data" and worksheet called "Summary" and the cell data is a range of A1:A40.

I have tried the following but just returns an error.

=INDIRECT("'C:\Users\61458\Desktop\TEST\Windows32\data\[Analysis!&B1&]" Summary "'!$A$1:$A$40")

Hope you can help
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Excel Formula:
=INDIRECT("'C:\Users\61458\Desktop\TEST\Windows32\data\["&Analysis!B1&"]Summary'!$A$1:$A$40")
 
Upvote 0
How about
Excel Formula:
[QUOTE="Fluff, post: 5705252, member: 289073"]
How about[CODE=xls]
=INDIRECT("'C:\Users\61458\Desktop\TEST\Windows32\data\["&Analysis!B1&"]Summary'!$A$1:$A$40")
sorry fluff
[/QUOTE]

still returns #REF error
 
Upvote 0
Is the other workbook open?
 
Upvote 0
In that case it won't work. Indirect only works if the other workbook is open.
 
Upvote 0
What is in B1 on the Analysis sheet?
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,629
Members
449,241
Latest member
NoniJ

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