Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tb tb is offline
external usenet poster
 
Posts: 12
Default Address of Last Cell With Data

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.
--
tb
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Address of Last Cell With Data

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)

"tb" wrote in message
...
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.
--
tb




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Address of Last Cell With Data

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)

"Ron Coderre" wrote in message
...
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)

"tb" wrote in message
...
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.
--
tb







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Address of Last Cell With Data

=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

On Wed, 12 Dec 2007 16:42:43 -0800 (PST), tb wrote:

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.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Address of Last Cell With Data

On Wed, 12 Dec 2007 16:42:43 -0800 (PST), tb wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
Identify address of cell containing specific data Peter N. Excel Discussion (Misc queries) 3 July 12th 07 06:08 PM
Data Validation: Store cell address instead of value in the cell? WillW Excel Discussion (Misc queries) 1 January 31st 07 02:22 AM
separate address data in a cell Joe in CT Excel Discussion (Misc queries) 2 March 19th 06 01:55 AM
How do I include cell data in subject line of email address/hyperl gvinnola Excel Worksheet Functions 1 November 18th 04 02:36 AM


All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"