ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   can excel find the last used line in a column and display it? (https://www.excelbanter.com/excel-worksheet-functions/17636-can-excel-find-last-used-line-column-display.html)

Paul - South Australia

can excel find the last used line in a column and display it?
 
With a column of data I want to automatically select the last line and
display it in another cell, possible?

Earl Kiosterud

Paul,

This won't select it, only a macro could do that, but this formula will
display the last cell. There can be no empty cells along the way.

=OFFSET(A1,COUNTA(A:A)-1,0,1,1)

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Paul - South Australia" <Paul - South
wrote in message ...
With a column of data I want to automatically select the last line and
display it in another cell, possible?




Gord Dibben

Paul

To display the last numeric in a column........

=LOOKUP(9.99999999999999E+307,A:A)

To display the last text entry in a column..........

=LOOKUP(REPT("z",255),A:A)

Both will ignore blank cells.


Gord Dibben Excel MVP


On Mon, 14 Mar 2005 20:01:02 -0800, "Paul - South Australia" <Paul - South
wrote:

With a column of data I want to automatically select the last line and
display it in another cell, possible?




All times are GMT +1. The time now is 11:45 AM.

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