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.
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?
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:
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].
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.
#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.
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.
Hold down Ctrl, click the column labels of each column, and then click the [Convert] → [Format] → [Clear] command.
Finally click [Home] → [Close and Upload] to upload the data to Excel.
Click the cell that had spaces before, and look in the edit bar, the spaces are gone:
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!

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

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

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

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

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

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

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

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

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 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
The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1
Easy-to-use and free code editor