I am using Named ranges in a workbook (titled Workbook1), which uses the Offset formula to reference a dynamic range. For example,
The Named range is CategoryY, and it refers to the formula =OFFSET('Sheet1'!$A$1,1,0,COUNTA('Sheet1'!$A:$A)-1,1).
In another workbook (titled Workbook2), I have a chart which plots a line graph of the data with a series titled Yvalues, with the SeriesValues ='Workbook1.xlsx'!CategoryY.
When both Workbook2 and Workbook1 are open, the data on the chart plots with no problem. However, if Workbook1 is closed, and I open Workbook2, I get an error message which basically says the chart contains a formula which is not valid. When I look at the workbook links, a pop-up says Excel can't find the name CategoryY, and that it is an "Undefined or non-rectangular name."
I believe I have tracked this problem down to the use of the Offset formula in the Named Range, because if I simply point the range to the column of data, as opposed to using Offset to enable it to be dynamic, Excel doesn't care if I have Workbook1 open or closed. Am I missing something in order to make this work, or is there another way to allow a chart to refer to a dynamic range in a different, closed workbook?
The Named range is CategoryY, and it refers to the formula =OFFSET('Sheet1'!$A$1,1,0,COUNTA('Sheet1'!$A:$A)-1,1).
In another workbook (titled Workbook2), I have a chart which plots a line graph of the data with a series titled Yvalues, with the SeriesValues ='Workbook1.xlsx'!CategoryY.
When both Workbook2 and Workbook1 are open, the data on the chart plots with no problem. However, if Workbook1 is closed, and I open Workbook2, I get an error message which basically says the chart contains a formula which is not valid. When I look at the workbook links, a pop-up says Excel can't find the name CategoryY, and that it is an "Undefined or non-rectangular name."
I believe I have tracked this problem down to the use of the Offset formula in the Named Range, because if I simply point the range to the column of data, as opposed to using Offset to enable it to be dynamic, Excel doesn't care if I have Workbook1 open or closed. Am I missing something in order to make this work, or is there another way to allow a chart to refer to a dynamic range in a different, closed workbook?