At the end of this module, you should be able to:
Opening a file means accessing a document that has already been saved on your computer, phone or cloud storage.
Imagine your teacher gives you a notebook containing students' examination scores. When you open the notebook, you can read the information inside it.
Opening a digital file works in a similar way. You access the saved information so that you can read, edit or use it.
An Excel file usually has the extension .xlsx. You can open it using Microsoft Excel or another compatible spreadsheet application.
Follow these steps:
You can now view the information inside the workbook.
A CSV file is a simple data file that commonly uses commas to separate information. It usually has the extension .csv.
You can open a CSV file using Microsoft Excel, Google Sheets, LibreOffice Calc or a text editor.
To open a CSV file using Microsoft Excel:
Excel will display the information in rows and columns when it recognises the file structure correctly.
Importing means bringing information from one file or application into another application so that you can work with it.
For example, imagine your school gives you a CSV file containing the names and examination scores of students. You can import that file into Excel to organise the records or calculate average scores.
Think of importing as moving information into a new working environment.
Sometimes, opening a CSV file directly may not display the information correctly. You can use Excel's import feature to control how the data enters the spreadsheet.
Follow these steps:
Your CSV information should now appear inside Excel.
Import settings help an application understand how information inside a file should be arranged.
Some important settings include:
Consider this CSV information:
Name,Age,Score
David,13,85
Mary,12,90
John,13,78
The comma is the delimiter because it separates the name, age and score.
If the application does not recognise the comma correctly, all the information might appear in one column instead of separate columns.
Google Sheets is an online spreadsheet application. You can use it to open, edit and organise CSV files.
Follow these steps:
Google Sheets will display the imported information in rows and columns.
Exporting means creating a copy of your information in another file format.
For example, you may have a customer list saved as an Excel workbook. Another application may require the information in CSV format. You can export the spreadsheet as a CSV file.
Follow these steps in Microsoft Excel:
Your information has now been saved in CSV format.
Important: CSV files do not preserve Excel formulas, colours, formatting or multiple worksheets. Usually, only the active worksheet's data is saved. Keep your original Excel workbook if you need to preserve these features.
Microsoft Excel and Google Sheets are two popular spreadsheet applications. Both can work with CSV files.
For example:
This makes it easier to share and work with information using different spreadsheet applications.
Sometimes, CSV and Excel files may not open or display correctly. Here are some common problems and their possible solutions.
| Problem | Possible Solution |
|---|---|
| The file does not open. | Check that the file exists and try opening it with a compatible application. |
| All CSV information appears in one column. | Check the delimiter settings and select the correct separator. |
| Some symbols or letters appear incorrectly. | Check the file encoding, such as UTF-8. |
| Numbers appear as dates. | Check the column's data type and import settings. |
| Some Excel features are missing after saving as CSV. | Open the original Excel workbook because CSV does not preserve those features. |
Imagine your school administrator sends you a CSV file containing students' examination records.
Student,Class,Subject,Score
David,JSS2,Mathematics,85
Mary,JSS1,English,90
John,JSS2,Science,78
Grace,JSS1,Computer Studies,95
Samuel,JSS2,English,88
Complete the following activities:
In this module, you learned how to open CSV and Excel files, import CSV information into Microsoft Excel and Google Sheets, and export Excel information as CSV files.
You also learned about delimiters, import settings and common problems that may occur when working with spreadsheet files.
In the next module, you will learn how to organise and format spreadsheet data. You will discover how to arrange information, format numbers and dates, sort records and use filters to find specific information.