Google 电子表格范围名称

发布于 2024-07-14 19:19:15 字数 398 浏览 10 评论 0原文

在 Google 文档电子表格中,可以使用 范围名称在单元格范围上放置标签以使公式更清晰。 在大多数公式中,可以使用范围 C:C 来表示整个 C 列,使用 C2:C 来表示 C2 之后(包括 C2)的整个 C 列。

有没有办法创建相同性质的范围名称? 当我尝试 C:C 或 C2:C 或 Sheet!C:C 或 'Sheet'!C:CI 时,总是收到错误“您指定的范围不是有效的范围格式”。 当我的表单向电子表格添加行时,我希望范围名称能够扩展。 谢谢。

In Google Docs Spreadsheets, one can use Range Names to put labels on ranges of cells to make formulas more legible. In most formulas, one can use the range C:C to denote the entire C column, and C2:C to denote the entire C column after and including C2.

Is there a way to create range names of the same nature? When I try C:C or C2:C or Sheet!C:C or 'Sheet'!C:C I always get the error "The range you specified is not in a valid range format." I would like the range name to expand as my form adds rows to my spreadsheet. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

海螺姑娘 2024-07-21 19:19:15

我刚刚发现如果您使用“-”运算符,它会从底行开始。 所以,

=INDIRECT("-D:D12")

从最后一行开始一直到 D12!

I just discovered the if you use the '-' operator, it starts from the bottom row. So,

=INDIRECT("-D:D12")

starts from the last row and works it's way up to D12!

给不了的爱 2024-07-21 19:19:15

我有类似的问题。 尽管我不知道如何准确执行您所要求的操作,但您可以通过引用尚未创建的单元格来执行基本相同的操作。

例如:
C 列当前有 100 个单元格(工作表中有 100 行)
不要使用 C:C 引用它,而是使用 C1:C999

如果您将行引用设置得足够高,那么您就可以考虑将来将创建的行。 希望能帮助到你。

I had a similar problem. Although I do not know how to do exactly what you are asking, you can do essentially the same thing by referencing cells that are not yet created.

For example:
Column C currently has 100 cells (100 rows in the sheet)
Instead of referencing it with C:C, use C1:C999

If you make the row reference high enough, then you can account for future rows that you will create. Hope it helps.

夜吻♂芭芘 2024-07-21 19:19:15

我不这么认为......即使您在范围名称选择器中手动选择列,它也会抱怨。 这将是一个很好的功能,而且很有意义,因为它们已经支持公式的列范围。

I don't think so... even if you select a column manually while in the Range Name selector, it complains. That would be a nice feature and it would make sense since they support column ranges for formulas already.

擦肩而过的背影 2024-07-21 19:19:15

我相信这现在确实有效。 我的范围名称为“Sheet1!A10:AW10”,没有任何问题。

如果您尝试执行整个列,我认为它只会占用当时列中的所有可用单元格。 即,如果稍后创建更多单元格,则需要手动添加到范围名称。

I believe this does work now. I have a range name of "Sheet1!A10:AW10" with no problems.

If you try to do a whole column, I think it will just take all the available cells in the column at that time. i.e. if you make more cells later, you need to manually add to the range name.

暖树树初阳… 2024-07-21 19:19:15

我对 A3:A 这样的范围也有同样的问题,它通常在其他地方工作,例如 ARRAYFORMULA(),但解决方法是不指定起始行,例如如A:A。 如果出现问题,您可以使用 ARRAYFORUMULA(A25:A) 作为公式,通过另一列代理数据。

更新:显然我没有正确阅读问题。 我看到OP尝试省略行号,所以也许当时它不起作用,但现在可以了。 注释仍然不起作用。

Update2:我没有注意到谷歌电子表格将 A:A 等范围替换为 A1:A50,因此稍后添加的新行仍然不会被包含在内。 我认为这就是@Dean 在他的回答中试图表达的内容。

I had the same problem with ranges such as A3:A which normally work in other places such as ARRAYFORMULA(), but the workaround is to not specify the starting row, such as A:A. In cases when this would be a problem, you can proxy the data through another column using something like ARRAYFORUMULA(A25:A) as the formula.

Update: Apparently I haven't read the question properly. I see that the OP had tried leaving out the row number, so perhaps it wasn't working at that time, but it does now. The notations still don't work.

Update2: I didn't notice that google spreadsheet replaces ranges like A:A to A1:A50, so new rows added later on do not still get included. That I think is what @Dean is trying to say in his answer.

听你说爱我 2024-07-21 19:19:15

我认为使用 Insert -> 这是一个有用的工具。 定义新范围以使向导出现并使语法正确。 呵呵

我在其他主题中的回复

I think it's a helpful tool to use Insert -> Define new range to make a wizard appear and make the syntax correct. Hehe

My response in other topic

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文