top of page

Welcome
to NumpyNinja Blogs

NumpyNinja: Blogs. Demystifying Tech,

One Blog at a Time.
Millions of views. 

Master Data Cleaning in Excel

Jan 9
4 min read

When working with data, one of the most important and most overlooked steps is Data cleaning.

Mostly people think that, We can clean my data later in SQL, Python, or Power BI. But in reality, a large portion of data cleaning can (and should) be done in Excel, especially when the dataset is small enough to fit there.

Excel is often the first stop when you receive raw data. Knowing how to clean data in Excel will save you time, reduce errors, and make your analysis much smoother. In this blog, lets walk through the most useful and commonly used Excel data cleaning techniques, explained in simple terms and advanced Excel knowledge is not required.

First Look at the Data :

Before changing anything, always scan your dataset and look for common problems.

A few things to keep an eye on:

  • Inconsistent text (ALL CAPS, lowercase, mixed case)

  • Spelling differences (Furniture vs Furnitures, HR vs Human Resources)

  • Extra spaces before or after text

  • Duplicate rows

  • Currency symbols in numeric columns

  • Date columns with mixed formats

  • Columns you don’t actually need

Cleaning becomes much easier if we notice them early.

Remove Duplicate Rows:

Duplicate data can seriously affect analysis.

For example:

  • Sales numbers get inflated

  • Counts become incorrect

  • Reports show misleading results

How to remove duplicates in Excel:

1.    Select your entire dataset

2.    Go to the Data tab

3.    Click Remove Duplicates

4.    Keep all columns selected

5.    Click OK

Excel will tell you how many duplicate rows were removed. Removing duplicates should always be one of your first actions, particularly for large datasets where manual detection is nearly impossible

Standardize Text (Fix Uppercase & Lowercase Issues)

In real-world data, names and text fields are often messy:

  • Some names are ALL CAPS

  • Some are lowercase

  • Some are Proper Case

This makes data harder to read and group.

Easy fix using formulas:

  • UPPER() → Converts text to uppercase

  • LOWER() → Converts text to lowercase

  • PROPER() → Capitalizes first letters (most common choice)

Example: =PROPER(A2)

Apply it down the column, then copy- paste as values to replace the original data. Choosing the format isn’t critical; the main point is to ensure all entries follow the same standard.

Fix Spelling and Category Issues

Columns you plan to group or analyze (like category, department, party, region) must be clean.

Example:

  • Furniture

  • Furnitures

  • furniture

Excel treats these as three different values, which breaks pivot tables and charts.

In order to avoid them, we should:

  • Use filters

  • Identify similar values

  • Manually correct them so they match

Successfully completing this step depends on your understanding of the data, not solely on Excel proficiency.

Remove Extra Spaces: This is very important stepExtra spaces are invisible. They can:

  • Break joins in SQL

  • Cause mismatches in formulas

  • Prevent correct grouping


Use the TRIM function:

=TRIM(A2)

The TRIM function helps clean up extra spaces in your data. It removes:

  • Leading spaces – spaces at the start of the text

  • Extra spaces in the middle – multiple spaces between words

  • Trailing spaces – invisible spaces at the end of the text

TRIM is especially useful for:

  • Names

  • IDs or codes

  • Numbers stored as text

Clean Numeric Columns (Remove Currency Symbols)

Numbers should be numbers, not text. Problems occur when:

  • Values contain $, £, ₹

  • Excel treats them as text

  • SQL or Python can’t calculate them properly

To avoid them we should 

  • Remove currency symbols

  • Convert values to plain numbers

  • Apply formatting later if needed

This makes your data easier to:

  • Sum

  • Average

  • Load into databases

Fix Date Columns (Always Double-Check Dates)

Dates are one of the most common problem areas in data.

Even if they look correct, they may:

  • Be stored as text

  • Have mixed formats

  • Cause errors in other tools

We should never assume dates are clean. We should always verify them

1.    Apply filters to the date column

2.    Look for strange values

3.    Convert all dates to the same format (e.g., Short Date)

Convert Formulas to Values

When cleaning data, you often use formulas (TRIM, PROPER, etc.).

Before finishing:

1.    Copy the cleaned column

2.    Paste as Values

3.    Remove the helper column

This ensures your dataset contains final values, not formulas.

Remove Columns You Don’t Need

Large datasets often contain:

  • Unused columns

  • Redundant IDs

  • Notes or metadata

These will Add confusion, Slow analysis and Increase error risk

To avoid them we should

  • Keep only columns you plan to use

  • Always keep a raw backup file

  • Clean data in a separate working copy

Important Note: Never clean directly on your only copy of raw data.

After cleaning:

  • Text is consistent

  • Numbers are numeric

  • Dates are uniform

  • Duplicates are gone

  • Only useful columns remain

Even small fixes make a huge difference, especially when working with thousands of rows.

Conclusion:

Excel is a powerful tool for cleaning and organizing data, and it’s often the first step before analyzing or visualizing information. Most real-world datasets are messy, with inconsistent text, extra spaces, duplicate rows, and varying formats for numbers or dates. Cleaning your data early not only saves time later but also prevents errors in pivot tables, charts, SQL queries, or other analysis tools. As you work, always understand why you’re making each change, and make sure to keep a copy of the raw data untouched, so you can always revert if needed. Following these simple practices ensures your data is accurate, consistent, and ready for any type of analysis. Data cleaning isn’t about perfection — it’s about making data usable and reliable.

 
 

+1 (302) 200-8320

NumPy_Ninja_Logo (1).png

Numpy Ninja Inc. 8 The Grn Ste A Dover, DE 19901

© Copyright 2025 by Numpy Ninja Inc.

  • Twitter
  • LinkedIn
bottom of page