I want to understand the difference between count and end(xlup) The purpose of both the expressions is to count number of cells with values in it! Then why are we using it together in the following code below:
Lastrowindex = cells(rows.count, "A"). End(xlUp).row
I had used count in one subroutine where I had selected the range and using count I found out how many cells contain data in it.
By googling the definition of end(xlup) it returned me same definition as for count i.e. to count the cells in our worksheet that have values in it.
When I tried the step to understand the output of Cells(rows.count, "A").shouldn't i get the count of cells with data in it?
Cells(rows.count, "A").End(xlUp).row