Handle worksheets with non-contiguous cells

Handle empty rows between non-empty rows, and empty cells between
non-empty cells.