dynamically reference a sheet name within closed workbook and return value

greenkevin86

New Member
Joined
Apr 4, 2019
Messages
6
I have a workbook named "Results" with a row containing the weeks in a year 1 through 52. There is another closed workbook named "Daily Stats" that I would like to dynamically reference a particular sheet name based on the week (each sheet is named W1, W2, W3, etc) and return a value from a common cell ($O$3), and use this value within a calculation. The closed workbook has individual sheets for each week, and the value I would like to return will be variable based on what week I am on (goal of copying this formula across all 52 weeks so I don't have to manually open the workbook and get the value).

The following formula works but ONLY IF I have the "Daily Stats" file open:

=INDIRECT("'F:\Shared\Daily Management Review\[2019 Daily Stats.xlsx]W"&C22&"'!$O$3")/1000


Is there a way to get this to work without opening the workbook (when closed, I get a #REF error on each of the cells this formula is copied to)?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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