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

Module Four

๐Ÿ“– 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.
5
Module 4: Opening, Importing and Exporting CSV and Excel Files

Module 4: Opening, Importing and Exporting CSV and Excel Files

4.1 What You Will Learn

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

  • Open CSV and Excel files on a computer.
  • Import CSV files into Microsoft Excel.
  • Open CSV files using Google Sheets.
  • Understand basic file import settings.
  • Export Excel files as CSV files.
  • Identify and solve common file-opening problems.

4.2 What Does It Mean to Open a File?

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.

4.3 How to Open an Excel File

An Excel file usually has the extension .xlsx. You can open it using Microsoft Excel or another compatible spreadsheet application.

Follow these steps:

  1. Locate the Excel file on your computer.
  2. Double-click the file.
  3. Your computer may automatically open it with Microsoft Excel.
  4. If it does not, right-click the file.
  5. Select Open With and choose Microsoft Excel or another compatible application.
  6. Wait for the spreadsheet to appear.

You can now view the information inside the workbook.

4.4 How to Open a CSV File

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:

  1. Open Microsoft Excel.
  2. Click File.
  3. Select Open.
  4. Browse to the folder where your CSV file is saved.
  5. Select the CSV file.
  6. Click Open.

Excel will display the information in rows and columns when it recognises the file structure correctly.

4.5 Understanding What Importing Means

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.

4.6 Importing a CSV File into Microsoft Excel

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:

  1. Open Microsoft Excel.
  2. Open a blank workbook.
  3. Select the Data tab.
  4. Choose From Text/CSV, depending on your Excel version.
  5. Locate and select the CSV file on your computer.
  6. Excel will show a preview of the information.
  7. Check that the columns are separated correctly.
  8. Click Load to bring the data into your worksheet.

Your CSV information should now appear inside Excel.

4.7 Understanding Import Settings

Import settings help an application understand how information inside a file should be arranged.

Some important settings include:

  • Delimiter: The character used to separate information, such as a comma or semicolon.
  • Encoding: A setting that helps the application display letters and symbols correctly.
  • Data Type: Tells the application whether information should be treated as text, numbers or dates.
  • Preview: Allows you to check how the information will appear before importing it.

Example of a Delimiter

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.

4.8 Opening a CSV File with Google Sheets

Google Sheets is an online spreadsheet application. You can use it to open, edit and organise CSV files.

Follow these steps:

  1. Open your web browser.
  2. Visit Google Sheets.
  3. Open a blank spreadsheet.
  4. Click File.
  5. Select Import.
  6. Choose the CSV file from your computer or Google Drive.
  7. Select the appropriate import options.
  8. Click Import Data.

Google Sheets will display the imported information in rows and columns.

4.9 Exporting an Excel File as CSV

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:

  1. Open the Excel workbook.
  2. Click File.
  3. Select Save As or Save a Copy.
  4. Choose where you want to save the new file.
  5. Enter a file name.
  6. Choose CSV (Comma delimited) (*.csv) from the file type options.
  7. Click Save.
  8. Read any warning message and confirm if you want to continue with the CSV format.

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.

4.10 Moving Data Between Excel and Google Sheets

Microsoft Excel and Google Sheets are two popular spreadsheet applications. Both can work with CSV files.

For example:

  • You can create a spreadsheet in Microsoft Excel.
  • Save a copy of the data as a CSV file.
  • Upload the CSV file into Google Sheets.
  • Organise or edit the information in Google Sheets.
  • Download the spreadsheet in Excel format if needed.

This makes it easier to share and work with information using different spreadsheet applications.

4.11 Common Problems When Opening or Importing Files

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.

4.12 Practical Activity

Imagine your school administrator sends you a CSV file containing students' examination records.

Sample CSV Information

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:

  1. Copy the sample information into a text editor.
  2. Save it as StudentResults.csv.
  3. Open Microsoft Excel or Google Sheets.
  4. Import the CSV file into the spreadsheet application.
  5. Check that the student names, classes, subjects and scores appear in separate columns.
  6. Save the imported information as StudentResults.xlsx if you are using Excel.
  7. Compare the CSV and Excel versions.

4.13 Important Terms to Remember

  • Open: To access a saved file.
  • Import: To bring information into an application.
  • Export: To create a copy of information in another format.
  • Delimiter: A character used to separate information.
  • Encoding: A system that helps computers store and display text correctly.
  • Preview: A view of information before it is imported.
  • Data Type: The kind of information stored, such as text, numbers or dates.

4.14 Module Summary

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.

Knowledge Check

  1. What does it mean to open a file?
  2. What does importing information mean?
  3. Which Excel tab can you use to import a CSV file?
  4. What is a delimiter?
  5. Which character is commonly used to separate values in a CSV file?
  6. Name two applications that can open CSV files.
  7. What does exporting a file mean?
  8. Why should you keep an original Excel workbook before converting it to CSV?
  9. What can you check if all CSV information appears in one column?

Coming Up in Module 5

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.

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