search
HomeTopicsexcelThree methods to remove excess spaces in Excel

This article brings you relevant knowledge about excel, which mainly introduces related issues about clearing redundant spaces, including splitting, pq and table methods to clear redundant tables, as follows Let's take a look, I hope it will be helpful to everyone.

Three methods to remove excess spaces in Excel

Related learning recommendations: excel tutorial

Today we share a problem that a friend encountered in actual work.

First take a look at the Taobao order record below. Are there any problems?

Three methods to remove excess spaces in Excel

These records are exported from the system and look very regular, just a typical list of records. But when you click one of the cells, you will find a problem in the edit bar. There is a big space at the beginning of each cell:

Three methods to remove excess spaces in Excel

This kind of The most direct impact of this situation is to interfere with our subsequent statistical summary. If you use function formulas to query data, you will not be able to find it due to the influence of spaces.

How to clear these spaces? Let’s take a look together next.

It is not possible to use search and replace. First, these spaces cannot be displayed in the replacement dialog box. Second, if you really want to replace the spaces directly, the order number will become scientific notation, even if it is set to The text format doesn’t work either. If you don’t believe me, you can give it a try.

First method: Column

Click the column label letter of one column to select the entire column, then click [Data] → [Column] in the pop-up dialog box Select [Delimiter] and click [Next].

Three methods to remove excess spaces in Excel

In the pop-up [Text to Columns Wizard (Step 2)] dialog box, click the [Next] button directly to open the [Text to Columns Wizard (Step 3) Step)] dialog box.

At this point, you will see that the data is automatically divided into two columns. Click the blank column label on the left in the preview area, and then select [Do not import this column].

Click the order column label on the right, set the column data format to [Text], and click the [Finish] button.

Three methods to remove excess spaces in Excel

#With one operation, the spaces in this column will be cleared.

Next, you can draw a monk according to the gourd, and continue to process the second and third columns...

If there are 820 columns in the worksheet, then it will basically be processed until dark.

Second method: PQ

If you are using Excel 2016 or later, you can click any cell in the data area, and then click [Data] → [Auto Table/Range] and load the data into the Power Query editor according to the prompts.

Three methods to remove excess spaces in Excel

After loading into the Power Query editor, Excel will automatically convert text numbers into numerical types by default, but in this way, the order number becomes scientific notation. Okay, let’s clear this automatically added step first.

Three methods to remove excess spaces in Excel

Hold down Ctrl, click the column labels of each column, and then click the [Convert] → [Format] → [Clear] command.

Three methods to remove excess spaces in Excel

Finally click [Home] → [Close and Upload] to upload the data to Excel.

Three methods to remove excess spaces in Excel

Click the cell that had spaces before, and look in the edit bar, the spaces are gone:

Three methods to remove excess spaces in Excel

# #Third method: WPS form

If you are using WPS form, the operation is simple.

Select the data area, the WPS table will automatically display an error prompt button, click this small button, select [Clear empty strings before and after] in the shortcut menu, and you’re done:

Three methods to remove excess spaces in Excel

Related learning recommendations:

excel tutorial

The above is the detailed content of Three methods to remove excess spaces in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel Home. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor