在 Excel 中使用命名范围作为系列值 [英] Using named range as series values in Excel

查看:24
本文介绍了在 Excel 中使用命名范围作为系列值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 Apache POI 的模板生成的电子表格,其中包含一些硬编码的命名范围.

I have a spreadsheet generated from a template using Apache POI with some Named Ranges hard coded in.

Named range: ACTUALS  Refers to: =Report!$O$5:$AL$5

现在我有了一张图表……其中一个系列看起来像这样

Now I have a chart... one of the series looks like this

Series name: =Report!$N$5  Series values: =Report!$O$5:$AL$5

注意命名范围引用"与系列值"相同.
我可以以与此类似的方式使用命名范围作为系列值吗?

Notice the named range "refers to" is the same as the "series values".
Can I use the named range as the series value in some way similar to this?

Series name: =Report!$N$5  Series values: =ACTUALS

上面的部分给出了一个错误,所以我不确定我做错了什么.

The section above gives an error so I'm not sure what I'm doing wrong.

推荐答案

在 Excel 中,工作表名称必须包含在图表数据区域中,即使命名区域位于同一工作表中.在您的情况下:=Report!ACTUALS.

In Excel, the sheet name must be included in the chart data range even if the named range is on the same sheet. In your case: =Report!ACTUALS.

这篇关于在 Excel 中使用命名范围作为系列值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