Address of Last Cell With Data

T

tb

Is it possible to detect the address of the last cell with data in a
worksheet? (Without having to resort to VBA!)
For instance, if I have data in column A, what formula would I use to
detect the address of the last cell with data?
Thanks.
 
R

Ron Coderre

Try this:
=CELL("address",INDEX(A1:A65535,MATCH(2,INDEX(1/(1-ISBLANK(A1:A65535)),0))))


Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
G

Gord Dibben

=LOOKUP(2,1/(A1:A65535<>""),A1:A65535) for any data

=ADDRESS(MATCH(99^99,A:A),1) for numeric data

=LOOKUP(REPT("z",255),A:A) for text data


Gord Dibben MS Excel MVP
 
R

Ron Rosenfeld

Is it possible to detect the address of the last cell with data in a
worksheet? (Without having to resort to VBA!)
For instance, if I have data in column A, what formula would I use to
detect the address of the last cell with data?
Thanks.


=ADDRESS(MATCH(2,1/NOT(ISBLANK(A1:A65535))),1)

entered as an **array** formula (enter with <ctrl><shift><enter>)


--ron
 
R

Ron Coderre

I should mention that the formula I posted will return
the cell address of the last non-blank cell (text OR numeric).

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top