Selecting the last value of a column

前端 未结 23 1934
再見小時候
再見小時候 2020-11-28 19:15

I have a spreadsheet with some values in column G. Some cells are empty in between, and I need to get the last value from that column into another cell.

Something li

23条回答
  •  悲哀的现实
    2020-11-28 19:40

    The answer

    $ =INDEX(G2:G; COUNT(G2:G))
    

    doesn't work correctly in LibreOffice. However, with a small change, it works perfectly.

    $ =INDEX(G2:G100000; COUNT(G2:G100000))
    

    It always works only if the true range is smaller than (G2:G10000)

提交回复
热议问题