 <p>Perhaps you should consider to filter out the lines before writing them into the excel-sheet. This way you get rid of the additional work of writing then reading again and deleting lines.</p> <p>So you would fetch your data (wherever it comes from), filter the list in c# (remove all items with the specific text in the columns) and write the clean list to excel in the end.</p>