One example does not provide enough to provide a solution, especially if you don't provide a clue as to the desired result - or at least that's my thought train. What makes a "line break" (what you show is not a line break)? Is it the word "Total" in column E? Is it a blank cell in column A? Something else? Regardless, what should be the result? That row should be deleted? Then what, shift cells up? Leave the row blank?