简体   繁体   中英

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?

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) .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM