Tutorials

How to Perform Data Cleaning in Excel: Step-by-Step Guide

Learn how to perform data cleaning in Excel using built-in features and functions. Discover methods to clean, standardize, and prepare data for analysis in Excel.

RowTidy Team
Nov 25, 2025
13 min read
Excel, Data Cleaning, Tutorial, Step-by-Step, Excel Functions

How to Perform Data Cleaning in Excel: Step-by-Step Guide

If you need to clean data in Excel but don't know where to start, you need a systematic approach. 74% of Excel users perform data cleaning regularly but lack a structured process.

By the end of this guide, you'll know how to perform data cleaning in Excel—using built-in features, functions, and tools to clean, standardize, and prepare your data efficiently.

Quick Summary

  • Use Excel functions - TRIM, CLEAN, SUBSTITUTE for text cleaning
  • Remove duplicates - Data > Remove Duplicates feature
  • Standardize formats - Format Cells and Text to Columns
  • Handle missing values - Find & Replace and conditional formatting

Common Data Cleaning Tasks in Excel

  1. Remove duplicates - Eliminate duplicate rows
  2. Trim spaces - Remove extra whitespace
  3. Standardize text - Fix case inconsistencies
  4. Clean special characters - Remove unwanted characters
  5. Convert data types - Text to numbers, dates
  6. Handle missing values - Find and fill blanks
  7. Standardize formats - Dates, numbers, text
  8. Split columns - Separate combined data
  9. Merge columns - Combine data
  10. Validate data - Check for errors

Step-by-Step: Perform Data Cleaning in Excel

Step 1: Remove Duplicates

Eliminate duplicate rows from your dataset.

Identify Duplicates

Check for duplicates:

  1. Select data range (including headers)
  2. Data > Remove Duplicates
  3. Preview shows duplicate count
  4. Click Cancel to see first

Or use conditional formatting:

  1. Select data range
  2. Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values
  3. Duplicates highlighted in color

Remove Duplicates

Method: Remove Duplicates Feature

  1. Select data range (including headers)
  2. Data > Remove Duplicates
  3. Choose columns to check:
    • Check all columns = exact duplicates
    • Check key columns = duplicates by identifier
  4. Click OK
  5. Excel removes duplicates and shows count

Example:

  • Check "Email" column for duplicate customers
  • Check all columns for exact duplicate rows

Step 2: Clean Text Data

Remove extra spaces and standardize text.

Remove Extra Spaces

Use TRIM function:

=TRIM(A2)

Removes leading, trailing, and extra spaces.

Apply to column:

  1. Insert new column next to data
  2. Enter formula: =TRIM(A2)
  3. Copy formula down entire column
  4. Copy formula column
  5. Paste Special > Values over original column
  6. Delete formula column

Remove Non-Printable Characters

Use CLEAN function:

=CLEAN(A2)

Removes non-printable characters (line breaks, tabs, etc.).

Combine with TRIM:

=TRIM(CLEAN(A2))

Removes both spaces and non-printable characters.

Standardize Text Case

Convert to lowercase:

=LOWER(A2)

Convert to uppercase:

=UPPER(A2)

Convert to title case:

=PROPER(A2)

Apply:

  1. Insert helper column
  2. Enter formula
  3. Copy down
  4. Paste as values over original
  5. Delete helper column

Step 3: Handle Missing Values

Find and handle blank cells and missing data.

Find Missing Values

Method 1: Go To Special

  1. Select data range
  2. Press F5 (Go To)
  3. Click Special
  4. Choose Blanks
  5. Click OK
  6. All blanks selected

Method 2: Filter

  1. Select header row
  2. Data > Filter
  3. Click dropdown on column
  4. Uncheck all except (Blanks)
  5. Blanks filtered

Fill Missing Values

Fill with value:

  1. Select blanks (using Go To Special)
  2. Type value (e.g., "N/A" or 0)
  3. Press Ctrl+Enter
  4. All blanks filled

Fill with formula:

  1. Select blank cell
  2. Enter formula referencing above cell
  3. Copy formula to all blanks

Fill with average:

  1. Calculate average in separate cell
  2. Select blanks
  3. Paste average value
  4. Press Ctrl+Enter

Step 4: Convert Data Types

Convert text to numbers, dates, etc.

Convert Text to Numbers

Method 1: Text to Columns

  1. Select text number column
  2. Data > Text to Columns
  3. Choose General or Number
  4. Click Finish
  5. Text converted to numbers

Method 2: VALUE function

=VALUE(A2)

Converts text to number.

Method 3: Multiply by 1

