I have two worksheets, Sheet1
and Data
.
The total number of rows in Data
is always changing depending on a database.
Now in Sheet1
I wanted to calculate the SUM
of a column in Data
I understand that =SUM('Data'!R2:R100)
will give the SUM
of cells from R2
to R100
, but in Data
does not always contain 100 rows, it can be more or less.
So how can I enhance the formula so that it can always SUM
until the last row of Data
?
Thanks for any advice in advance!