ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   find last cell in column - without VBA (https://www.excelbanter.com/excel-discussion-misc-queries/39765-find-last-cell-column-without-vba.html)

Harold Good

find last cell in column - without VBA
 
Hi,

Apart from using VBA, is there any way to write a formula that will find the
last used cell in a column of 15 cells? In the first set below, it would be
..388, in the second set it would be .133. Any help would be appreciated.

0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.313
0.388



0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000



Bernie Deitrick

Harold,

One way, for numbers in A1:A15:

=INDEX(A1:A15,SUMPRODUCT(MAX((A1:A150)*ROW(A1:A15 ))))

HTH,
Bernie
MS Excel MVP


"Harold Good" wrote in message ...
Hi,

Apart from using VBA, is there any way to write a formula that will find the last used cell in a
column of 15 cells? In the first set below, it would be .388, in the second set it would be .133.
Any help would be appreciated.

0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.313
0.388



0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000





Harold Good

Thanks again, I really appreciate this one, I never thought of combining
these functions to come up with this.

Harold


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Harold,

One way, for numbers in A1:A15:

=INDEX(A1:A15,SUMPRODUCT(MAX((A1:A150)*ROW(A1:A15 ))))

HTH,
Bernie
MS Excel MVP


"Harold Good" wrote in message
...
Hi,

Apart from using VBA, is there any way to write a formula that will find
the last used cell in a column of 15 cells? In the first set below, it
would be .388, in the second set it would be .133. Any help would be
appreciated.

0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.313
0.388



0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000







Sandy Mann

One way:

=LOOKUP(2,1/(A1:A150),A1:A15)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Harold Good" wrote in message
...
Hi,

Apart from using VBA, is there any way to write a formula that will find
the last used cell in a column of 15 cells? In the first set below, it
would be .388, in the second set it would be .133. Any help would be
appreciated.

0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.313
0.388



0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000





Harold Good

It worked great, thanks,

Harold


"Sandy Mann" wrote in message
...
One way:

=LOOKUP(2,1/(A1:A150),A1:A15)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"Harold Good" wrote in message
...
Hi,

Apart from using VBA, is there any way to write a formula that will find
the last used cell in a column of 15 cells? In the first set below, it
would be .388, in the second set it would be .133. Any help would be
appreciated.

0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.313
0.388



0.006
0.000
0.036
0.125
0.133
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000








All times are GMT +1. The time now is 06:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com