May 26, 2024

Srikaanth

How To Remove Double or more Space In Text In Excel Sheet

How To Remove Double or more Space Text In Excel Sheet?

To remove double or more spaces in text within an Excel sheet, you can use a combination of functions. You can use the TRIM function along with SUBSTITUTE function to achieve this. Here's how:

  1. Assuming your text is in cell A1, you can use the following formula in another cell (let's say B1):

=TRIM(SUBSTITUTE(A1, "  ", " "))

This formula will replace any occurrence of two or more spaces with a single space and then trim any leading or trailing spaces.
  1. Drag the fill handle of cell B1 down to apply the formula to other cells if needed.

This approach effectively removes any instances of double or more spaces in the text.

Subscribe to get more Posts :