A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Bill wrote:
One suitable formula would be
=MAX(ROW(A$1:A1)*A1)
entered as an array formula in B1 (using Ctrl+Shift+Enter) and copying down.
I believe that returns zero when column A is zero, specifically rows 3, 4 and 7-12. Alan's example indicates that he wants to see 2 or 6 in those rows; i.e. the last 1 in previous rows. He wrote that his MATCH function seemed to be "working until row 13". (Of course, it was by luck.)