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

后端 未结 16 2230
温柔的废话
温柔的废话 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:57

    To find the last non-empty cell you can use INDEX and MATCH functions like this:

    =DAYS360(A2; INDEX(A:A; MATCH(99^99;A:A; 1)))
    

    I think this is a little bit faster and easier.

提交回复
热议问题