How to Remove Spaces in Excel Online with ZKutools Anywhere for Excel
AuthorSun•Last modified
Extra spaces in Excel data can cause a variety of problems. They can affect sorting, filtering, lookups, formulas, data imports, and overall data consistency. While Excel Online provides some built-in functions for trimming spaces, they often require formulas, helper columns, and additional cleanup steps.
With ZKutools Anywhere for Excel, you can quickly remove unwanted spaces from selected cells using a dedicated Remove Spaces feature. Whether you need to remove leading spaces, trailing spaces, extra spaces between words, or all spaces entirely, the task can be completed in just a few clicks.
In this article, you'll learn when to use the Remove Spaces, how it compares with Excel Online's built-in methods, and how to use each option effectively.

Remove Spaces vs. Excel Online Built-in Methods
How to Use Remove Spaces in Excel Online
Example 1: Remove Leading Spaces
Example 2: Remove Trailing Spaces
Example 3: Remove Leading and Trailing Spaces
Common Use Cases
The Remove Spaces feature is useful in many real-world scenarios:
- Cleaning imported data from databases or websites
- Preparing customer lists for analysis
- Standardizing names and addresses
- Fixing lookup and matching errors caused by hidden spaces
- Cleaning product codes and identifiers
- Preparing data for reporting and export
Instead of manually editing cells one by one, you can clean hundreds or thousands of records at once.
Remove Spaces vs. Excel Online Built-in Methods
Excel Online provides functions such as:
- TRIM()
- SUBSTITUTE()
- CLEAN()
While these functions are useful, they have several limitations:
Excel Online Method
- Requires formulas
- Often needs helper columns
- Different space problems may require different formulas
- Results must often be copied and pasted back as values
- Not beginner-friendly
ZKutools Anywhere for Excel's Remove Spaces
- No formulas required
- Multiple space-removal options in one tool
- Preview results before applying
- Works directly on selected cells
- Faster and easier for large datasets
For users who regularly clean imported or inconsistent data, the dedicated Remove Spaces tool can save significant time.
How to Use Remove Spaces in Excel Online
Using the feature is simple:
Step 1: Install ZKutools Anywhere for Excel
First, install the ZKutools Anywhere for Excel add-in for Excel Online.
For installation instructions, refer to:
How to Install ZKutools Anywhere for Excel
Step 2: Select the Data
Select the cells that contain unwanted spaces.

Step 3: Open Remove Spaces
Click:

The Remove Spaces dialog box will appear.
Step 4: Choose an Option
Select the space-removal option that best fits your needs:
- Remove Leading Spaces
- Remove Trailing Spaces
- Remove Leading and Trailing Spaces
- Remove Excess Spaces
- Remove All Spaces
Step 5: Preview the Results
The Preview area displays the processed results before any changes are made.
Review the results to make sure they meet your expectations.

Step 6: Apply the Changes
Click:
The selected cells will be updated immediately.

Option Examples
Example 1: Remove Leading Spaces
Original:
Product A
Option:
Remove Leading Spaces

Result:
Product A

Example 2: Remove Trailing Spaces
Original:
Product A
Option:
Remove Trailing Spaces

Result:
Product A

Example 3: Remove Leading and Trailing Spaces
Original:
Product A
Option:

Remove Leading and Trailing Spaces
Result:
Product A

Example 4: Remove Excess Spaces
Original:
New York City
Option:

Remove Excess Spaces
Result:
New York City

Example 5: Remove All Spaces
Original:
AB 123 456
Option:

Remove All Spaces
Result:
AB123456

This option is especially useful for product codes, serial numbers, account IDs, and imported identifiers.
Final Thoughts
Removing unwanted spaces is one of the most common data-cleaning tasks in Excel.
With the Remove Spaces feature in ZKutools Anywhere for Excel, you can quickly clean your data without formulas, helper columns, or manual editing. Whether you're working with customer information, product lists, imported records, or business reports, the tool provides a fast and reliable way to standardize text and improve data quality.
If you frequently work with messy or imported data in Excel Online, Remove Spaces can become one of your most time-saving tools.
Zkutools Anywhere for Excel
ZKutools Anywhere for Excel brings AI-powered assistance and practical Kutools tools directly into Excel across multiple platforms. Whether you work in Excel on the web, Windows, Mac, or iPad, you can create formulas, build tables, process data, and improve productivity more easily.
Multi-Platform Support
Use it in Excel on the web, Windows, Mac, and iPad.
AI-Powered Features
Generate formulas, create tables, filter data, extract info, and process text with simple prompts.
Classic Kutools Tools
Access practical Excel utilities designed to simplify daily spreadsheet tasks.
Table of contents
- Common Use Cases
- Remove Spaces vs. Excel Online Built-in Methods
- How to Use Remove Spaces in Excel Online
- Option Examples
- Example 1: Remove Leading Spaces
- Example 2: Remove Trailing Spaces
- Example 3: Remove Leading and Trailing Spaces
- Example 4: Remove Excess Spaces
- Example 5: Remove All Spaces
- Best Office Productivity Tools