ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Length of series (https://www.excelbanter.com/excel-programming/370513-length-series.html)

Arne Hegefors

Length of series
 
How do you find the length of a data series? I have a column with data.
Starting at a particular point in that column how do you find the last cell
that contains any data?

Now I have code that does that but I think there is a function that odes it
for you, I just cannot figure out the name of it.

My code looks like:

Do Until IsEmpty(rng(1).Offset(i, 0)) = True
i = i + 1
Loop

Arne Hegefors

Length of series
 
Sorry already asked this question. Please disregard!

"Arne Hegefors" skrev:

How do you find the length of a data series? I have a column with data.
Starting at a particular point in that column how do you find the last cell
that contains any data?

Now I have code that does that but I think there is a function that odes it
for you, I just cannot figure out the name of it.

My code looks like:

Do Until IsEmpty(rng(1).Offset(i, 0)) = True
i = i + 1
Loop


derobin

Length of series
 
MsgBox (ActiveCell.End(xlDown).Row - ActiveCell.Row)

lg
Robin

Arne Hegefors schrieb:

How do you find the length of a data series? I have a column with data.
Starting at a particular point in that column how do you find the last cell
that contains any data?

Now I have code that does that but I think there is a function that odes it
for you, I just cannot figure out the name of it.

My code looks like:

Do Until IsEmpty(rng(1).Offset(i, 0)) = True
i = i + 1
Loop




All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com