Sample Data
Column A contains text strings with extra spaces, line breaks, tabs, and non-printable characters. Column B will show cleaned and trimmed results.
| Cell | Value |
|---|---|
| A1 | Hello |
| A2 | World |
| A3 | Good Morning |
| A4 | Line1Line2 |
| B1 | |
| B2 | |
| B3 | |
| B4 |
Column A contains text strings with extra spaces, line breaks, tabs, and non-printable characters. Column B will show cleaned and trimmed results.
| Cell | Value |
|---|---|
| A1 | Hello |
| A2 | World |
| A3 | Good Morning |
| A4 | Line1Line2 |
| B1 | |
| B2 | |
| B3 | |
| B4 |
=TRIM(CLEAN(A4))A B 1 | Hello | 2 | World\n | 3 | Good \t Morning | 4 | Line1\u0007Line2 | Arrow: B4 uses A4 as input for formula =TRIM(CLEAN(A4))
A B 1 | Hello | 2 | World\n | 3 | Good \t Morning | 4 | Line1\u0007Line2 | Line1Line2 B4 shows the cleaned and trimmed text from A4.