You could select the relevant cells then > Format Cells and select > Effects
Although Conditional Formatting may be the way to go.
What is the criteria for 'lining through' a cell?
You can set up Conditional Formatting so when that criteria is met the
cell(s) automatically line through.
Supply more detail for a better answer