Get current Row number inside ArrayFormula

前端 未结 2 649
温柔的废话
温柔的废话 2021-02-12 05:55

In a Google Docs Spreadsheet, I would expect this formula:

=ARRAYFORMULA(ROW())

to fill the column like:

[   1]
[   2]
[   3]
[   4]         


        
2条回答
  •  失恋的感觉
    2021-02-12 06:28

    The following may be a little simpler:

    =arrayformula(ROW(INDIRECT("A"&ROW()&":A")))
    

    or

    =index(ROW(INDIRECT("A"&ROW()&":A")))
    

提交回复
热议问题