Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Data Cleaning in Excel ยท Lesson 6 of 9

Module Five

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
6

Module 5: Correcting Dates, Numbers, and Formatting in Excel

Module Overview

Welcome to Module 5! Imagine you are working for a company that keeps records of customers, sales, payments, and deliveries using Microsoft Excel.

You discover that some dates are written differently, some numbers are stored as text, some prices have incorrect formats, and some phone numbers are not properly organised.

These problems can make your spreadsheet difficult to understand and analyse.

In this module, you will learn how to correct dates, convert text into numbers, format currencies, organise phone numbers, and remove unwanted symbols.

Lesson 1: Understanding Date Formats in Excel

Dates are important in many spreadsheets. Schools use dates to record examination periods, businesses use them to track sales, and hospitals use them to record appointments.

However, dates can be entered in different formats.

Examples of Different Date Formats

Date Format Example
Day/Month/Year 25/11/2026
Month/Day/Year 11/25/2026
Written Date November 25, 2026
Year-Month-Day 2026-11-25

These formats can represent the same date, depending on the date system being used.

Excel may also interpret a date differently depending on your computer's regional settings.

How to Change Date Formatting in Excel

Follow these steps:

  1. Open Microsoft Excel.
  2. Enter a valid date into cell A2, such as 25/11/2026.
  3. Select the cell containing the date.
  4. Click the Home tab.
  5. Find the Number Format section.
  6. Click the dropdown menu.
  7. Select Short Date or Long Date.

Excel will display the date using the selected format.

Using Format Cells for More Date Options

  1. Select the cells containing your dates.
  2. Press Ctrl + 1 on your keyboard.
  3. Select the Number tab if it is not already selected.
  4. Click Date.
  5. Choose your preferred date format.
  6. Click OK.

Important: Changing the appearance of a date does not always convert text into a real Excel date. If Excel treats a date as text, you may need to convert it first.

Lesson 2: Converting Text into Valid Dates

Sometimes, a date looks correct but Excel does not recognise it as a real date.

For example, someone may enter the date as text instead of using Excel's date format.

This can cause problems when you try to sort dates or calculate the number of days between two dates.

Method 1: Using DATEVALUE

Excel provides a function called DATEVALUE. It converts a recognised date stored as text into an Excel date value.

Imagine cell A2 contains a date stored as text:

25-Nov-2026

Enter this formula in cell B2:

=DATEVALUE(A2)

Press Enter. Excel will return a date serial number. Format the result as a date to display it in a familiar date format.

Method 2: Using Text to Columns

Text to Columns can help convert dates stored as text when the information follows a recognised date pattern.

  1. Select the column containing the text dates.
  2. Click the Data tab.
  3. Select Text to Columns.
  4. Choose Delimited and click Next.
  5. Leave the delimiter options unchecked if the entire date is in one field.
  6. Click Next.
  7. Under Column Data Format, select Date.
  8. Choose the correct date order, such as DMY.
  9. Click Finish.

Always choose the correct date order. For example, 05/06/2026 can mean 5 June or May 6, depending on the format.

Lesson 3: Correcting Number and Currency Formats

Numbers are used in Excel to represent prices, quantities, ages, examination scores, and many other types of information.

Sometimes numbers are entered in different formats, making the spreadsheet look untidy.

Examples of Inconsistent Number Formatting

Unorganised Values Standardised Display
5000 5,000
25000 25,000
150000 150,000

How to Format Numbers in Excel

  1. Enter numbers into a column.
  2. Select the cells containing the numbers.
  3. Click the Home tab.
  4. Locate the Number section.
  5. Choose Number from the format dropdown.
  6. Adjust the decimal places if necessary.

Excel can now display your numbers with thousands separators, making large values easier to read.

Formatting Nigerian Naira Values

Imagine you are cleaning a sales spreadsheet for a shop in Nigeria. The prices are recorded as ordinary numbers, but you want them displayed as currency.

For example:

Product Original Price Formatted Price
School Bag 15000 โ‚ฆ15,000.00
Calculator 8500 โ‚ฆ8,500.00
Exercise Books 5000 โ‚ฆ5,000.00

To format your values as currency:

  1. Select the cells containing the prices.
  2. Press Ctrl + 1.
  3. Select Currency or Accounting.
  4. Choose the appropriate currency symbol if available.
  5. Select the number of decimal places.
  6. Click OK.

Remember: Currency formatting changes how a number looks. It does not change the actual numerical value.

Lesson 4: Standardising Phone Numbers and Identification Codes

Phone numbers are important in customer databases, school records, and business registration systems.

