Remove a tab
| A | |
|---|---|
| 1 | Word |
| 2 | Tab |
Formula: C2: =CLEAN(A2&CHAR(9)&"bed")
Result: Tabbed
CHAR(9) is a tab character; CLEAN deletes it so the word closes up.
CLEAN with worked examples you can test in the live grid. The argument details are in the Excel guide.
The arguments and common errors are covered in the CLEAN Excel guide; check the function help in Google Sheets for its own argument list.
| A | |
|---|---|
| 1 | Word |
| 2 | Tab |
Formula: C2: =CLEAN(A2&CHAR(9)&"bed")
Result: Tabbed
CHAR(9) is a tab character; CLEAN deletes it so the word closes up.
| A | |
|---|---|
| 1 | Start |
| 2 | ab |
Formula: C2: =LEN(CLEAN(A2&CHAR(7)&"cd"))
Result: 4
CHAR(7) is invisible; after CLEAN only the four visible letters are counted.
| A | |
|---|---|
| 1 | Start |
| 2 | a |
Formula: C2: =LEN(CLEAN(A2&UNICHAR(160)&"b"))
Result: 3
Unicode 160 is outside the 0 to 31 range, so CLEAN does not touch it and the length stays 3.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in D2: =CLEAN(A2)
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Text | Other | Result | |
| 2 | Alice Johnson | alice johnson | Alice Johnson | |
| 3 | [email protected] | [email protected] | ||
| 4 | extra spaces | |||
| 5 | SKU-2026-0415 | |||
| 6 | iced coffee, tea, sugar | |||
| 7 | Order 417 shipped |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page