Selecting the last value of a column

前端 未结 23 1933
再見小時候
再見小時候 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:37

    LAST() function is not implemented at the moment in order to select the last cell within a range. However, following your example:

    =LAST(G2:G9999)
    

    we are able to obtain last cell using the couple of functions INDEX() and COUNT() in this way:

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

    There is a live example at the spreedsheet where I have found (and solved) the same problem (sheet Orzamentos, cell I5). Note that it works perfectly even refering to other sheets within the document.

提交回复
热议问题