且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取ArrayFormula中的当前行号

更新时间:2023-01-28 13:35:23

您需要为ROW()指定一个单元格范围参数,以便具有多个值.

You need to specify a cell-range argument for ROW() in order to have more than one value.

以这种方式尝试:

=ARRAYFORMULA(ROW(A1:A10))

这将用1至10的行号填充一列.

This will fill a column with row numbers from 1 to 10.