=A2*1

Forces conversion to number.

Convert Text to Dates

Method 1: Text to Columns

  1. Select date column
  2. Data > Text to Columns
  3. Choose Date format
  4. Select format (MDY, DMY, YMD)
  5. Click Finish
  6. Dates converted

Method 2: DATEVALUE function

=DATEVALUE(A2)

Converts text date to Excel date.

Then format:

  1. Select date column
  2. Right-click > Format Cells > Date
  3. Choose format
  4. Click OK

Step 5: Standardize Date Formats

Ensure all dates use consistent format.

Detect Date Issues

Check date formats:

  1. Select date column
  2. Look for inconsistencies:
    • Some as dates (numbers)
    • Some as text
    • Different formats

Standardize Dates

Convert all to dates:

  1. Use Text to Columns (if text dates)
  2. Format consistently:
    • Right-click > Format Cells > Date
    • Choose format (e.g., YYYY-MM-DD)
    • Click OK

Apply to all:

  1. Select entire date column
  2. Apply format
  3. All dates display consistently

Step 6: Standardize Number Formats

Apply consistent number formatting.

Format Currency

Apply currency format:

  1. Select number column
  2. Right-click > Format Cells
  3. Choose Currency
  4. Select symbol ($, €, £)
  5. Set decimal places (usually 2)
  6. Click OK

Format Percentages

Apply percentage format:

  1. Select percentage column
  2. Right-click > Format Cells
  3. Choose Percentage
  4. Set decimal places
  5. Click OK

Note: Excel multiplies by 100, so 0.15 becomes 15%

Format Numbers

Apply number format:

  1. Select number column
  2. Right-click > Format Cells
  3. Choose Number
  4. Set decimal places
  5. Check Use 1000 Separator if needed
  6. Click OK

Step 7: Remove Special Characters

Clean unwanted characters from data.

Remove Specific Characters

Use SUBSTITUTE function:

=SUBSTITUTE(A2, "#", "")

Removes # character.

Remove multiple:

=SUBSTITUTE(SUBSTITUTE(A2, "#", ""), "@", "")

Removes both # and @.

Remove Line Breaks

Remove line breaks:

=SUBSTITUTE(SUBSTITUTE(A2, CHAR(10), " "), CHAR(13), " ")

Replaces line breaks with spaces.

Find & Replace

Remove characters:

  1. Press Ctrl+H (Find & Replace)
  2. Find: Enter character to remove
  3. Replace: Leave blank
  4. Click Replace All
  5. Characters removed

Step 8: Split and Combine Columns

Separate or merge column data.

Split Columns

Text to Columns:

  1. Select column to split
  2. Data > Text to Columns
  3. Choose delimiter:
    • Delimited - Comma, space, etc.
    • Fixed width - Specific positions
  4. Set delimiter or positions
  5. Preview split
  6. Click Finish
  7. Data split into columns

Example: Split "John Doe" into "John" and "Doe"

Combine Columns

Use CONCATENATE or &:

=A2&" "&B2

Combines with space.

=CONCATENATE(A2, " ", B2)

Same result.

Apply:

  1. Insert new column
  2. Enter formula
  3. Copy down
  4. Paste as values
  5. Delete original columns

Step 9: Validate Data

Check data for errors and inconsistencies.

Data Validation Rules

Create validation:

  1. Select cells
  2. Data > Data Validation
  3. Choose criteria:
    • List - Dropdown choices
    • Whole number - Numeric range
    • Date - Date range
    • Text length - Character limit
  4. Set rules
  5. Click OK

Find Errors

Check for errors:

  1. Select data range
  2. Home > Find & Select > Go To Special
  3. Choose Formulas
  4. Check Errors
  5. Click OK
  6. All errors selected

Conditional Formatting for Validation

Highlight errors:

  1. Select data range
  2. Home > Conditional Formatting > Highlight Cells Rules
  3. Choose rule (e.g., "Duplicate Values", "Text that Contains")
  4. Set format
  5. Click OK
  6. Issues highlighted

Step 10: Final Review and Save

Verify cleaning and save cleaned data.

Review Changes

Check cleaned data:

  • Duplicates removed
  • Text cleaned (spaces, case)
  • Missing values handled
  • Data types correct
  • Formats standardized
  • Special characters removed
  • Data validated
  • No errors

Save Cleaned Data

Save as new file:

  1. File > Save As
  2. Choose location
  3. Enter filename (e.g., "data_cleaned.xlsx")
  4. Click Save
  5. Original file preserved

