Get the last non-empty cell in a column in Google Sheets

后端 未结 16 2193
温柔的废话
温柔的废话 2020-11-28 21:04

I use the following function

=DAYS360(A2, A35)

to calculate the difference between two dates in my column. However, the column is ever exp

16条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 21:51

    for a row:

    =ARRAYFORMULA(INDIRECT("A"&MAX(IF(A:A<>"", ROW(A:A), ))))
    

    for a column:

    =ARRAYFORMULA(INDIRECT(ADDRESS(1, MAX(IF(1:1<>"", COLUMN(1:1), )), 4)))
    

提交回复
热议问题