How to Use TRIM in WPS Spreadsheets for One Cell or an Entire Column
Question details
The user wants to know whether the TRIM function processes one cell or an entire column in WPS Spreadsheets/Excel and how the @ implicit intersection operator affects a whole-column reference.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- Cleaning imported or pasted text that contains extra spaces before analysis or reporting.
- Observed behavior
- The user needs clarity on how TRIM behaves with a single-cell reference, a full-column range, and implicit intersection before building a worksheet formula.
Open the workbook in WPS Spreadsheets and check whether your version supports dynamic array spill behavior, because this determines whether a full-column TRIM formula returns a single spilled range.
Use TRIM with a single-cell reference and fill down to clean an entire column
Use this method when you need reliable results across WPS Spreadsheets and older Excel versions, even if dynamic arrays are not available.
TRIM accepts a text value or a single cell reference and returns the cleaned text. You can apply it to an entire column by filling the formula down next to the data.
Click the cell next to the first text value, such as B2, so the cleaned result appears beside A2.
Type =TRIM(A2) and press Enter. WPS Spreadsheets cleans the text in the referenced cell only.
Drag the fill handle from B2 down through the last data row, or double-click the fill handle to copy the formula automatically.

Use a full-column TRIM formula when dynamic arrays are supported
Use this method when you want one formula to clean the entire column and your spreadsheet supports array spill results.
Use the @ implicit intersection operator to return only the current row
Use this method when a formula references a full column but you only need the cleaned value from the current row.
Clean Text with TRIM in WPS Spreadsheets for a Single Cell or a Whole Column
WPS Spreadsheets can clean extra spaces from a single cell, fill the TRIM formula down, or return a column-wide result where dynamic arrays are supported, all while keeping Excel-compatible files.
- 1. Open your workbook: Launch WPS Spreadsheets and open the Excel-compatible file that contains the text you want to clean.
- 2. Choose a helper column: Click an empty cell next to the first text value, such as B2, to hold the cleaned result.
- 3. Enter the single-cell TRIM formula: Type =TRIM(A2) and press Enter, then drag the fill handle down to apply the formula to the entire column.
- 4. Use full-column TRIM if supported: In a blank cell, enter =TRIM(A:A) and press Enter to clean the entire column in one spilled formula when your version supports dynamic arrays.
- 5. Save the workbook: Return to the File menu and save the file in its original Excel format or another supported format.

Frequently Asked Questions
Does TRIM remove every space from a cell?
No. TRIM removes leading and trailing spaces and condenses repeated spaces inside text to single spaces, but it keeps the single spaces that separate words.
Why does my full-column TRIM formula not spill in WPS Spreadsheets?
Dynamic array spill behavior depends on the spreadsheet version. If =TRIM(A:A) does not spill, enter =TRIM(A2) next to the data and fill the formula down.
What does the @ operator do when used with TRIM?
The @ operator applies implicit intersection. A formula such as =@TRIM(A:A) returns the cleaned value from the current row instead of the full column.
Can I open an Excel file in WPS Spreadsheets and clean a text column with TRIM?
Yes. Open the Excel-compatible file, add a helper column, enter =TRIM(A2), fill it down, and save the workbook back to Excel format.




