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:
- Open Microsoft Excel on your computer.
- Choose Blank Workbook.
- A new spreadsheet will appear on your screen.
- You will see rows, columns and empty cells.
- 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:
- Click cell A1 and type Product.
- Click cell B1 and type Quantity.
- Click cell C1 and type Price (โฆ).
- Enter each product in the rows below.
- 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:
- Open your spreadsheet in Microsoft Excel.
- Click File at the top of the screen.
- Select Save As.
- Choose where you want to store the file, such as Documents or Desktop.
- Enter a file name, such as Supermarket Sales.
- Choose Excel Workbook (*.xlsx) as the file type if necessary.
- 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:
- Open the Excel workbook you want to save.
- Click File.
- Select Save As or Save a Copy, depending on your Excel version.
- Choose where you want to save the file.
- Enter a suitable file name.
- Open the file type dropdown menu.
- Select CSV (Comma delimited) (*.csv).
- 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:
- Open Notepad on your computer.
- Type the information using commas to separate the values.
- Click File and select Save As.
- Enter a name such as Students.csv.
- Select All Files if the option is available.
- 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:
- Open Microsoft Excel or Google Sheets.
- Create a new spreadsheet.
- Enter the product information into the correct columns.
- Save the file as My Shop Records.xlsx.
- Save another copy in CSV format as My Shop Records.csv.
- 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
- What does it mean to create a file?
- What is the common file extension for an Excel workbook?
- What is the file extension for a CSV file?
- Why should you save your spreadsheet regularly?
- Which file format can preserve Excel formulas and formatting?
- What does exporting a file mean?
- Can a CSV file preserve multiple Excel worksheets?
- 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.