Data Import & Export

How to Remove Trailing Spaces from Imported Numbers in WPS Office Spreadsheets on Mac

Nimra MalikNimra Malik Nov 13, 2026 868 views

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.

How to Remove Trailing Spaces from Imported Numbers in WPS Office Spreadsheets on Mac
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the affected columns or range

Open your workbook in WPS Office Spreadsheets on Mac and select the columns or cells that contain the imported numbers.

2
Open Find and Replace

Press Command+F to open the Find and Replace dialog, then click the Replace tab. You can also go to Home > Find & Replace > Replace.

3
Enter the unwanted character

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.

4
Replace with nothing

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 Find and Replace to Remove Trailing or Nonbreaking Spaces in WPS Spreadsheets on Mac
Check the result: After replacing, click the cell that contains SUM and confirm that the imported values are now included. If not, repeat Find and Replace with the copied invisible character.
WPS Office Spreadsheets for Mac

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. 1. Download and install WPS Office on Mac: Go to the WPS Office download page, download the Mac version, and install WPS Office.
  2. 2. Open the spreadsheet: Launch WPS Office Spreadsheets and open the Excel workbook containing the imported numbers.
  3. 3. Select the affected columns: Click and drag or use Command+click to select the columns or cells where SUM is ignoring values.
  4. 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. 5. Verify the SUM result: Click a cell that uses SUM and confirm that the imported numbers are now included in the total.
Quickly clean trailing or nonbreaking spaces from imported number ranges.Opens, edits, and saves Excel .xlsx, .xls, and .csv files with full compatibility.Provides familiar Find and Replace and TRIM tools for Excel-like data cleanup.Free, lightweight, and runs smoothly on macOS.
QA img-9

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.