Address of Last used cell in Column "A" and Dynamic Named Range

blbat

Active Member
Joined
Mar 24, 2010
Messages
338
Office Version
  1. 2016
  2. 2013
Find the Address of Last used cell in Column "A" -using a formula only- whether numeric or text.

There will be NO blank cells between the beginning and end of the values in Column "A". The values may be numeric or text.

I know this:

=ADDRESS(MATCH(9.99999999999999E+307,A:A),1)
finds address of last numeric value, and that:

=ADDRESS(MATCH(REPT("z",255),A:A),1)
finds address of last text.

So I was trying to figure a way to find the addess of the last used cell in column "A" without regard to value type in the cell (numeric or text).

I thought about using a "IF(ISNUMBER( " statement such as:

=If(ISNUMBER(ADDRESS(MATCH(9.99999999999999E+307,A:A),1),ADDRESS(MATCH(9.99999999999999E+307,A:A),1),ADDRESS(MATCH(REPT("z",255),A:A),1)
but I get errors, I can't tell if my logic is flawed or my syntax is flawed.

My intent with the above statement is that If "ISNUMBER" is "TRUE" then give me the address, if "FALSE" then "ADDRESS(MATCH(REPT("z",255),A:A),1)" which would still give me the last address.

or is there a cleaner way?
 
Re: Address of Last used cell in Column "A" -using a formula only- whether numeric or text

Disregard previous post!

I was studying the site that VoG posted and figured out I need to put the scope equal to the workbook...NOT the sheet. (because I was invoking it from a different sheet)

I love this place.
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top