How can assigning an array formula values which referred with a Name, to the List Data-Validation?
我写了下面的数组公式:
1 | =INDEX(Table1[Column2],SMALL(IF(Sheet1!G6=Table1[Column1],ROW(Table1[Column1])-ROW(Table1[[#Headers],[Column1]])),ROW($A:$A))) |
根据这张图1:
注意所选范围包含上述数组公式。
我需要为右表的
我试过的:
我定义了一个
然后设置右表数据验证的
问题是
但是在结果中,验证列表只包含数组公式的第一个结果!如下图4:
问题
如何将数组公式值的结果集定义为
My concepts are:
There where a
array form formula as shown above. (On the paper and
not in a worksheets range, yet)This array formula is corresponding to a set -collection- of (potentially returned) results.
I want use above set in the
Data-Validaton List for a special Table column.Not using helper things (as Sheet, Column, Pivot-table and Etc...)
Using (1)-
Name (Ctrl + F3), (2)- the array formula (for generating valid results collection), and (3)-Data-Validation List (to check is entered value in above special Table column is valid or not valid; and let entering only valid data in that special column))
我知道您说过您不想使用辅助列或工作表。但是说:
- 表格和数组公式不能共存。
- 数据验证源不能是任何类型的复杂公式,但如果需要,您可以在源公式上使用间接到命名范围或地址(但前提是它是连续区域,而不是多个区域)。
- 在数组公式中,数组永远不会作为整体结果返回,用作计算目标的每个单元格都是返回数组的一项。
所以我会做什么,返回一个区域中的数组公式,让我们说 A1,以及使用另一个单元格 B1 有效的数组结果中的项目数的计数器。使用单元格 C1 确定要使用的列表的地址。然后在验证源中使用
您可以隐藏其他工作表,以便其他用户看不到它,如果您通过宏将其隐藏,您可以将其设置为非常隐藏,并且无法直接从工作簿中使其可见。在我的示例中,您还可以为 C1 单元格创建一个命名范围,以便最终用户无法看到此验证源的来源。