Link to other Workbook Ref Error

Wkernan

New Member
Joined
May 29, 2012
Messages
6
Hello all,

Im attempting to create a work sheet that will essestially abbriavte the data in another workbook. I'm using the below formula for most of the calculations.

Code:
=AVERAGE(INDIRECT("'Raw Data'!A"&(INT(ROW())-1)*60+5&":A"&(INT(ROW())-1)*60+65))

This performs the calculation correctly for a different sheet in the same workbook however I'm struggling to get the code to work when linked to a different workbook. Keep getting a #ref error. Included the code I'm trying to use use below. Thank you for any help you can give.

Code:
=AVERAGE(INDIRECT("' C:\Users\Public[Data Sheet.xls]Raw Data'!A"&(INT(ROW())-1)*60+5&":A"&(INT(ROW())-1)*60+65))
 

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,203,491
Messages
6,055,727
Members
444,814
Latest member
AutomateDifficulty

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