EXCEL:单元格中的数组。如何获得阵列? [英] EXCEL: Array in a cell. How to get the array back?

查看:206
本文介绍了EXCEL:单元格中的数组。如何获得阵列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在B2中有公式 = ROW(A1:A3)。此公式给出了 {1; 2; 3} 的数组。由于单元格仅包含一个值,因此单元格 B2 显示的值为 1 。在工作表中的任何位置,公式 = B2 给出的是 1 ,而不是数组。但是,Excel仍然记得该数组,因为公式仍在 B2 中。

Let's say I have in B2 the formula =ROW(A1:A3). This formula gives an array of {1;2;3}. Because a cell only holds one value, cell B2 displays a value of 1. Any place in the worksheet, the formula =B2 gives 1, not the array. Yet, Excel still remembers the array because the formula is still in B2.

有什么方法可以获取返回数组,整个数组,而不是其单个元素,可以用于进一步操作吗?我正在寻找类似 OPERATION(B2)= {1; 2; 3} 的东西。例如, SUMPRODUCT(OPERATION(B2))= SUMPRODUCT(ROW(A1:A3))= 6

Is there any way to get the array back so it, the whole array, not its individual elements, can be used for further manipulation? I'm looking for something like OPERATION(B2) = {1;2;3}. For example, SUMPRODUCT(OPERATION(B2)) = SUMPRODUCT(ROW(A1:A3)) = 6.

推荐答案

作为解决方法,您可以将公式存储在名称管理器中,例如:

As a workaround, you can store your formula in Name Manager, e.g.:

然后,您可以将其用作Excel公式中的引用,例如 = INDEX(Rows,2,1)

Then you can use it as a reference in Excel formulas, like =INDEX(Rows,2,1):

这篇关于EXCEL:单元格中的数组。如何获得阵列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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