cut row to next value in table