The simplified situation is:
a cell has the formula =SUM(A1:A100)
I need to calculate the row number in the 2nd argument so as to get the last row populated.
The formula =MATCH(LOOKUP(2,1/($A:$A<>""),$A:$A),$A:$A,0)+ROW($A:$A)-1 in a different cell works correctly.
Say I have the formula above in cell B1.
How do I plug in the value from B1 so as to substitute it for the hard coded value 100 in the =SUM() function?
Many thanks
a cell has the formula =SUM(A1:A100)
I need to calculate the row number in the 2nd argument so as to get the last row populated.
The formula =MATCH(LOOKUP(2,1/($A:$A<>""),$A:$A),$A:$A,0)+ROW($A:$A)-1 in a different cell works correctly.
Say I have the formula above in cell B1.
How do I plug in the value from B1 so as to substitute it for the hard coded value 100 in the =SUM() function?
Many thanks