SUBSTITUTE can locate matching text anywhere in a cell, and replace it with the text of your choice.

The “old text” is entered as CHAR(10).

This will match a line break character in a cell.

Excel formula: Count line breaks in cell

The “new text” is entered as “, “.

This translates to a comma plus one space.

We need the quotes because this is a text value.

Excel formula: Extract multiple lines from a cell

Excel formula: Remove unwanted characters

Excel formula: Remove text by matching

Excel formula: Normalize text

Excel formula: Clean and reformat telephone numbers

Excel SUBSTITUTE function

Excel CLEAN function

Article image

Article image