← Lesson 5
Excel for Data Analytics • Lesson 6

Text, Date & Data Preparation

Learn how analysts clean, standardize and prepare messy business data before analysis using Excel text functions, date functions and data-quality checks.

Data CleaningText FunctionsDate FunctionsData Quality

Data Preparation

1
Raw Data
Messy values
2
Clean
TRIM + case
3
Extract
LEFT / RIGHT / MID
4
Date
YEAR / MONTH / DAY
5
Validate
Ready for analysis
Concept 1 of 80%

Practice Dataset

Messy Customer Dataset

The dataset from the lesson contains inconsistent names, regions and dates that need preparation before analysis.

Customer IDCustomer NameRegionSignup DateEmail
C001 Amit Sharma north15/01/2025amit@example.com
C002NEHA VERMASouth22/02/2025neha@example.com
C003rahul singhEAST10/03/2025rahul@example.com
C004 Priya Joshiwest18/04/2025priya@example.com
C005rohan mehta NORTH05/05/2025rohan@example.com
C006 simran kapoorsouth21/06/2025simran@example.com

Concept 1 • DATA QUALITY

See the Messy Dataset First

Real-world datasets are rarely perfect. Customer names may contain extra spaces, capitalization may be inconsistent, regions may appear as north, North and NORTH, and dates may need to become useful analytical dimensions.

What is wrong with the raw data?

01
Amit Sharma
02
NEHA VERMA
03
rahul singh
04
north
05
EAST
06
21/06/2025

Interactive Activity

Spot the problem

Step 1 of 2

Which data-quality issue is clearly visible in the customer dataset?

Analyst Workflow

Prepare the data before trusting the analysis

Data preparation should support the analysis you plan to perform. Think about which fields will be used for grouping, matching, filtering and reporting.

1

Inspect

Find inconsistencies

2

Clean

Remove unwanted spaces

3

Standardize

Make categories consistent

4

Prepare

Create date dimensions

5

Validate

Check before analysis

Final Analyst Challenge

Prepare 50,000 customer records

You receive a customer dataset containing inconsistent spaces and capitalization in names, inconsistent regions, and signup dates that need to be analyzed by month.

01
Clean Names
TRIM + PROPER
02
Standardize
Region values
03
Create Dimensions
Year + Month
04
Validate
Check quality
Analyst mindset
Clean → Standardize → Prepare → Validate → Analyze

Text, Date and Data Preparation in Excel

Excel data preparation is an important part of data analytics. Real-world datasets can contain extra spaces, inconsistent capitalization, inconsistent categories and dates that need to be converted into useful analytical fields.

Excel Text Functions for Data Cleaning

TRIM can remove unnecessary spaces, while UPPER, LOWER and PROPER can help standardize text. LEFT, RIGHT and MID can extract useful parts of identifiers and other text values.

Excel Date Functions for Data Analytics

YEAR, MONTH and DAY can extract components from dates. Separate date dimensions can make grouping and reporting easier when analyzing customer signups or other time-based data.

Why Data Quality Matters

Cleaning is not simply formatting. Analysts should inspect data quality, standardize equivalent values, prepare fields required for analysis and validate the prepared dataset before important reporting.