简体   繁体   English

具有扩展单元格范围的命名表(Excel 2003)

[英]named table with an expandable range of cells (Excel 2003)

In Excel 2003 I have table like this: 在Excel 2003中,我有这样的表:

在此处输入图片说明

How can I create named table with an expandable range of cells (not using VBA)? 如何创建具有可扩展单元格范围的命名表(不使用VBA)?

@Brettdj has provided a solution but for want of an answer as such: @Brettdj提供了一个解决方案,但由于缺少这样的答案:

  1. Put =RAND()*0+201 in B2 – this does not affect the result of B2 but since =RAND is a volatile function it will force an update of the named range array as and when that is changed. =RAND()*0+201放入B2中-这不会影响B2的结果,但是由于= RAND是易失性函数,因此更改时将强制更新命名范围数组。
  2. Define the range for the name as =OFFSET($B$2,0,0,COUNT($B$2:$B$200),1) (or adjust $200 to something more suitable). 将名称范围定义为=OFFSET($B$2,0,0,COUNT($B$2:$B$200),1) (或将$ 200调整为更合适的值)。

If the range is named say Bcolumn now =SUM(Bcolumn ) would return 3,618 as would =SUM(B2:B19 ) in your example, but while the latter would remain as 3,618 if 201 were inserted in B20, the former would then return 3,819. 如果将范围命名为Bcolumn现在=SUM(Bcolumn )将返回3,618,在您的示例中将返回=SUM(B2:B19 ),但是如果在B20中插入201,后者将保持为3,618,则前者将返回3,819 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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