Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Working with CSV and Excel Files ยท Lesson 4 of 9

Module Three

๐Ÿ“– 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.
4
Module 3: Creating and Saving CSV and Excel Files

Module 3: Creating and Saving CSV and Excel Files

3.1 What You Will Learn

At the end of this module, you should be able to:

  • Create a new Excel workbook.
  • Enter information into a spreadsheet.
  • Save files in Excel format (.xlsx).
  • Save or export files in CSV format (.csv).
  • Understand file names and file extensions.
  • Choose the right file format for different tasks.

3.2 What Does It Mean to Create a File?

Creating a file means making a new digital document where you can store information on your computer or phone.

For example, imagine your teacher asks you to prepare a list of students and their examination scores. You can create a spreadsheet to organise this information.

Instead of writing everything in a paper notebook, you can use Microsoft Excel or Google Sheets to create a digital record.

3.3 Creating a New Excel Workbook

Microsoft Excel allows you to create spreadsheets for storing and managing information.

Follow these steps to create a new workbook:

  1. Open Microsoft Excel on your computer.
  2. Choose Blank Workbook.
  3. A new spreadsheet will appear on your screen.
  4. You will see rows, columns and empty cells.
  5. Click any cell to begin entering information.

Congratulations! You have created a new Excel workbook.

3.4 Entering Information into Your Spreadsheet

After creating a workbook, the next step is to enter information into it.

Let's create a simple record of products sold in a small supermarket.

Example: Supermarket Sales Records

Product Quantity Price (โ‚ฆ)
Rice 5 5000
Beans 3 3500
Vegetable Oil 4 2500
Milk 6 1800

To enter this information in Excel:

  1. Click cell A1 and type Product.
  2. Click cell B1 and type Quantity.
  3. Click cell C1 and type Price (โ‚ฆ).
  4. Enter each product in the rows below.
  5. Check that the information is in the correct columns.

3.5 Understanding File Names

A file name is the name you give a document when saving it. It helps you identify the file when you need it again.

For example, you can name your supermarket spreadsheet:

  • Supermarket Sales
  • Student Records
  • School Attendance
  • Monthly Expenses

Always choose a name that explains what the file contains.

3.6 Understanding File Extensions

A file extension is the group of letters that appears at the end of a file name. It helps a computer identify the type of file.

Here are two important file extensions in this course:

  • .xlsx: The common file extension for Microsoft Excel workbooks.
  • .csv: The file extension for Comma-Separated Values files.

Examples

  • StudentRecords.xlsx
  • SupermarketSales.xlsx
  • CustomerList.csv
  • SchoolAttendance.csv

Notice that the file extension appears after the file name and a full stop.

3.7 Saving a File in Excel Format (.xlsx)

Saving a file means storing your work so that you can open it again later. If you close Excel without saving your work, you may lose the information you entered.

Follow these steps to save your spreadsheet as an Excel file:

  1. Open your spreadsheet in Microsoft Excel.
  2. Click File at the top of the screen.
  3. Select Save As.
  4. Choose where you want to store the file, such as Documents or Desktop.
  5. Enter a file name, such as Supermarket Sales.
  6. Choose Excel Workbook (*.xlsx) as the file type if necessary.
  7. Click Save.

Your spreadsheet is now saved as an Excel workbook.

3.8 Saving or Exporting a File in CSV Format (.csv)

Sometimes, you may need to share spreadsheet information with another application or system. In such cases, CSV format can be useful.

Follow these steps in Microsoft Excel:

  1. Open the Excel workbook you want to save.
  2. Click File.
  3. Select Save As or Save a Copy, depending on your Excel version.
  4. Choose where you want to save the file.
  5. Enter a suitable file name.
  6. Open the file type dropdown menu.
  7. Select CSV (Comma delimited) (*.csv).
  8. Click Save.

Your spreadsheet has now been saved in CSV format.

Important: CSV files normally store only the data from the active worksheet. Excel formulas, colours, formatting and other workbook features are not preserved in the CSV file. Keep your original Excel file if you may need those features later.

3.9 Understanding the Difference Between Saving and Exporting

Saving and exporting are related, but they are not always the same thing.

  • Saving: Stores your work in a file format, such as Excel Workbook (.xlsx).
  • Exporting: Creates a copy of your information in another format, such as CSV or PDF.

For example, you may save your original work as SupermarketSales.xlsx and export a copy as SupermarketSales.csv.

3.10 Choosing the Right File Format

The file format you choose depends on what you want to do with your data.

Task Recommended Format Reason
Perform calculations in Excel .xlsx Supports formulas and formatting.
Share simple records with another system .csv Stores simple data in a widely supported format.
Keep several worksheets in one file .xlsx Can contain multiple worksheets.
Share a simple list of customers .csv Suitable for exchanging basic records.

3.11 Creating CSV Files Without Microsoft Excel

You do not always need Microsoft Excel to create a CSV file. You can also use a simple text editor, such as Notepad on Windows.

Follow these steps:

  1. Open Notepad on your computer.
  2. Type the information using commas to separate the values.
  3. Click File and select Save As.
  4. Enter a name such as Students.csv.
  5. Select All Files if the option is available.
  6. Save the file with the .csv extension.

Example of CSV Content

Name,Age,Class
David,13,JSS2
Mary,12,JSS1
John,13,JSS2
Grace,12,JSS1

Each line represents one record, while the commas separate the different pieces of information.

3.12 Common Mistakes to Avoid

  • Using unclear file names: Give your files meaningful names so you can find them easily.
  • Saving in the wrong format: Choose CSV or Excel depending on your task.
  • Forgetting to save: Save your work regularly to avoid losing information.
  • Overwriting important files: Keep a separate copy of your original workbook before converting it to CSV.
  • Assuming CSV keeps everything: Remember that CSV does not preserve Excel formulas, formatting or multiple worksheets.

3.13 Practical Activity

Imagine you own a small shop in Ibadan. You want to keep a record of some products and their prices.

Your Product List

Product Quantity Price (โ‚ฆ)
Rice 10 5000
Beans 8 3500
Milk 12 1800
Cooking Oil 5 4500

Complete the following tasks:

  1. Open Microsoft Excel or Google Sheets.
  2. Create a new spreadsheet.
  3. Enter the product information into the correct columns.
  4. Save the file as My Shop Records.xlsx.
  5. Save another copy in CSV format as My Shop Records.csv.
  6. Check that both files have been saved successfully.

3.14 Important Terms to Remember

  • Create: To make a new digital file or document.
  • Save: To store your work for future use.
  • File Name: The name given to a document.
  • File Extension: Letters at the end of a file name that identify its format.
  • .xlsx: A common Excel workbook file format.
  • .csv: A file format used to store comma-separated values.
  • Export: To create a copy of information in another file format.

3.15 Module Summary

In this module, you learned how to create a new Excel workbook, enter information, name your files and save your work.

You also learned that Excel files commonly use the .xlsx extension, while CSV files use the .csv extension. Excel files can preserve formulas and formatting, while CSV files are useful for sharing simple data between applications.

Knowledge Check

  1. What does it mean to create a file?
  2. What is the common file extension for an Excel workbook?
  3. What is the file extension for a CSV file?
  4. Why should you save your spreadsheet regularly?
  5. Which file format can preserve Excel formulas and formatting?
  6. What does exporting a file mean?
  7. Can a CSV file preserve multiple Excel worksheets?
  8. Give one example of a meaningful spreadsheet file name.

Coming Up in Module 4

In the next module, you will learn how to open, import and export CSV and Excel files. You will also discover how to move data between Microsoft Excel and Google Sheets.

๐Ÿ† 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.
โ†’