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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,216,112
Messages
6,128,901
Members
449,477
Latest member
panjongshing

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