I have an Excel file with roughly 4000 rows of multi-line cells and I need to delete last line of each cell.
All cells are formatted like this - also last line of each cell begins with the same word (CODE:) but the length can vary:
this is the first line
this is the second line
this is the third line
CODE: 123456789
To:
this is the first line
this is the second line
this is the third line
I've also tried replacing line breaks with the "|" symbol and using a formula that deletes everything after the last "|" but had no success and pretty much every formula I've found returns an error in Excel.
this is the first line|this is the second line|this is the third line|CODE:123456789
To:
this is the first line|this is the second line|this is the third line
Multi-line or with symbol doesn't matter - either way works for me.