Or save as CSV:

  1. File > Save As
  2. File type: CSV (Comma delimited)
  3. Save
  4. Cleaned CSV ready

Real Example: Cleaning Data in Excel

Before (Messy Data):

Dataset: 1,000 customer records

Issues:

  • 50 duplicate rows
  • Inconsistent text case
  • Extra spaces
  • Mixed date formats
  • Numbers as text
  • Missing email addresses

Cleaning Process:

Step 1: Remove duplicates

  • Removed 50 duplicate rows
  • 950 records remaining

Step 2: Clean text

  • Applied TRIM to all text columns
  • Standardized to Title Case
  • Removed extra spaces

Step 3: Handle missing values

Step 4: Convert data types

  • Converted text numbers to numeric
  • Converted text dates to date format

Step 5: Standardize formats

  • Dates: YYYY-MM-DD
  • Numbers: 2 decimal places
  • Text: Title Case

Result:

  • Clean dataset: 950 records
  • All formats standardized
  • Ready for analysis

Excel Cleaning Checklist

Use this checklist when cleaning data in Excel:

  • Removed duplicates
  • Cleaned text (TRIM, CLEAN, case)
  • Handled missing values
  • Converted data types
  • Standardized date formats
  • Standardized number formats
  • Removed special characters
  • Split/combined columns (if needed)
  • Validated data
  • Reviewed cleaned data
  • Saved cleaned file

Mini Automation Using RowTidy

You can automate Excel data cleaning using RowTidy, then use Excel for review and validation.

The Problem:
Cleaning data in Excel manually is time-consuming:

  • Applying functions to each column
  • Removing duplicates
  • Standardizing formats
  • Handling missing values

The Solution:
Use RowTidy for automated cleaning, Excel for review:

  1. Upload file to RowTidy - Drag and drop
  2. AI cleans data - Removes duplicates, standardizes formats
  3. Download cleaned file - Get Excel file
  4. Review in Excel - Validate and make final adjustments

Workflow:

  • RowTidy: Automated cleaning (fast)
  • Excel: Review and validation (control)

Time saved: 2-4 hours manual Excel cleaning → 5 minutes RowTidy + 30 minutes Excel review

Use RowTidy for initial cleaning, then Excel for final review and validation. Try RowTidy's automated cleaning →


FAQ

1. How do I clean data in Excel?

Use Excel functions (TRIM, CLEAN), Remove Duplicates feature, Text to Columns, Find & Replace, and formatting tools to clean data systematically.

2. What Excel functions are best for data cleaning?

TRIM (spaces), CLEAN (non-printable), SUBSTITUTE (characters), VALUE (text to number), DATEVALUE (text to date), UPPER/LOWER/PROPER (case).

3. How do I remove duplicates in Excel?

Select data range, Data > Remove Duplicates, choose columns to check, click OK. Excel removes duplicates and shows count.

4. How do I standardize text in Excel?

Use TRIM to remove spaces, CLEAN for non-printable characters, UPPER/LOWER/PROPER for case. Apply formulas, then paste as values.

5. How do I convert text to numbers in Excel?

Use Text to Columns (Data > Text to Columns, choose Number), or VALUE function, or multiply by 1. Text to Columns is easiest.

6. How do I handle missing values in Excel?

Use Go To Special (F5 > Special > Blanks) to find, then fill with values, formulas, or averages. Or use Find & Replace.

7. Should I use Excel or RowTidy for data cleaning?

Use RowTidy for speed and automation, Excel for review and validation. Best workflow: RowTidy cleans, Excel reviews.

8. How long does Excel data cleaning take?

Depends on dataset size: small (1000 rows) = 1-2 hours, medium (10,000 rows) = 2-4 hours, large (100,000 rows) = 4-8 hours. RowTidy cleans in minutes.

9. Can I automate Excel data cleaning?

Partially. Use Power Query for reusable workflows, or VBA for automation. RowTidy provides full automation without coding.

10. What's the best Excel data cleaning workflow?

(1) Remove duplicates, (2) Clean text, (3) Handle missing values, (4) Convert types, (5) Standardize formats, (6) Validate, (7) Review, (8) Save. Or use RowTidy first, then Excel for review.


Related Guides


Conclusion

Performing data cleaning in Excel requires using built-in features (Remove Duplicates, Text to Columns), functions (TRIM, CLEAN, VALUE), and formatting tools systematically. Follow a structured process: remove duplicates, clean text, handle missing values, convert types, standardize formats, validate, and review. Use RowTidy for automated cleaning, then Excel for final review and validation.

Try RowTidy — automate data cleaning, then use Excel for review and validation to ensure data quality.