L
Legacy 116183
Guest
I have a row of numbers which work on a Year to Date Basis.
As we go through the year more and more of the cells become populated. I want to select the YTD figure and display this in a bottom row.
The difficulty is that those cells that haven't yet been used have a zero in them. How can I get this to select the last figure in the column excluding the zeros.
=OFFSET(Z5,0,COUNTA(Z5:Z57)) brings up week 52 which is zero of course.
=IF(R18=0,"",(SUM($R$5:R18)-SUM($J$5:J18))) This is the formula which is in ech cell from r5 to r52.
Thanks for any help.
As we go through the year more and more of the cells become populated. I want to select the YTD figure and display this in a bottom row.
The difficulty is that those cells that haven't yet been used have a zero in them. How can I get this to select the last figure in the column excluding the zeros.
=OFFSET(Z5,0,COUNTA(Z5:Z57)) brings up week 52 which is zero of course.
=IF(R18=0,"",(SUM($R$5:R18)-SUM($J$5:J18))) This is the formula which is in ech cell from r5 to r52.
Thanks for any help.