Need to Find End Value of a Column with Unknown End Range

  • Thread starter Thread starter Tricia
  • Start date Start date
T

Tricia

I have a need to find the Last Value of a Column where the
max rows varies from day to day. Does anyone know how
to auto find this end value of the column via code without
know how many rows will be in the column?
 
Via code (assuming col c):
LastVal = Range("C65536").end(xlup).value

Via cell formula:
ctrl/shift/enter:
 
If there are only numbers in the column or at least the last filled cell
will be a number, this will be a much faster formula than an array formula:

=INDEX(D:D,MATCH(9.99999999999999E+307,D:D,1),1)
 

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

Back
Top