vba - Excel: Contents of the last previous non-empty cell in a column (above active cell) -
i have column can contain number of blank cells in row. whether cell blank or not depends in complex way on contents of several other columns. if cell not blank, should contain 1 plus contents of last previous non-blank cell (i.e lowest non-blank cell above in same column). need update these numbers dynamically.
how find value of last previous non-blank cell in column?
i prefer formula, willing use vba approach if there no workable formula approach.
i grateful get.
a vba user-defined function:
function prevplus() application.volatile prevplus = application.caller.end(xlup).value + 1 end function
Comments
Post a Comment