user3281173
user3281173

Reputation: 41

Using OFFSET in dynamic named range in chart in excel 2010 causes crash

I created a workbook in Excel 2007 that has many dynamic named ranges. They all use the OFFSET function. An example is name of range is "date", worksheet is "Example", and Refers to is =OFFSET('Example'!$N$3;0;0;COUNTA(!$N:$N);1). I use these dynamic named ranges as the data selection for charts.

My issue is that when I attempt to open my workbook in Excel 2010, Excel immediately crashes. I determined the issue was with using my dynamic named ranges for the chart data selection. I created a new workbook and created the named dynamic range (like described above) with no issue. But the moment I set the named dynamic range as the data selection for a chart Excel crashed!

Any idea if I'm doing something wrong? Any idea for a workaround?

Upvotes: 2

Views: 929

Answers (1)

user3281173
user3281173

Reputation: 41

I've solved the issue with some help from the Microsoft Community. TUrns out that Excel 2007 can handle =OFFSET('Example'!$N$3;0;0;COUNTA(!$N:$N);1) but Excel 2010 can't. You need to explicitly name the sheet in the COUNTA function. So, in Excel 2010 it should look like: =OFFSET('Example'!$N$3;0;0;COUNTA('Example'!$N:$N);1).

Upvotes: 0

Related Questions