Selecting the bottom cell of a table

silentbob30

New Member
Joined
Jun 9, 2009
Messages
35
Hello

Feel guilty for asking this as I am sure it is very easy but I cant think how best to do it

I have set of date and the last cell in column A is 2000. In A2 I want a forumla that will always point to the last cell in that column and displays the value. THe set of data will vary in length so A2 always needs to to select the last cell in its column.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi,

To find the last TEXT value use:

=INDEX(A:A,MATCH(REPT("z",255),A1:A2000))

To find the last NUMERICAL value, use:

=INDEX(A1:A14,MATCH(9.99999999999999E+307,A1:A2000))

If you arn't sure what the last value is (either TEXT or NUMERIC) then use:

=INDEX(A2:A2000,MAX(MATCH(9.99999999999999E+307,A2:A2000),MATCH(REPT("z",255),A2:A2000)))
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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