- find() return the starting position of a string with a string
- char(10) is the "line feed" in asci (10) getting converted to the character which can be searched
- LEFT() simply returns the left part of the string up to the entrance.
so.
=LEFT(A1,FIND(CHAR(10),A1))
Do this in A2 then copy and paste values over your original data if you truly no longer need it. Or reference A2... and keep the original values.
you may want:
=LEFT(A1,FIND(CHAR(10),A1)-1)
To remove the extra space (carriage return ?) as well.
I think Excel just uses char(10) and not both char(10)+char(13) carriage return