I have been trying to create a dynamic range within excel that would include all the rows in a column up until the last number before all the zeroes. For example here is the string of data.
0
0
350
500
107
0
200
500
27
736
0
0
0
0
In this case the numbers within the range that would be selected would be:
0
0
350
500
107
0
200
500
27
736
Any guidance would be greatly appreciated.
Thx
Assuming your data starts at
A1onSheet1you could define the range by using this formula in the “refers to” box=Sheet1!$A$1:INDEX(Sheet1!$A:$A,MATCH(2,1/(Sheet1!$A:$A>0)))that will include all the data up to the last >0 value