However, phone numbers can be entered in different ways.

Examples of Phone Number Formatting

Phone Number Format
08012345678 Local format
+2348012345678 International format
0801 234 5678 Spaced format

When cleaning phone numbers, it is important to choose one consistent format for your database.

Why Should Phone Numbers Be Stored as Text?

A phone number is not normally used for mathematical calculations. It is an identification or contact value.

If you store a Nigerian phone number such as 08012345678 as a number, Excel may remove the first zero.

To prevent this problem:

  1. Select the phone number column.
  2. Press Ctrl + 1.
  3. Select Text under the Number tab.
  4. Click OK.
  5. Enter or re-enter phone numbers in the correct format.

You can also enter an apostrophe before a phone number, such as '08012345678, to make Excel treat it as text.

Standardising Identification Codes

Identification codes such as customer IDs and student numbers should also be handled carefully.

Examples include:

  • ST001
  • CRM2026001
  • CUS00025
  • EMP0012

These codes should usually be stored as text because their numbers are identifiers, not values for calculation.

Lesson 5: Removing Unwanted Symbols and Characters

Sometimes, spreadsheets contain unwanted symbols that make information difficult to read or process.

For example:

  • โ‚ฆ15,000 instead of a clean numerical value of 15000.
  • Customer names containing unwanted punctuation.
  • Product codes containing unnecessary spaces.
  • Text containing unwanted hyphens or symbols.

Excel provides different tools to remove unwanted characters.

Method 1: Using Find and Replace

Imagine you have a list of prices containing unnecessary currency symbols and you want to remove the symbols before further processing.

  1. Select the cells you want to clean.
  2. Press Ctrl + H.
  3. Enter the unwanted symbol in Find what.
  4. Leave Replace with empty.
  5. Click Replace All.

Be careful when removing commas or decimal points because they may be important parts of your numerical values.

Method 2: Using SUBSTITUTE

SUBSTITUTE is an Excel function that replaces specific text with other text.

For example, imagine cell A2 contains:

080-1234-5678

Use this formula:

=SUBSTITUTE(A2,"-","")

Result: 08012345678

The formula removes the hyphens from the phone number.

Method 3: Using SUBSTITUTE to Remove Spaces

Imagine cell A2 contains:

CRM 2026 001

Use this formula:

=SUBSTITUTE(A2," ","")

Result: CRM2026001

Lesson 6: Practical Data Formatting Exercise

Now it is time to practise what you have learned.

A small business in Ibadan has provided a sales record. Unfortunately, the dates, prices, and phone numbers are not properly organised.

Unclean Sales Dataset

Customer Order Date Amount Phone Number
David James 25-Nov-2026 15000 080-1111-1111
Mary Bello 11/26/2026 25000 080-2222-2222
Peter Brown 2026-11-27 5000 080-3333-3333
Grace John 28/11/2026 35000 080-4444-4444

Your Practical Tasks

  1. Enter the sales dataset into Excel.
  2. Make sure all order dates are recognised as real Excel dates.
  3. Display the dates in a consistent format.
  4. Format the Amount column using Nigerian Naira currency formatting.
  5. Store the phone numbers as text.
  6. Use SUBSTITUTE to remove hyphens from the phone numbers if required.
  7. Check that all records are correctly formatted.
  8. Save your workbook as Cleaned_Sales_Records.xlsx.

Module 5 Summary

In this module, you have learned how to:

  • Understand different date formats.
  • Change date formats in Excel.
  • Convert recognised text dates into Excel dates.
  • Format numbers and currency values.
  • Store phone numbers and identification codes as text.
  • Remove unwanted symbols using Find and Replace.
  • Use SUBSTITUTE to replace unwanted characters.

Module 5 Assessment

Answer the following questions:

  1. Why is it important to use consistent date formats?
  2. Which Excel function can convert recognised date text into an Excel date value?
  3. What keyboard shortcut opens the Format Cells window?
  4. Why should Nigerian phone numbers usually be stored as text?
  5. What is the difference between Number and Currency formatting?
  6. What does the SUBSTITUTE function do?
  7. Which Excel tool can help remove unwanted symbols from many cells?
  8. Why should identification codes be stored as text?
  9. Does changing a number to Currency format change its actual value?
  10. Why should you check your dates after converting them?

Congratulations!

You have successfully completed Module 5! You now understand how to organise dates, numbers, prices, phone numbers, and other information in Microsoft Excel.

In Module 6, you will learn how to sort, filter, and validate data. You will also discover how to create dropdown lists that help prevent mistakes when entering information.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’