如何从 iWork Numbers 中的单元格查找表格名称?
我有一个包含很多表格的电子表格,我想知道从 iWork Numbers 中的单元格查找表格名称的公式是什么?例如,我有一个名为 TableA 的表,在该表内我想放置类似“=$B1”或其他名称的内容以在其中获取名称“January01”。仅仅键入它是不可接受的,因为这些表名称会在一个月中的多天发生变化(我们计划在一个电子表格中包含 30-31 个表格,并在几个月内有 12 个电子表格)。
I have a spreadsheet that has quite a few tables and I wonder what would be the formula to lookup table name from cell in iWork Numbers? For example I have table with name TableA, inside of that table I want to put something like "=$B1" or whatever to get the name "January01" in it. Just typing it is not acceptable, cause those table names will change for multiple day of the month (we planning to have 30-31 tables in one spreadsheet and have 12 spreadsheets for number of months).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可以使用另一个单元格中的文本来指定单元格中的工作表和/或表格名称或另一个单元格中的公式内的范围地址。
您可以使用间接函数。
示例:
假设特定表格的 A 列中的单元格包含工作簿中工作表的名称。
在 B 列中,您可以计算在每个工作表的表 1 的 D 列中包含文本“equal”,使用:
=COUNTIF(INDIRECT($A2&"::Table 1::$D", 1),"=equal")
这里指定工作表名称在 A 列中,因此该公式可用于整个列,而无需手动编辑公式来指定工作表名称。
It is possible to use text in another cell to specify a sheet and/or table name in the cell or range address within a formula in another cell.
You can use the INDIRECT function.
Example:
Assume the cells in column A of a particular table contain the names of the sheets in the workbook.
In column B you could count the number of cells that contain the text 'equal' in column D of Table 1 in each sheet using:
=COUNTIF(INDIRECT($A2&"::Table 1::$D", 1),"=equal")
Here the sheet name is specified in column A so the formula can be used for the entire column without having to manually edit the formula to specify the sheet name.
根据此支持论坛条目是不可能的。当我正在寻找同一问题的解决方案时遇到了它。
According to this support forum entry that is not possible. Came across it as I was looking for a solution to the same problem.
这是一个非常古老的线程,但以下是如何获取表名称:
您需要使用 REFERENCE.NAME 函数来获取表的名称(加上一些无关的信息,您可以使用 TEXTBEFORE 函数删除这些信息) 。
TEXTBEFORE(REFERENCE.NAME(SomeTableName::$A$1,1),":")
条目“SomeTableName::$A$1”是来自您感兴趣的名称的表中的随机单元格引用(在本例中为单元格 A1)要得到。在公式输入期间,您只需单击相关表格的单元格即可生成此引用,然后根据需要锁定单元格列和行。
单元格引用后面的参数“1”告诉 REFERENCE.NAME 函数返回表的名称和单元格名称。没有选项可以只返回表名。
TEXTBEFORE 函数将返回的字符串截断为第一个冒号之前的所有内容,仅返回表名。
This is a very old thread, but here is how to get the table name:
You need to use the REFERENCE.NAME function to get the name of the table (plus some extraneous info, that you get rid of by using the TEXTBEFORE function).
TEXTBEFORE(REFERENCE.NAME(SomeTableName::$A$1,1),":")
The entry "SomeTableName::$A$1" is a random cell reference (in this case cell A1) from the table whose name you are interested to get. During formula entry, you merely click on a cell of the table in question to generate this reference, and then lock cell column and row, as needed.
The parameter "1" following the cell reference tells the REFERENCE.NAME function to return the name of the table and the cell name. There is no option to return just the table name.
The TEXTBEFORE function truncates the returned string to everything before the first colon, returning just the table name.