I use the following function
=DAYS360(A2, A35)
to calculate the difference between two dates in my column. However, the column is ever exp
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.