How to Remove Trailing Spaces from Imported Numbers in WPS Office Spreadsheets on Mac
Question details
The user needs to remove trailing or nonbreaking spaces from imported numbers in WPS Office Spreadsheets on Mac because the spreadsheet treats the values as text and SUM ignores them.

- Product
- WPS Office Spreadsheets on Mac
- Device & OS
- macOS
- Scenario
- Numbers imported into a spreadsheet contain trailing or nonbreaking spaces, causing SUM to ignore them.
- Observed behavior
- Imported numbers are treated as text instead of numeric values because of trailing or nonbreaking spaces.
Select the affected data range or columns before replacing characters, and check the formula bar to identify whether the unwanted character is a regular space or a nonbreaking space.
Use Find and Replace to Remove Trailing or Nonbreaking Spaces in WPS Spreadsheets on Mac
Use this when you need to clean many imported cells at once and regular TRIM does not remove nonbreaking spaces.
Find and Replace can remove both regular spaces and invisible characters that the TRIM function may leave behind. Selecting only the affected columns prevents unintended changes to text labels.
Open your workbook in WPS Office Spreadsheets on Mac and select the columns or cells that contain the imported numbers.
Press Command+F to open the Find and Replace dialog, then click the Replace tab. You can also go to Home > Find & Replace > Replace.
In the Find what box, type a regular space. If the value still has an invisible character, copy it from the formula bar or a cell and paste it into the Find what box.
Leave the Replace with box empty, click Replace All, and confirm the replacement. WPS Office removes the character and SUM should recognize the numbers.

Use TRIM to Remove Regular Trailing Spaces from Imported Numbers
Use this formula when the unwanted spaces are standard spaces and you want to clean values in a helper column.
Use SUMPRODUCT and SUBSTITUTE to Sum Numbers Without Removing Spaces
Use this if you need a one-formula total while leaving the imported cells untouched; it replaces the problematic character during the calculation.
Clean Imported Numbers with WPS Office Spreadsheets on Mac
WPS Office Spreadsheets lets you remove trailing or nonbreaking spaces with Find and Replace or TRIM, so imported numbers become real numeric values and SUM calculates correctly.
- 1. Download and install WPS Office on Mac: Go to the WPS Office download page, download the Mac version, and install WPS Office.
- 2. Open the spreadsheet: Launch WPS Office Spreadsheets and open the Excel workbook containing the imported numbers.
- 3. Select the affected columns: Click and drag or use Command+click to select the columns or cells where SUM is ignoring values.
- 4. Run Find and Replace: Press Command+F, open the Replace tab, enter the trailing or copied nonbreaking space in Find what, leave Replace with empty, and click Replace All.
- 5. Verify the SUM result: Click a cell that uses SUM and confirm that the imported numbers are now included in the total.

Frequently Asked Questions
Why does SUM ignore my imported numbers in WPS Office Spreadsheets on Mac?
Because the cells contain trailing spaces or nonbreaking spaces, so WPS treats them as text. Remove the spaces with Find and Replace or TRIM to convert them to numeric values.
Does TRIM remove nonbreaking spaces in WPS Office Spreadsheets?
TRIM usually removes regular spaces but may not remove nonbreaking spaces. To remove nonbreaking spaces, copy the invisible character from the formula bar and replace it using Find and Replace.
How do I copy a nonbreaking space from a cell?
Select the cell, click the formula bar, highlight the invisible character after the number, and press Command+C. Then paste it into the Find what box in Find and Replace.
Will Find and Replace remove all spaces in my spreadsheet?
It only affects the range you select. Select only the columns that contain imported numbers to avoid changing intentional spaces in text labels.
What should I do if TRIM and Find and Replace still leave the value as text?
Check for other invisible characters such as CHAR(160) or line breaks, copy them from the formula bar, and replace them. Then re-enter or refresh the SUM formula.




