tbl_cell_prev_galley_cell
cellId = tbl_cell_prev_galley_cell(cellId[, wrap])
This function returns the ID of the cell before cell cellId in galley order, or h:tblNullToid if no such cell exists. If wrap is present and non-zero, tbl_cell_next_galley_cell will return the ID of the first cell in the sequence when the last cell in the sequence is reached.